Package com.soklet.servlet.javax
Class SokletHttpServletRequest
java.lang.Object
com.soklet.servlet.javax.SokletHttpServletRequest
- All Implemented Interfaces:
HttpServletRequest
,ServletRequest
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder used to construct instances ofSokletHttpServletRequest
. -
Field Summary
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(HttpServletResponse httpServletResponse) getAttribute
(String name) int
long
Cookie[]
long
getDateHeader
(String name) getHeaders
(String name) int
getIntHeader
(String name) int
getParameter
(String name) String[]
getParameterValues
(String name) getParts()
getRealPath
(String path) Deprecated.int
getRequestDispatcher
(String path) int
getSession
(boolean create) boolean
boolean
boolean
boolean
Deprecated.boolean
boolean
boolean
isSecure()
boolean
isUserInRole
(String role) void
void
logout()
void
removeAttribute
(String name) void
setAttribute
(String name, Object o) void
startAsync
(ServletRequest servletRequest, ServletResponse servletResponse) <T extends HttpUpgradeHandler>
TMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Constructor Details
-
SokletHttpServletRequest
-
-
Method Details
-
getAuthType
- Specified by:
getAuthType
in interfaceHttpServletRequest
-
getCookies
- Specified by:
getCookies
in interfaceHttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfaceHttpServletRequest
-
getHeader
- Specified by:
getHeader
in interfaceHttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfaceHttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfaceHttpServletRequest
-
getIntHeader
- Specified by:
getIntHeader
in interfaceHttpServletRequest
-
getMethod
- Specified by:
getMethod
in interfaceHttpServletRequest
-
getPathInfo
- Specified by:
getPathInfo
in interfaceHttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfaceHttpServletRequest
-
getContextPath
- Specified by:
getContextPath
in interfaceHttpServletRequest
-
getQueryString
- Specified by:
getQueryString
in interfaceHttpServletRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfaceHttpServletRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfaceHttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceHttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfaceHttpServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfaceHttpServletRequest
-
getRequestURL
- Specified by:
getRequestURL
in interfaceHttpServletRequest
-
getServletPath
- Specified by:
getServletPath
in interfaceHttpServletRequest
-
getSession
- Specified by:
getSession
in interfaceHttpServletRequest
-
getSession
- Specified by:
getSession
in interfaceHttpServletRequest
-
changeSessionId
- Specified by:
changeSessionId
in interfaceHttpServletRequest
-
isRequestedSessionIdValid
- Specified by:
isRequestedSessionIdValid
in interfaceHttpServletRequest
-
isRequestedSessionIdFromCookie
- Specified by:
isRequestedSessionIdFromCookie
in interfaceHttpServletRequest
-
isRequestedSessionIdFromURL
- Specified by:
isRequestedSessionIdFromURL
in interfaceHttpServletRequest
-
isRequestedSessionIdFromUrl
Deprecated.- Specified by:
isRequestedSessionIdFromUrl
in interfaceHttpServletRequest
-
authenticate
public boolean authenticate(@Nonnull HttpServletResponse httpServletResponse) throws IOException, ServletException - Specified by:
authenticate
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
login
- Specified by:
login
in interfaceHttpServletRequest
- Throws:
ServletException
-
logout
- Specified by:
logout
in interfaceHttpServletRequest
- Throws:
ServletException
-
getParts
- Specified by:
getParts
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
getPart
- Specified by:
getPart
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
upgrade
@Nonnull public <T extends HttpUpgradeHandler> T upgrade(@Nullable Class<T> handlerClass) throws IOException, ServletException - Specified by:
upgrade
in interfaceHttpServletRequest
- Throws:
IOException
ServletException
-
getAttribute
- Specified by:
getAttribute
in interfaceServletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceServletRequest
- Throws:
UnsupportedEncodingException
-
getContentLength
- Specified by:
getContentLength
in interfaceServletRequest
-
getContentLengthLong
- Specified by:
getContentLengthLong
in interfaceServletRequest
-
getContentType
- Specified by:
getContentType
in interfaceServletRequest
-
getInputStream
- Specified by:
getInputStream
in interfaceServletRequest
- Throws:
IOException
-
getParameter
- Specified by:
getParameter
in interfaceServletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfaceServletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfaceServletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfaceServletRequest
-
getProtocol
- Specified by:
getProtocol
in interfaceServletRequest
-
getScheme
- Specified by:
getScheme
in interfaceServletRequest
-
getServerName
- Specified by:
getServerName
in interfaceServletRequest
-
getServerPort
- Specified by:
getServerPort
in interfaceServletRequest
-
getReader
- Specified by:
getReader
in interfaceServletRequest
- Throws:
IOException
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfaceServletRequest
-
getRemoteHost
- Specified by:
getRemoteHost
in interfaceServletRequest
-
setAttribute
- Specified by:
setAttribute
in interfaceServletRequest
-
removeAttribute
- Specified by:
removeAttribute
in interfaceServletRequest
-
getLocale
- Specified by:
getLocale
in interfaceServletRequest
-
getLocales
- Specified by:
getLocales
in interfaceServletRequest
-
isSecure
- Specified by:
isSecure
in interfaceServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfaceServletRequest
-
getRealPath
Deprecated.- Specified by:
getRealPath
in interfaceServletRequest
-
getRemotePort
- Specified by:
getRemotePort
in interfaceServletRequest
-
getLocalName
- Specified by:
getLocalName
in interfaceServletRequest
-
getLocalAddr
- Specified by:
getLocalAddr
in interfaceServletRequest
-
getLocalPort
- Specified by:
getLocalPort
in interfaceServletRequest
-
getServletContext
- Specified by:
getServletContext
in interfaceServletRequest
-
startAsync
- Specified by:
startAsync
in interfaceServletRequest
- Throws:
IllegalStateException
-
startAsync
@Nonnull public AsyncContext startAsync(@Nonnull ServletRequest servletRequest, @Nonnull ServletResponse servletResponse) throws IllegalStateException - Specified by:
startAsync
in interfaceServletRequest
- Throws:
IllegalStateException
-
isAsyncStarted
- Specified by:
isAsyncStarted
in interfaceServletRequest
-
isAsyncSupported
- Specified by:
isAsyncSupported
in interfaceServletRequest
-
getAsyncContext
- Specified by:
getAsyncContext
in interfaceServletRequest
-
getDispatcherType
- Specified by:
getDispatcherType
in interfaceServletRequest
-