/** * Get the proxied path for an application. * @param id the application id to use. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id) { if(id == null) { throw new IllegalArgumentException("Application id cannot be null "); } return ujoin(PROXY_BASE, uriEncode(id)); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(prefix(), parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(context().prefix, parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(prefix(), parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(context().prefix, parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(context().prefix, parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String root_url(String... parts) { return ujoin(root(), parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String root_url(String... parts) { return ujoin(root(), parts); }
/** * Get the proxied path for an application. * @param id the application id to use. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id) { if(id == null) { throw new IllegalArgumentException("Application id cannot be null "); } return ujoin(PROXY_BASE, uriEncode(id)); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String url(String... parts) { return ujoin(prefix(), parts); }
/** * Create an url from url components * @param parts components to join * @return an url string */ public String root_url(String... parts) { return ujoin(root(), parts); }
/** * Get the proxied path for an application. * @param id the application id to use. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id) { if(id == null) { throw new IllegalArgumentException("Application id cannot be null "); } return ujoin(PROXY_BASE, uriEncode(id)); }
protected String relPath(String... args) { return ujoin(this.prefix(), args); }
protected String relPath(String... args) { return ujoin(this.prefix(), args); }
/** * Get the proxied path for an application. * @param id the application id to use. * @param path the rest of the path to the application. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id, String path) { if(path == null) { return getPath(id); } else { return ujoin(getPath(id), path); } }
/** * Get the proxied path for an application. * @param id the application id to use. * @param path the rest of the path to the application. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id, String path) { if(path == null) { return getPath(id); } else { return ujoin(getPath(id), path); } }
/** * Get the proxied path for an application. * @param id the application id to use. * @param path the rest of the path to the application. * @return the base path to that application through the proxy. */ public static String getPath(ApplicationId id, String path) { if(path == null) { return getPath(id); } else { return ujoin(getPath(id), path); } }
public String prefix() { if(context().rc.prefix == null) { return root(); } else { return ujoin(root(), context().rc.prefix); } }
public String prefix() { if(context().rc.prefix == null) { return root(); } else { return ujoin(root(), context().rc.prefix); } }
public String prefix() { if(context().rc.prefix == null) { return root(); } else { return ujoin(root(), context().rc.prefix); } }