public void setLoginPage(String loginPage) { // if ((loginPage == null) || !loginPage.startsWith("/")) // throw new IllegalArgumentException // ("Login Page resource path must start with a '/'"); this.loginPage = RequestUtil.urlDecode(loginPage); }
/** * Set the location. * * @param location The new location */ public void setLocation(String location) { // if ((location == null) || !location.startsWith("/")) // throw new IllegalArgumentException // ("Error Page Location must start with a '/'"); this.location = RequestUtil.urlDecode(location); }
public void setErrorPage(String errorPage) { // if ((errorPage == null) || !errorPage.startsWith("/")) // throw new IllegalArgumentException // ("Error Page resource path must start with a '/'"); this.errorPage = RequestUtil.urlDecode(errorPage); }
/** * Add a URL pattern to be part of this web resource collection. */ public void addPattern(String pattern) { if (pattern == null) return; pattern = RequestUtil.urlDecode(pattern); String results[] = new String[patterns.length + 1]; for (int i = 0; i < patterns.length; i++) results[i] = patterns[i]; results[patterns.length] = pattern; patterns = results; }
public void setURLPattern(String urlPattern) { this.urlPattern = RequestUtil.urlDecode(urlPattern); }
/** * Returns the context deployed at the given context root. * * @param contextRoot The context root whose associated context to return * * @return The context deployed at the given context root, or null */ @Override public Container findChild(String contextRoot) { return super.findChild(RequestUtil.urlDecode(contextRoot, "UTF-8")); } // END GlassFish 862
/** * Set the context path for this Context. * <p> * <b>IMPLEMENTATION NOTE</b>: The context path is used as the "name" of * a Context, because it must be unique. * * @param path The new context path */ @Override public void setPath(String path) { // XXX Use host in name /* GlassFish Issue 2339 setName(RequestUtil.URLDecode(path)); */ // START GlassFish Issue 2339 setName(RequestUtil.urlDecode(path, "UTF-8")); // END GlassFish Issue 2339 }
pattern = adjustURLPattern(RequestUtil.urlDecode(pattern)); if (!validateURLPattern(pattern)) { String msg = MessageFormat.format(rb.getString(LogFacade.SERVLET_MAPPING_INVALID_URL_EXCEPTION), pattern);
public LoginConfigDecorator(LoginConfiguration decoree){ this.decoree = decoree; String errorPage = RequestUtil.urlDecode(decoree.getFormErrorPage()); if (!errorPage.startsWith("/")){ errorPage = "/" + errorPage; } setErrorPage(errorPage); String loginPage = RequestUtil.urlDecode(decoree.getFormLoginPage()); if (!loginPage.startsWith("/")){ loginPage = "/" + loginPage; } setLoginPage(loginPage); setAuthMethod(decoree.getAuthenticationMethod()); setRealmName(decoree.getRealmName()); }
destinationPath = RequestUtil.urlDecode(destinationPath, "UTF8");
pattern = adjustURLPattern(RequestUtil.urlDecode(pattern)); if (!validateURLPattern(pattern)) { String msg = MessageFormat.format(rb.getString(LogFacade.SERVLET_MAPPING_INVALID_URL_EXCEPTION), pattern);
public ErrorPageDecorator(ErrorPageDescriptor decoree){ this.decoree = decoree; if (decoree.getErrorCode() > 0) { setErrorCode(decoree.getErrorCode()); } else if (decoree.getExceptionType() != null && !"".equals(decoree.getExceptionType())) { setExceptionType(decoree.getExceptionType()); } setLocation(RequestUtil.urlDecode(decoree.getLocation())); } }
RequestUtil.urlDecode(wmContextPath, "UTF-8"); } catch (Exception e) { String msg = rb.getString(