public class UriExtensionRequestWrapper extends HttpServletRequestWrapper
This is needed since JSF implementations inspect the request to determine if a prefix (path) or suffix (extension) mapping was used. If the request is neither (in effect, an "exact and extensionless mapping), JSF will get confused and not be able to derive view IDs etc correctly.
For a guide on FacesViews, please see the package summary.
FacesViews
,
FacesViewsForwardingFilter
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
UriExtensionRequestWrapper(HttpServletRequest request,
String servletPath) |
Modifier and Type | Method and Description |
---|---|
String |
getPathInfo() |
String |
getServletPath() |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public UriExtensionRequestWrapper(HttpServletRequest request, String servletPath)
public String getServletPath()
getServletPath
in interface HttpServletRequest
getServletPath
in class HttpServletRequestWrapper
public String getPathInfo()
getPathInfo
in interface HttpServletRequest
getPathInfo
in class HttpServletRequestWrapper
Copyright © 2012–2020 OmniFaces. All rights reserved.