org.riotfamily.common.web.dwr
Class PathShiftingRequestWrapper
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.riotfamily.common.web.dwr.PathShiftingRequestWrapper
- All Implemented Interfaces:
- HttpServletRequest, ServletRequest
public class PathShiftingRequestWrapper
- extends HttpServletRequestWrapper
RequestWrapper that moves characters from the pathInfo
to
servletPath
.
DWR uses request.getPathInfo()
to extract lookup-paths from
the URL, which fails, when the DwrController is used with any other
mapping than '/'
.
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
Methods inherited from class javax.servlet.ServletRequestWrapper |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
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 |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
PathShiftingRequestWrapper
public PathShiftingRequestWrapper(HttpServletRequest request,
int offset)
getServletPath
public String getServletPath()
- Specified by:
getServletPath
in interface HttpServletRequest
- Overrides:
getServletPath
in class HttpServletRequestWrapper
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfo
in interface HttpServletRequest
- Overrides:
getPathInfo
in class HttpServletRequestWrapper