Class SokletHttpServletRequest
java.lang.Object
com.soklet.servlet.javax.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 classBuilder used to construct instances ofSokletHttpServletRequest. -
Field Summary
Fields inherited from interface HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(HttpServletResponse httpServletResponse) getAttribute(String name) intlongCookie[]longgetDateHeader(String name) getHeaders(String name) intgetIntHeader(String name) intgetParameter(String name) String[]getParameterValues(String name) getParts()getRealPath(String path) Deprecated.intgetRequestDispatcher(String path) intgetSession(boolean create) booleanbooleanbooleanbooleanDeprecated.booleanbooleanbooleanisSecure()booleanisUserInRole(String role) voidvoidlogout()voidremoveAttribute(String name) voidsetAttribute(String name, Object o) voidstartAsync(ServletRequest servletRequest, ServletResponse servletResponse) <T extends HttpUpgradeHandler>
TwithRequest(Request request) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Method Details
-
withRequest
-
getAuthType
- Specified by:
getAuthTypein interfaceHttpServletRequest
-
getCookies
- Specified by:
getCookiesin interfaceHttpServletRequest
-
getDateHeader
- Specified by:
getDateHeaderin interfaceHttpServletRequest
-
getHeader
-
getHeaders
- Specified by:
getHeadersin interfaceHttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNamesin interfaceHttpServletRequest
-
getIntHeader
- Specified by:
getIntHeaderin interfaceHttpServletRequest
-
getMethod
- Specified by:
getMethodin interfaceHttpServletRequest
-
getPathInfo
- Specified by:
getPathInfoin interfaceHttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslatedin interfaceHttpServletRequest
-
getContextPath
- Specified by:
getContextPathin interfaceHttpServletRequest
-
getQueryString
- Specified by:
getQueryStringin interfaceHttpServletRequest
-
getRemoteUser
- Specified by:
getRemoteUserin interfaceHttpServletRequest
-
isUserInRole
- Specified by:
isUserInRolein interfaceHttpServletRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceHttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionIdin interfaceHttpServletRequest
-
getRequestURI
- Specified by:
getRequestURIin interfaceHttpServletRequest
-
getRequestURL
- Specified by:
getRequestURLin interfaceHttpServletRequest
-
getServletPath
- Specified by:
getServletPathin interfaceHttpServletRequest
-
getSession
- Specified by:
getSessionin interfaceHttpServletRequest
-
getSession
- Specified by:
getSessionin interfaceHttpServletRequest
-
changeSessionId
- Specified by:
changeSessionIdin interfaceHttpServletRequest
-
isRequestedSessionIdValid
- Specified by:
isRequestedSessionIdValidin interfaceHttpServletRequest
-
isRequestedSessionIdFromCookie
- Specified by:
isRequestedSessionIdFromCookiein interfaceHttpServletRequest
-
isRequestedSessionIdFromURL
- Specified by:
isRequestedSessionIdFromURLin interfaceHttpServletRequest
-
isRequestedSessionIdFromUrl
Deprecated.- Specified by:
isRequestedSessionIdFromUrlin interfaceHttpServletRequest
-
authenticate
public boolean authenticate(@Nonnull HttpServletResponse httpServletResponse) throws IOException, ServletException - Specified by:
authenticatein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
login
- Specified by:
loginin interfaceHttpServletRequest- Throws:
ServletException
-
logout
- Specified by:
logoutin interfaceHttpServletRequest- Throws:
ServletException
-
getParts
- Specified by:
getPartsin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
getPart
- Specified by:
getPartin interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
upgrade
@Nonnull public <T extends HttpUpgradeHandler> T upgrade(@Nullable Class<T> handlerClass) throws IOException, ServletException - Specified by:
upgradein interfaceHttpServletRequest- Throws:
IOExceptionServletException
-
getAttribute
- Specified by:
getAttributein interfaceServletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceServletRequest
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfaceServletRequest- Throws:
UnsupportedEncodingException
-
getContentLength
- Specified by:
getContentLengthin interfaceServletRequest
-
getContentLengthLong
- Specified by:
getContentLengthLongin interfaceServletRequest
-
getContentType
- Specified by:
getContentTypein interfaceServletRequest
-
getInputStream
- Specified by:
getInputStreamin interfaceServletRequest- Throws:
IOException
-
getParameter
- Specified by:
getParameterin interfaceServletRequest
-
getParameterNames
- Specified by:
getParameterNamesin interfaceServletRequest
-
getParameterValues
- Specified by:
getParameterValuesin interfaceServletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfaceServletRequest
-
getProtocol
- Specified by:
getProtocolin interfaceServletRequest
-
getScheme
- Specified by:
getSchemein interfaceServletRequest
-
getServerName
- Specified by:
getServerNamein interfaceServletRequest
-
getServerPort
- Specified by:
getServerPortin interfaceServletRequest
-
getReader
- Specified by:
getReaderin interfaceServletRequest- Throws:
IOException
-
getRemoteAddr
- Specified by:
getRemoteAddrin interfaceServletRequest
-
getRemoteHost
- Specified by:
getRemoteHostin interfaceServletRequest
-
setAttribute
- Specified by:
setAttributein interfaceServletRequest
-
removeAttribute
- Specified by:
removeAttributein interfaceServletRequest
-
getLocale
- Specified by:
getLocalein interfaceServletRequest
-
getLocales
- Specified by:
getLocalesin interfaceServletRequest
-
isSecure
- Specified by:
isSecurein interfaceServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcherin interfaceServletRequest
-
getRealPath
Deprecated.- Specified by:
getRealPathin interfaceServletRequest
-
getRemotePort
- Specified by:
getRemotePortin interfaceServletRequest
-
getLocalName
- Specified by:
getLocalNamein interfaceServletRequest
-
getLocalAddr
- Specified by:
getLocalAddrin interfaceServletRequest
-
getLocalPort
- Specified by:
getLocalPortin interfaceServletRequest
-
getServletContext
- Specified by:
getServletContextin interfaceServletRequest
-
startAsync
- Specified by:
startAsyncin interfaceServletRequest- Throws:
IllegalStateException
-
startAsync
@Nonnull public AsyncContext startAsync(@Nonnull ServletRequest servletRequest, @Nonnull ServletResponse servletResponse) throws IllegalStateException - Specified by:
startAsyncin interfaceServletRequest- Throws:
IllegalStateException
-
isAsyncStarted
- Specified by:
isAsyncStartedin interfaceServletRequest
-
isAsyncSupported
- Specified by:
isAsyncSupportedin interfaceServletRequest
-
getAsyncContext
- Specified by:
getAsyncContextin interfaceServletRequest
-
getDispatcherType
- Specified by:
getDispatcherTypein interfaceServletRequest
-