- java.lang.Object
- 
- jakarta.servlet.ServletRequestWrapper
- 
- jakarta.servlet.http.HttpServletRequestWrapper
- 
- org.omnifaces.facesviews.UriExtensionRequestWrapper
 
 
 
- 
- All Implemented Interfaces:
- HttpServletRequest,- ServletRequest
 
 public class UriExtensionRequestWrapper extends HttpServletRequestWrapper This wraps a request to an extensionless Faces view and provides an extension for all methods that reveal the servlet path. Additional the path info is set to null.This is needed since Faces 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), Faces will get confused and not be able to derive view IDs etc correctly. For a guide on FacesViews, please see the package summary. - Since:
- 1.4
- Author:
- Arjan Tijms
- See Also:
- FacesViews,- FacesViewsForwardingFilter
 
- 
- 
Field Summary- 
Fields inherited from interface jakarta.servlet.http.HttpServletRequestBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description UriExtensionRequestWrapper(HttpServletRequest request, String servletPath)Construct the URI extension request wrapper.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpServletMappinggetHttpServletMapping()StringgetPathInfo()StringgetServletPath()- 
Methods inherited from class jakarta.servlet.http.HttpServletRequestWrapperauthenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade
 - 
Methods inherited from class jakarta.servlet.ServletRequestWrappergetAsyncContext, 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
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jakarta.servlet.ServletRequestgetAsyncContext, 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
 
- 
 
- 
- 
- 
Constructor Detail- 
UriExtensionRequestWrapperpublic UriExtensionRequestWrapper(HttpServletRequest request, String servletPath) Construct the URI extension request wrapper.- Parameters:
- request- The request to be wrapped.
- servletPath- The involved servlet path.
 
 
- 
 - 
Method Detail- 
getServletPathpublic String getServletPath() - Specified by:
- getServletPathin interface- HttpServletRequest
- Overrides:
- getServletPathin class- HttpServletRequestWrapper
 
 - 
getPathInfopublic String getPathInfo() - Specified by:
- getPathInfoin interface- HttpServletRequest
- Overrides:
- getPathInfoin class- HttpServletRequestWrapper
 
 - 
getHttpServletMappingpublic HttpServletMapping getHttpServletMapping() - Specified by:
- getHttpServletMappingin interface- HttpServletRequest
- Overrides:
- getHttpServletMappingin class- HttpServletRequestWrapper
 
 
- 
 
-