public BaseResponse(ExternalContext.Request request) { urlRewriter = new WSRPURLRewriter( URLRewriterUtils.getPathMatchersCallable(), request, URLRewriterUtils.isWSRPEncodeResources()); }
private String getPlatformClientContextPath() { if (platformClientContextPath == null) { platformClientContextPath = URLRewriterUtils.getClientContextPath(this, true); } return platformClientContextPath; }
private String getApplicationClientContextPath() { if (applicationClientContextPath == null) { applicationClientContextPath = URLRewriterUtils.getClientContextPath(this, false); } return applicationClientContextPath; }
public String getClientContextPath(String urlString) { // Return depending on whether passed URL is a platform URL or not return URLRewriterUtils.isPlatformPath(urlString) ? getPlatformClientContextPath() : getApplicationClientContextPath(); }