/** * Return the portion of the request URI used to select the Context * of the Request. */ @Override public String getContextPath() { return getContextPath(false); }
public String getContextPath() { return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException(rb.getString(LogFacade.CANNOT_USE_REQUEST_OBJECT_OUTSIDE_SCOPE_EXCEPTION)); } return request.getContextPath(maskDefaultContextMapping); }
public String getContextPath(boolean maskDefaultContextMapping) { if (request == null) { throw new IllegalStateException(rb.getString(LogFacade.CANNOT_USE_REQUEST_OBJECT_OUTSIDE_SCOPE_EXCEPTION)); } return request.getContextPath(maskDefaultContextMapping); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getRelativePath() { String uri = request.getRequestURI(); String contextPath = request.getContextPath(); String servletPath = uri.substring(uri.indexOf(contextPath) + contextPath.length()); if ("".equals(servletPath)) { servletPath = "/"; } return servletPath; }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
public String getContextPath() { if (request == null) { throw MESSAGES.nullRequestFacade(); } return request.getContextPath(); }
public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getRelativePath() { String uri = request.getRequestURI(); String contextPath = request.getContextPath(); String servletPath = uri.substring(uri.indexOf(contextPath) + contextPath.length()); if ("".equals(servletPath)) { servletPath = "/"; } return servletPath; }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
@Override public String getContextPath() { if (request == null) { throw new IllegalStateException( sm.getString("requestFacade.nullRequest")); } return request.getContextPath(); }
String getContextPath(boolean maskDefaultContextMapping) { validateRequest(); return request.getContextPath(maskDefaultContextMapping); }
protected Realm getRealm(Request request) { String serverName = request.getServerName(); String contextPath = request.getContextPath(); Context context = request.getContext(); if (context == null) throw new NullPointerException("Could not find Tomcat context for: " + contextPath); Realm realm = context.getRealm(); if (realm == null) throw new NullPointerException("Could not find Tomcat realm for: " + serverName + "" + contextPath); return realm; }
@Override public String getRedirectUri() { String redirect = (String)getSession(true).getAttribute(SAML_REDIRECT_URI); if (redirect == null) { String contextPath = request.getContextPath(); String baseUri = KeycloakUriBuilder.fromUri(request.getRequestURL().toString()).replacePath(contextPath).build().toString(); return SamlUtil.getRedirectTo(facade, contextPath, baseUri); } return redirect; }