コード例 #1
0
 public BaseResponse(ExternalContext.Request request) {
   urlRewriter =
       new WSRPURLRewriter(
           URLRewriterUtils.getPathMatchersCallable(),
           request,
           URLRewriterUtils.isWSRPEncodeResources());
 }
コード例 #2
0
 public String rewriteServiceURL(String urlString, boolean forceAbsolute) {
   return URLRewriterUtils.rewriteServiceURL(getRequest(), urlString, forceAbsolute);
 }
コード例 #3
0
 private String getPlatformClientContextPath() {
   if (platformClientContextPath == null) {
     platformClientContextPath = URLRewriterUtils.getClientContextPath(this, true);
   }
   return platformClientContextPath;
 }
コード例 #4
0
 private String getApplicationClientContextPath() {
   if (applicationClientContextPath == null) {
     applicationClientContextPath = URLRewriterUtils.getClientContextPath(this, false);
   }
   return applicationClientContextPath;
 }
コード例 #5
0
 public String getClientContextPath(String urlString) {
   // Return depending on whether passed URL is a platform URL or not
   return URLRewriterUtils.isPlatformPath(urlString)
       ? getPlatformClientContextPath()
       : getApplicationClientContextPath();
 }