Class SokletHttpServletRequest
java.lang.Object
com.soklet.servlet.jakarta.SokletHttpServletRequest
- All Implemented Interfaces:
HttpServletRequest
,ServletRequest
@NotThreadSafe
public final class SokletHttpServletRequest
extends Object
implements HttpServletRequest
Soklet integration implementation of
HttpServletRequest
.- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder used to construct instances ofSokletHttpServletRequest
. -
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Method Summary
Modifier and TypeMethodDescriptionboolean
authenticate
(HttpServletResponse httpServletResponse) builderWithRequest
(Request request) 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()
int
getRequestDispatcher
(String path) int
getSession
(boolean create) boolean
boolean
boolean
boolean
boolean
boolean
isSecure()
boolean
boolean
isUserInRole
(String role) void
void
logout()
void
removeAttribute
(String name) void
setAttribute
(String name, Object o) void
void
setCharacterEncoding
(Charset encoding) startAsync
(ServletRequest servletRequest, ServletResponse servletResponse) <T extends HttpUpgradeHandler>
Tstatic SokletHttpServletRequest
withRequest
(Request request) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.http.HttpServletRequest
newPushBuilder
-
Method Details
-
withRequest
-
builderWithRequest
@Nonnull public static SokletHttpServletRequest.Builder builderWithRequest(@Nonnull Request request) -
getAuthType
- Specified by:
getAuthType
in interfaceHttpServletRequest
-
getCookies
- Specified by:
getCookies
in interfaceHttpServletRequest
-
getDateHeader
- Specified by:
getDateHeader
in interfaceHttpServletRequest
-
getHeader
-
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
-
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
-
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
-
getHttpServletMapping
- Specified by:
getHttpServletMapping
in interfaceHttpServletRequest
-
getTrailerFields
- Specified by:
getTrailerFields
in interfaceHttpServletRequest
-
isTrailerFieldsReady
- Specified by:
isTrailerFieldsReady
in interfaceHttpServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceServletRequest
-
getRequestId
- Specified by:
getRequestId
in interfaceServletRequest
-
getProtocolRequestId
- Specified by:
getProtocolRequestId
in interfaceServletRequest
-
getServletConnection
- Specified by:
getServletConnection
in interfaceServletRequest
-