Class RequestWrapper
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- javax.servlet.http.HttpServletRequestWrapper
-
- net.sf.basedb.clients.web.extensions.RequestWrapper
-
- All Implemented Interfaces:
HttpServletRequest
,ServletRequest
public class RequestWrapper extends HttpServletRequestWrapper
Wrapper for HttpServletRequest that allows us to set proper servlet path and path info attributes for an extension servlet. The result should be the same as if the servlet had been mapped as a "standalone" servlet in web.xml.- Version:
- 2.10
- Author:
- nicklas
- Last modified
- $Date: 2009-06-15 11:05:06 +0200 (må, 15 jun 2009) $
-
-
Field Summary
Fields Modifier and Type Field Description private String
originalServletPath
private String
pathInfo
private String
servletPath
-
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
-
Constructor Summary
Constructors Constructor Description RequestWrapper(HttpServletRequest request, String servletPath, String pathInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPathInfo()
From the HttpServletRequestInterface ------------------------------------String
getServletPath()
-
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, 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 javax.servlet.ServletRequestWrapper
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.servlet.ServletRequest
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
-
-
-
-
Constructor Detail
-
RequestWrapper
public RequestWrapper(HttpServletRequest request, String servletPath, String pathInfo)
-
-
Method Detail
-
getPathInfo
public String getPathInfo()
From the HttpServletRequestInterface ------------------------------------- Specified by:
getPathInfo
in interfaceHttpServletRequest
- Overrides:
getPathInfo
in classHttpServletRequestWrapper
-
getServletPath
public String getServletPath()
- Specified by:
getServletPath
in interfaceHttpServletRequest
- Overrides:
getServletPath
in classHttpServletRequestWrapper
-
-