java.lang.Object
cloud.piranha.core.impl.DefaultWebApplicationRequest
- All Implemented Interfaces:
WebApplicationRequest
,jakarta.servlet.http.HttpServletRequest
,jakarta.servlet.ServletRequest
- Direct Known Subclasses:
EmbeddedRequest
,HttpWebApplicationRequest
The default WebApplicationRequest.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
Modifier and TypeFieldDescriptionprotected jakarta.servlet.AsyncContext
Stores the async context.protected boolean
Stores if async is started.protected boolean
Stores if async is supported.protected AttributeManager
Stores the attribute manager.protected String
Stores the auth type.protected String
Stores the character encoding.protected long
Stores the content length.protected String
Stores the content type.protected String
Stores the context path.protected jakarta.servlet.http.Cookie[]
Stores the cookies.protected String
Stores the current session id.protected jakarta.servlet.DispatcherType
Stores the dispatcher type.protected boolean
Stores the gotInputStream flag.protected boolean
Stores the gotReader flag.protected HttpHeaderManager
Stores the header manager.protected jakarta.servlet.http.HttpServletMapping
Stores the httpServletMapping.protected int
Stores the number of items read from the input streamprotected String
Stores the local address.protected String
Stores the local name.protected int
Stores the local port.protected String
Stores the method.protected jakarta.servlet.MultipartConfigElement
Stores the multipart config.protected String
Stores the original servlet path.Stores the parameters.protected boolean
Stores the parameters parsed flag.protected String
Stores the path info.protected String
Stores the protocol.protected String
Stores the protocol request id.protected String
Stores the query string.protected BufferedReader
Stores the reader.protected jakarta.servlet.ReadListener
Stores the read listener.protected String
Stores the remote address.protected String
Stores the remote host.protected int
Stores the remote port.protected String
Stores the requested session id.protected boolean
Stores the requested session id from cookie flag.protected boolean
Stores the requested session id from url flag.protected String
Stores the request id.protected String
Stores the scheme.protected String
Stores the server name.protected int
Stores the server port.protected jakarta.servlet.ServletConnection
Stores the servlet connection.protected String
Stores the servlet path.protected boolean
Stores the upgraded flag.protected jakarta.servlet.http.HttpUpgradeHandler
Stores the upgrade handler.protected Principal
Stores the user principal.protected WebApplication
Stores the web applicationprotected WebApplicationInputStream
Stores the input stream.Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add the header.boolean
authenticate
(jakarta.servlet.http.HttpServletResponse response) jakarta.servlet.AsyncContext
getAttribute
(String name) int
long
jakarta.servlet.http.Cookie[]
Returns the current session id.long
getDateHeader
(String name) jakarta.servlet.DispatcherType
getHeaders
(String name) jakarta.servlet.http.HttpServletMapping
jakarta.servlet.ServletInputStream
int
getIntHeader
(String name) int
jakarta.servlet.MultipartConfigElement
Returns the multipartConfig.Gets the original Servlet PathgetParameter
(String name) protected void
Get the parameters from the request.String[]
getParameterValues
(String name) jakarta.servlet.http.Part
Collection<jakarta.servlet.http.Part>
getParts()
int
jakarta.servlet.RequestDispatcher
getRequestDispatcher
(String path) Returns the request URI with query string.int
jakarta.servlet.ServletConnection
jakarta.servlet.http.HttpSession
jakarta.servlet.http.HttpSession
getSession
(boolean create) jakarta.servlet.http.HttpUpgradeHandler
Returns the upgrade handler.Get the web application input stream.boolean
boolean
boolean
boolean
boolean
boolean
isSecure()
boolean
Returns true when upgraded, false otherwise.boolean
isUserInRole
(String role) void
void
logout()
void
removeAttribute
(String name) void
setAsyncStarted
(boolean asyncStarted) Set the async started flag.void
setAsyncSupported
(boolean asyncSupported) Set the async supported flag.void
setAttribute
(String name, Object value) void
setAuthType
(String authType) Set the auth type.void
setCharacterEncoding
(String characterEncoding) void
setContentLength
(int contentLength) Set the content length.void
setContentType
(String contentType) Set the content type.void
setContextPath
(String contextPath) Set the context path.void
setCookies
(jakarta.servlet.http.Cookie[] cookies) Set the cookies.void
setCurrentSessionId
(String currentSessionId) Sets the current session idvoid
setDispatcherType
(jakarta.servlet.DispatcherType dispatcherType) Set the dispatcher type.void
Set the header.void
setHttpServletMapping
(jakarta.servlet.http.HttpServletMapping httpServletMapping) Set the HTTP servlet mapping.void
setLocalAddr
(String localAddress) Set the local address.void
setLocalName
(String localName) Set the local name.void
setLocalPort
(int localPort) Set the local port.void
Set the method.void
setMultipartConfig
(jakarta.servlet.MultipartConfigElement multipartConfig) Set the multipart config.void
setOriginalServletPath
(String originalServletPath) Set the original Servlet pathvoid
setParameter
(String name, String[] values) Set the parameter values.void
setPathInfo
(String pathInfo) Set the path info.void
setProtocol
(String protocol) Set the protocol.void
setQueryString
(String queryString) Set the query string.void
setRemoteAddr
(String remoteAddr) Set the remote address.void
setRemoteHost
(String remoteHost) Set the remote host.void
setRemotePort
(int remotePort) Set the remote port.void
setRequestedSessionId
(String requestedSessionId) Set the requested session id.void
setRequestedSessionIdFromCookie
(boolean requestedSessionIdFromCookie) Set the requested session id from cookie.void
setRequestedSessionIdFromURL
(boolean requestedSessionIdFromURL) Set the request session id from URL flag.void
Set the scheme.void
setServerName
(String serverName) Set the server name.void
setServerPort
(int serverPort) Set the server port.void
setServletPath
(String servletPath) Set the servlet path.void
setUpgraded
(boolean upgraded) Set the upgraded flag.void
setUserPrincipal
(Principal userPrincipal) Set the user principal.void
setWebApplication
(WebApplication webApplication) Set the web application.void
setWebApplicationInputStream
(WebApplicationInputStream webApplicationInputStream) Set the web application input stream.jakarta.servlet.AsyncContext
jakarta.servlet.AsyncContext
startAsync
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) toString()
static <T> T
Unwrap the request.<T extends jakarta.servlet.http.HttpUpgradeHandler>
Tprotected void
Verify the method is of type "multipart/form-data"Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jakarta.servlet.http.HttpServletRequest
getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Field Details
-
asyncContext
protected jakarta.servlet.AsyncContext asyncContextStores the async context. -
asyncStarted
protected boolean asyncStartedStores if async is started. -
asyncSupported
protected boolean asyncSupportedStores if async is supported. -
attributeManager
Stores the attribute manager. -
authType
Stores the auth type. -
characterEncoding
Stores the character encoding. -
contentLength
protected long contentLengthStores the content length. -
contentType
Stores the content type. -
contextPath
Stores the context path. -
cookies
protected jakarta.servlet.http.Cookie[] cookiesStores the cookies. -
currentSessionId
Stores the current session id. -
dispatcherType
protected jakarta.servlet.DispatcherType dispatcherTypeStores the dispatcher type. -
gotInputStream
protected boolean gotInputStreamStores the gotInputStream flag. -
gotReader
protected boolean gotReaderStores the gotReader flag. -
headerManager
Stores the header manager. -
httpServletMapping
protected jakarta.servlet.http.HttpServletMapping httpServletMappingStores the httpServletMapping. -
index
protected int indexStores the number of items read from the input stream -
webApplicationInputStream
Stores the input stream. -
localAddress
Stores the local address. -
localName
Stores the local name. -
localPort
protected int localPortStores the local port. -
method
Stores the method. -
multipartConfig
protected jakarta.servlet.MultipartConfigElement multipartConfigStores the multipart config. -
originalServletPath
Stores the original servlet path. -
parameters
Stores the parameters. -
parametersParsed
protected boolean parametersParsedStores the parameters parsed flag. -
pathInfo
Stores the path info. -
protocol
Stores the protocol. -
protocolRequestId
Stores the protocol request id. -
queryString
Stores the query string. -
readListener
protected jakarta.servlet.ReadListener readListenerStores the read listener. -
reader
Stores the reader. -
remoteAddr
Stores the remote address. -
remoteHost
Stores the remote host. -
remotePort
protected int remotePortStores the remote port. -
requestId
Stores the request id. -
requestedSessionId
Stores the requested session id. -
requestedSessionIdFromCookie
protected boolean requestedSessionIdFromCookieStores the requested session id from cookie flag. -
requestedSessionIdFromURL
protected boolean requestedSessionIdFromURLStores the requested session id from url flag. -
scheme
Stores the scheme. -
serverName
Stores the server name. -
serverPort
protected int serverPortStores the server port. -
servletConnection
protected jakarta.servlet.ServletConnection servletConnectionStores the servlet connection. -
servletPath
Stores the servlet path. -
upgradeHandler
protected jakarta.servlet.http.HttpUpgradeHandler upgradeHandlerStores the upgrade handler. -
upgraded
protected boolean upgradedStores the upgraded flag. -
userPrincipal
Stores the user principal. -
webApplication
Stores the web application
-
-
Constructor Details
-
DefaultWebApplicationRequest
public DefaultWebApplicationRequest()Constructor.
-
-
Method Details
-
addHeader
Add the header.- Parameters:
name
- the name.value
- the value (string).
-
authenticate
public boolean authenticate(jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Specified by:
authenticate
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
IOException
jakarta.servlet.ServletException
-
changeSessionId
- Specified by:
changeSessionId
in interfacejakarta.servlet.http.HttpServletRequest
-
getAsyncContext
public jakarta.servlet.AsyncContext getAsyncContext()- Specified by:
getAsyncContext
in interfacejakarta.servlet.ServletRequest
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.ServletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacejakarta.servlet.ServletRequest
-
getAuthType
- Specified by:
getAuthType
in interfacejakarta.servlet.http.HttpServletRequest
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfacejakarta.servlet.ServletRequest
-
getContentLength
public int getContentLength()- Specified by:
getContentLength
in interfacejakarta.servlet.ServletRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLong
in interfacejakarta.servlet.ServletRequest
-
getContentType
- Specified by:
getContentType
in interfacejakarta.servlet.ServletRequest
-
getContextPath
- Specified by:
getContextPath
in interfacejakarta.servlet.http.HttpServletRequest
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies()- Specified by:
getCookies
in interfacejakarta.servlet.http.HttpServletRequest
-
getCurrentSessionId
Returns the current session id.- Returns:
- the current session id
-
getDateHeader
- Specified by:
getDateHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getDispatcherType
public jakarta.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfacejakarta.servlet.ServletRequest
-
getHeader
- Specified by:
getHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejakarta.servlet.http.HttpServletRequest
-
getHeaders
- Specified by:
getHeaders
in interfacejakarta.servlet.http.HttpServletRequest
-
getHttpServletMapping
public jakarta.servlet.http.HttpServletMapping getHttpServletMapping()- Specified by:
getHttpServletMapping
in interfacejakarta.servlet.http.HttpServletRequest
-
getInputStream
- Specified by:
getInputStream
in interfacejakarta.servlet.ServletRequest
- Throws:
IOException
-
getIntHeader
- Specified by:
getIntHeader
in interfacejakarta.servlet.http.HttpServletRequest
-
getLocalAddr
- Specified by:
getLocalAddr
in interfacejakarta.servlet.ServletRequest
-
getLocalName
- Specified by:
getLocalName
in interfacejakarta.servlet.ServletRequest
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPort
in interfacejakarta.servlet.ServletRequest
-
getLocale
- Specified by:
getLocale
in interfacejakarta.servlet.ServletRequest
-
getLocales
- Specified by:
getLocales
in interfacejakarta.servlet.ServletRequest
-
getMethod
- Specified by:
getMethod
in interfacejakarta.servlet.http.HttpServletRequest
-
getMultipartConfig
public jakarta.servlet.MultipartConfigElement getMultipartConfig()Description copied from interface:WebApplicationRequest
Returns the multipartConfig.- Specified by:
getMultipartConfig
in interfaceWebApplicationRequest
- Returns:
- the multipartConfig
-
getOriginalServletPath
Gets the original Servlet Path- Returns:
- the original Servlet Path
-
getParameter
- Specified by:
getParameter
in interfacejakarta.servlet.ServletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacejakarta.servlet.ServletRequest
-
getParameterNames
- Specified by:
getParameterNames
in interfacejakarta.servlet.ServletRequest
-
getParameterValues
- Specified by:
getParameterValues
in interfacejakarta.servlet.ServletRequest
-
getParametersFromRequest
protected void getParametersFromRequest()Get the parameters from the request. -
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException - Specified by:
getPart
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
IOException
jakarta.servlet.ServletException
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletException- Specified by:
getParts
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
IOException
jakarta.servlet.ServletException
-
getPathInfo
- Specified by:
getPathInfo
in interfacejakarta.servlet.http.HttpServletRequest
-
getPathTranslated
- Specified by:
getPathTranslated
in interfacejakarta.servlet.http.HttpServletRequest
-
getProtocol
- Specified by:
getProtocol
in interfacejakarta.servlet.ServletRequest
-
getProtocolRequestId
- Specified by:
getProtocolRequestId
in interfacejakarta.servlet.ServletRequest
-
getQueryString
- Specified by:
getQueryString
in interfacejakarta.servlet.http.HttpServletRequest
-
getReader
- Specified by:
getReader
in interfacejakarta.servlet.ServletRequest
- Throws:
IOException
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfacejakarta.servlet.ServletRequest
-
getRemoteHost
- Specified by:
getRemoteHost
in interfacejakarta.servlet.ServletRequest
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePort
in interfacejakarta.servlet.ServletRequest
-
getRemoteUser
- Specified by:
getRemoteUser
in interfacejakarta.servlet.http.HttpServletRequest
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejakarta.servlet.ServletRequest
-
getRequestId
- Specified by:
getRequestId
in interfacejakarta.servlet.ServletRequest
-
getRequestURI
- Specified by:
getRequestURI
in interfacejakarta.servlet.http.HttpServletRequest
-
getRequestURIWithQueryString
Returns the request URI with query string.- Returns:
- the request URI with query string
-
getRequestURL
- Specified by:
getRequestURL
in interfacejakarta.servlet.http.HttpServletRequest
-
getRequestedSessionId
- Specified by:
getRequestedSessionId
in interfacejakarta.servlet.http.HttpServletRequest
-
getScheme
- Specified by:
getScheme
in interfacejakarta.servlet.ServletRequest
-
getServerName
- Specified by:
getServerName
in interfacejakarta.servlet.ServletRequest
-
getServerPort
public int getServerPort()- Specified by:
getServerPort
in interfacejakarta.servlet.ServletRequest
-
getServletConnection
public jakarta.servlet.ServletConnection getServletConnection()- Specified by:
getServletConnection
in interfacejakarta.servlet.ServletRequest
-
getServletContext
- Specified by:
getServletContext
in interfacejakarta.servlet.ServletRequest
-
getServletPath
- Specified by:
getServletPath
in interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession()- Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
-
getSession
public jakarta.servlet.http.HttpSession getSession(boolean create) - Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
-
getUpgradeHandler
public jakarta.servlet.http.HttpUpgradeHandler getUpgradeHandler()Description copied from interface:WebApplicationRequest
Returns the upgrade handler.- Specified by:
getUpgradeHandler
in interfaceWebApplicationRequest
- Returns:
- the upgrade handler
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfacejakarta.servlet.http.HttpServletRequest
-
getWebApplicationInputStream
Description copied from interface:WebApplicationRequest
Get the web application input stream.- Specified by:
getWebApplicationInputStream
in interfaceWebApplicationRequest
- Returns:
- the web application input stream.
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfacejakarta.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfacejakarta.servlet.ServletRequest
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()- Specified by:
isRequestedSessionIdFromCookie
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()- Specified by:
isRequestedSessionIdFromURL
in interfacejakarta.servlet.http.HttpServletRequest
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()- Specified by:
isRequestedSessionIdValid
in interfacejakarta.servlet.http.HttpServletRequest
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejakarta.servlet.ServletRequest
-
isUpgraded
public boolean isUpgraded()Description copied from interface:WebApplicationRequest
Returns true when upgraded, false otherwise.- Specified by:
isUpgraded
in interfaceWebApplicationRequest
- Returns:
- true when upgraded, false otherwise
-
isUserInRole
- Specified by:
isUserInRole
in interfacejakarta.servlet.http.HttpServletRequest
-
login
- Specified by:
login
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
jakarta.servlet.ServletException
-
logout
public void logout() throws jakarta.servlet.ServletException- Specified by:
logout
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
jakarta.servlet.ServletException
-
removeAttribute
- Specified by:
removeAttribute
in interfacejakarta.servlet.ServletRequest
-
setAsyncStarted
public void setAsyncStarted(boolean asyncStarted) Set the async started flag.- Parameters:
asyncStarted
- the async started flag.
-
setAsyncSupported
public void setAsyncSupported(boolean asyncSupported) Set the async supported flag.- Parameters:
asyncSupported
- the async supported flag.
-
setAttribute
- Specified by:
setAttribute
in interfacejakarta.servlet.ServletRequest
-
setAuthType
Description copied from interface:WebApplicationRequest
Set the auth type.- Specified by:
setAuthType
in interfaceWebApplicationRequest
- Parameters:
authType
- the auth type.
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfacejakarta.servlet.ServletRequest
- Throws:
UnsupportedEncodingException
-
setContentLength
public void setContentLength(int contentLength) Set the content length.- Parameters:
contentLength
- the content length.
-
setContentType
Set the content type.- Parameters:
contentType
- the content type.
-
setContextPath
Description copied from interface:WebApplicationRequest
Set the context path.- Specified by:
setContextPath
in interfaceWebApplicationRequest
- Parameters:
contextPath
- the context path.
-
setCookies
public void setCookies(jakarta.servlet.http.Cookie[] cookies) Set the cookies.- Parameters:
cookies
- the cookies.
-
setCurrentSessionId
Sets the current session id- Parameters:
currentSessionId
- the current session id
-
setDispatcherType
public void setDispatcherType(jakarta.servlet.DispatcherType dispatcherType) Description copied from interface:WebApplicationRequest
Set the dispatcher type.- Specified by:
setDispatcherType
in interfaceWebApplicationRequest
- Parameters:
dispatcherType
- the dispatcher type.
-
setHeader
Set the header.- Parameters:
name
- the name.value
- the value (string).
-
setHttpServletMapping
public void setHttpServletMapping(jakarta.servlet.http.HttpServletMapping httpServletMapping) Set the HTTP servlet mapping.- Parameters:
httpServletMapping
- the HTTP servlet mapping.
-
setLocalAddr
Set the local address.- Parameters:
localAddress
- the local address.
-
setLocalName
Set the local name.- Parameters:
localName
- the local name.
-
setLocalPort
public void setLocalPort(int localPort) Set the local port.- Parameters:
localPort
- the local port.
-
setMethod
Set the method.- Parameters:
method
- the method.
-
setMultipartConfig
public void setMultipartConfig(jakarta.servlet.MultipartConfigElement multipartConfig) Set the multipart config.- Parameters:
multipartConfig
- the multipartConfig.
-
setOriginalServletPath
Set the original Servlet path- Parameters:
originalServletPath
- the original Servlet path
-
setParameter
Set the parameter values.- Parameters:
name
- the parameter name.values
- the values.
-
setPathInfo
Set the path info.- Parameters:
pathInfo
- the path info.
-
setProtocol
Set the protocol.- Parameters:
protocol
- the protocol.
-
setQueryString
Set the query string.- Parameters:
queryString
- the query string.
-
setRemoteAddr
Set the remote address.- Parameters:
remoteAddr
- the remote address.
-
setRemoteHost
Set the remote host.- Parameters:
remoteHost
- the remote host.
-
setRemotePort
public void setRemotePort(int remotePort) Set the remote port.- Parameters:
remotePort
- the remote port.
-
setRequestedSessionId
Description copied from interface:WebApplicationRequest
Set the requested session id.- Specified by:
setRequestedSessionId
in interfaceWebApplicationRequest
- Parameters:
requestedSessionId
- the requested session id.
-
setRequestedSessionIdFromCookie
public void setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie) Set the requested session id from cookie.- Parameters:
requestedSessionIdFromCookie
- the requested session id from cookie.
-
setRequestedSessionIdFromURL
public void setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL) Set the request session id from URL flag.- Parameters:
requestedSessionIdFromURL
- the requested session if from URL flag.
-
setScheme
Set the scheme.- Parameters:
scheme
- the scheme.
-
setServerName
Set the server name.- Parameters:
serverName
- the server name.
-
setServerPort
public void setServerPort(int serverPort) Set the server port.- Parameters:
serverPort
- the server port.
-
setServletPath
Description copied from interface:WebApplicationRequest
Set the servlet path.- Specified by:
setServletPath
in interfaceWebApplicationRequest
- Parameters:
servletPath
- the servlet path.
-
setUpgraded
public void setUpgraded(boolean upgraded) Set the upgraded flag.- Parameters:
upgraded
- the upgraded flag.
-
setUserPrincipal
Description copied from interface:WebApplicationRequest
Set the user principal.- Specified by:
setUserPrincipal
in interfaceWebApplicationRequest
- Parameters:
userPrincipal
- the user principal.
-
setWebApplication
Description copied from interface:WebApplicationRequest
Set the web application.- Specified by:
setWebApplication
in interfaceWebApplicationRequest
- Parameters:
webApplication
- the web application.
-
setWebApplicationInputStream
Description copied from interface:WebApplicationRequest
Set the web application input stream.- Specified by:
setWebApplicationInputStream
in interfaceWebApplicationRequest
- Parameters:
webApplicationInputStream
- the web application input stream.
-
startAsync
- Specified by:
startAsync
in interfacejakarta.servlet.ServletRequest
- Throws:
IllegalStateException
-
startAsync
public jakarta.servlet.AsyncContext startAsync(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) throws IllegalStateException - Specified by:
startAsync
in interfacejakarta.servlet.ServletRequest
- Throws:
IllegalStateException
-
toString
-
unwrap
Unwrap the request.- Type Parameters:
T
- the type to unwrap to.- Parameters:
request
- the request.type
- the class type of the result- Returns:
- the unwrapped request.
-
upgrade
public <T extends jakarta.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> handlerClass) throws IOException, jakarta.servlet.ServletException - Specified by:
upgrade
in interfacejakarta.servlet.http.HttpServletRequest
- Throws:
IOException
jakarta.servlet.ServletException
-
verifyMultipartFormData
protected void verifyMultipartFormData() throws jakarta.servlet.ServletExceptionVerify the method is of type "multipart/form-data"- Throws:
jakarta.servlet.ServletException
- the exception thrown when it is not.
-