/** * 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)); }
/** * 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)); }
/** * 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)); }
/** * Get the proxied path for an application. * * @param id the application id to use * @param redirected whether the path should contain the redirect component * @return the base path to that application through the proxy */ public static String getPath(ApplicationId id, boolean redirected) { if (id == null) { throw new IllegalArgumentException("Application id cannot be null "); } if (redirected) { return ujoin(PROXY_BASE, REDIRECT, uriEncode(id)); } else { return ujoin(PROXY_BASE, uriEncode(id)); } }