Package org.eclipse.jetty.server
Class ServletRequestHttpWrapper
- java.lang.Object
-
- javax.servlet.ServletRequestWrapper
-
- org.eclipse.jetty.server.ServletRequestHttpWrapper
-
- All Implemented Interfaces:
HttpServletRequest,ServletRequest
public class ServletRequestHttpWrapper extends ServletRequestWrapper implements HttpServletRequest
ServletRequestHttpWrapper Class to tunnel a ServletRequest via a HttpServletRequest
-
-
Field Summary
-
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
-
Constructor Summary
Constructors Constructor Description ServletRequestHttpWrapper(ServletRequest request)
-
Method Summary
-
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
-
ServletRequestHttpWrapper
public ServletRequestHttpWrapper(ServletRequest request)
-
-
Method Detail
-
getAuthType
public String getAuthType()
- Specified by:
getAuthTypein interfaceHttpServletRequest
-
getCookies
public Cookie[] getCookies()
- Specified by:
getCookiesin interfaceHttpServletRequest
-
getDateHeader
public long getDateHeader(String name)
- Specified by:
getDateHeaderin interfaceHttpServletRequest
-
getHeader
public String getHeader(String name)
- Specified by:
getHeaderin interfaceHttpServletRequest
-
getHeaders
public Enumeration<String> getHeaders(String name)
- Specified by:
getHeadersin interfaceHttpServletRequest
-
getHeaderNames
public Enumeration<String> getHeaderNames()
- Specified by:
getHeaderNamesin interfaceHttpServletRequest
-
getIntHeader
public int getIntHeader(String name)
- Specified by:
getIntHeaderin interfaceHttpServletRequest
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfaceHttpServletRequest
-
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfoin interfaceHttpServletRequest
-
getPathTranslated
public String getPathTranslated()
- Specified by:
getPathTranslatedin interfaceHttpServletRequest
-
getContextPath
public String getContextPath()
- Specified by:
getContextPathin interfaceHttpServletRequest
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceHttpServletRequest
-
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUserin interfaceHttpServletRequest
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRolein interfaceHttpServletRequest
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceHttpServletRequest
-
getRequestedSessionId
public String getRequestedSessionId()
- Specified by:
getRequestedSessionIdin interfaceHttpServletRequest
-
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURIin interfaceHttpServletRequest
-
getRequestURL
public StringBuffer getRequestURL()
- Specified by:
getRequestURLin interfaceHttpServletRequest
-
getServletPath
public String getServletPath()
- Specified by:
getServletPathin interfaceHttpServletRequest
-
getSession
public HttpSession getSession(boolean create)
- Specified by:
getSessionin interfaceHttpServletRequest
-
getSession
public HttpSession getSession()
- Specified by:
getSessionin interfaceHttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
- Specified by:
isRequestedSessionIdValidin interfaceHttpServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
- Specified by:
isRequestedSessionIdFromCookiein interfaceHttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
- Specified by:
isRequestedSessionIdFromURLin interfaceHttpServletRequest
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
- Specified by:
isRequestedSessionIdFromUrlin interfaceHttpServletRequest
-
authenticate
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException
- Specified by:
authenticatein interfaceHttpServletRequest- Throws:
IOExceptionServletException- See Also:
HttpServletRequest.authenticate(javax.servlet.http.HttpServletResponse)
-
getPart
public Part getPart(String name) throws IOException, ServletException
- Specified by:
getPartin interfaceHttpServletRequest- Throws:
IOExceptionServletException- See Also:
HttpServletRequest.getPart(java.lang.String)
-
getParts
public Collection<Part> getParts() throws IOException, ServletException
- Specified by:
getPartsin interfaceHttpServletRequest- Throws:
IOExceptionServletException- See Also:
HttpServletRequest.getParts()
-
login
public void login(String username, String password) throws ServletException
- Specified by:
loginin interfaceHttpServletRequest- Throws:
ServletException- See Also:
HttpServletRequest.login(java.lang.String, java.lang.String)
-
logout
public void logout() throws ServletException- Specified by:
logoutin interfaceHttpServletRequest- Throws:
ServletException- See Also:
HttpServletRequest.logout()
-
changeSessionId
public String changeSessionId()
- Specified by:
changeSessionIdin interfaceHttpServletRequest- See Also:
HttpServletRequest.changeSessionId()
-
upgrade
public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
- Specified by:
upgradein interfaceHttpServletRequest- Throws:
IOExceptionServletException- See Also:
HttpServletRequest.upgrade(java.lang.Class)
-
-