Class UpgradeHttpServletRequest
- java.lang.Object
-
- org.eclipse.jetty.websocket.servlet.UpgradeHttpServletRequest
-
- All Implemented Interfaces:
HttpServletRequest,ServletRequest
public class UpgradeHttpServletRequest extends Object implements 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 UpgradeHttpServletRequest(HttpServletRequest httpRequest)
-
Method Summary
-
-
-
Constructor Detail
-
UpgradeHttpServletRequest
public UpgradeHttpServletRequest(HttpServletRequest httpRequest)
-
-
Method Detail
-
getHttpServletRequest
public HttpServletRequest getHttpServletRequest()
-
getAuthType
public String getAuthType()
- Specified by:
getAuthTypein interfaceHttpServletRequest
-
getCookies
public Cookie[] getCookies()
- Specified by:
getCookiesin 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
-
getDateHeader
public long getDateHeader(String name)
- Specified by:
getDateHeaderin 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
-
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
-
getRequestedSessionId
public String getRequestedSessionId()
- Specified by:
getRequestedSessionIdin 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
-
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttributein interfaceServletRequest
-
getAttributeNames
public Enumeration<String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceServletRequest
-
getParameter
public String getParameter(String name)
- Specified by:
getParameterin interfaceServletRequest
-
getParameterNames
public Enumeration<String> getParameterNames()
- Specified by:
getParameterNamesin interfaceServletRequest
-
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValuesin interfaceServletRequest
-
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMapin interfaceServletRequest
-
getProtocol
public String getProtocol()
- Specified by:
getProtocolin interfaceServletRequest
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfaceServletRequest
-
getServerName
public String getServerName()
- Specified by:
getServerNamein interfaceServletRequest
-
getServerPort
public int getServerPort()
- Specified by:
getServerPortin interfaceServletRequest
-
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddrin interfaceServletRequest
-
getRemotePort
public int getRemotePort()
- Specified by:
getRemotePortin interfaceServletRequest
-
getRemoteHost
public String getRemoteHost()
- Specified by:
getRemoteHostin interfaceServletRequest
-
setAttribute
public void setAttribute(String name, Object value)
- Specified by:
setAttributein interfaceServletRequest
-
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttributein interfaceServletRequest
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfaceServletRequest
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocalesin interfaceServletRequest
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceServletRequest
-
getRealPath
public String getRealPath(String path)
- Specified by:
getRealPathin interfaceServletRequest
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceServletRequest
-
getLocalAddr
public String getLocalAddr()
- Specified by:
getLocalAddrin interfaceServletRequest
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPortin interfaceServletRequest
-
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContextin interfaceServletRequest
-
getDispatcherType
public DispatcherType getDispatcherType()
- Specified by:
getDispatcherTypein interfaceServletRequest
-
authenticate
public boolean authenticate(HttpServletResponse response) throws IOException, ServletException
- Specified by:
authenticatein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
changeSessionId
public String changeSessionId()
- Specified by:
changeSessionIdin interfaceHttpServletRequest
-
getAsyncContext
public AsyncContext getAsyncContext()
- Specified by:
getAsyncContextin interfaceServletRequest
-
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfaceServletRequest
-
getContentLength
public int getContentLength()
- Specified by:
getContentLengthin interfaceServletRequest
-
getContentLengthLong
public long getContentLengthLong()
- Specified by:
getContentLengthLongin interfaceServletRequest
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceServletRequest
-
getInputStream
public ServletInputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceServletRequest- Throws:
IOException
-
getPart
public Part getPart(String name) throws IOException, ServletException
- Specified by:
getPartin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
getParts
public Collection<Part> getParts() throws IOException, ServletException
- Specified by:
getPartsin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
getReader
public BufferedReader getReader() throws IOException
- Specified by:
getReaderin interfaceServletRequest- Throws:
IOException
-
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)
- Specified by:
getRequestDispatcherin interfaceServletRequest
-
isAsyncStarted
public boolean isAsyncStarted()
- Specified by:
isAsyncStartedin interfaceServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()
- Specified by:
isAsyncSupportedin interfaceServletRequest
-
login
public void login(String username, String password) throws ServletException
- Specified by:
loginin interfaceHttpServletRequest- Throws:
ServletException
-
logout
public void logout() throws ServletException- Specified by:
logoutin interfaceHttpServletRequest- Throws:
ServletException
-
setCharacterEncoding
public void setCharacterEncoding(String enc) throws UnsupportedEncodingException
- Specified by:
setCharacterEncodingin interfaceServletRequest- Throws:
UnsupportedEncodingException
-
startAsync
public AsyncContext startAsync() throws IllegalStateException
- Specified by:
startAsyncin interfaceServletRequest- Throws:
IllegalStateException
-
startAsync
public AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
- Specified by:
startAsyncin interfaceServletRequest- Throws:
IllegalStateException
-
upgrade
public <T extends HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, ServletException
- Specified by:
upgradein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
complete
public void complete()
-
-