Lines Matching defs:basePath
95 * @param basePath The base path before the relative subrealm path, e.g. {@code /json}, {@code /uma},
102 public String getRealmURL(HttpServletRequest request, String basePath, String realm) throws InvalidBaseUrlException {
104 return rootUrl + realmSubPath(realm, basePath, rootUrl);
110 * @param basePath The base path before the relative subrealm path, e.g. {@code /json}, {@code /uma},
117 public String getRealmURL(HttpContext context, String basePath, String realm) throws InvalidBaseUrlException {
119 return rootUrl + realmSubPath(realm, basePath, rootUrl);
137 private String realmSubPath(String realm, String basePath, String rootUrl) throws InvalidBaseUrlException {
138 Reject.ifFalse(basePath.startsWith("/"), "basePath must start with a / character");
139 Reject.ifTrue(basePath.endsWith("/"), "basePath must not end with a / character");
150 return "/".equals(realm) ? basePath : basePath + realm;
159 return basePath;
169 return basePath + subrealmPath;