cloud.piranha.api.WebApplicationRequest
, javax.servlet.http.HttpServletRequest
, javax.servlet.ServletRequest
DefaultWebApplicationServerRequest
public class DefaultWebApplicationRequest
extends javax.servlet.ServletInputStream
implements cloud.piranha.api.WebApplicationRequest
Modifier and Type | Field | Description |
---|---|---|
protected javax.servlet.AsyncContext |
asyncContext |
Stores the async context.
|
protected boolean |
asyncStarted |
Stores if async is started.
|
protected boolean |
asyncSupported |
Stores if async is supported.
|
protected cloud.piranha.api.AttributeManager |
attributeManager |
Stores the attribute manager.
|
protected java.lang.String |
authType |
Stores the auth type.
|
protected java.lang.String |
characterEncoding |
Stores the character encoding.
|
protected long |
contentLength |
Stores the content length.
|
protected java.lang.String |
contentType |
Stores the content type.
|
protected java.lang.String |
contextPath |
Stores the context path.
|
protected javax.servlet.http.Cookie[] |
cookies |
Stores the cookies.
|
protected java.lang.String |
currentSessionId |
Stores the current session id.
|
protected javax.servlet.DispatcherType |
dispatcherType |
Stores the dispatcher type.
|
protected boolean |
gotInputStream |
Stores the gotInputStream flag.
|
protected boolean |
gotReader |
Stores the gotReader flag.
|
protected cloud.piranha.api.HttpHeaderManager |
headerManager |
Stores the header manager.
|
protected java.io.InputStream |
inputStream |
Stores the input stream.
|
protected java.lang.String |
localAddress |
Stores the local address.
|
protected java.lang.String |
localName |
Stores the local name.
|
protected int |
localPort |
Stores the local port.
|
protected java.lang.String |
method |
Stores the method.
|
protected java.util.HashMap<java.lang.String,java.lang.String[]> |
parameters |
Stores the parameters.
|
protected boolean |
parametersParsed |
Stores the parameters parsed flag.
|
protected java.util.HashMap<java.lang.String,javax.servlet.http.Part> |
parts |
Stores the parts.
|
protected java.lang.String |
pathInfo |
Stores the path info.
|
protected java.lang.String |
protocol |
Stores the protocol.
|
protected java.lang.String |
queryString |
Stores the query string.
|
protected java.io.BufferedReader |
reader |
Stores the reader.
|
protected java.lang.String |
remoteAddr |
Stores the remote address.
|
protected java.lang.String |
remoteHost |
Stores the remote host.
|
protected int |
remotePort |
Stores the remote port.
|
protected java.lang.String |
requestedSessionId |
Stores the requested session id.
|
protected boolean |
requestedSessionIdFromCookie |
Stores the requested session id from cookie flag.
|
protected boolean |
requestedSessionIdFromURL |
Stores the requested session id from url flag.
|
protected java.lang.String |
scheme |
Stores the scheme.
|
protected java.lang.String |
serverName |
Stores the server name.
|
protected int |
serverPort |
Stores the server port.
|
protected java.lang.String |
servletPath |
Stores the servlet path.
|
protected boolean |
upgraded |
Stores the upgraded flag.
|
protected javax.servlet.http.HttpUpgradeHandler |
upgradeHandler |
Stores the upgrade handler.
|
protected java.security.Principal |
userPrincipal |
Stores the user principal.
|
protected cloud.piranha.api.WebApplication |
webApplication |
Stores the web application
|
Constructor | Description |
---|---|
DefaultWebApplicationRequest() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
authenticate(javax.servlet.http.HttpServletResponse response) |
Authenticate.
|
java.lang.String |
changeSessionId() |
Change the session id.
|
javax.servlet.AsyncContext |
getAsyncContext() |
Get the async context.
|
java.lang.Object |
getAttribute(java.lang.String name) |
Get the attribute.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames() |
Get attribute names.
|
java.lang.String |
getAuthType() |
Get the auth type.
|
java.lang.String |
getCharacterEncoding() |
Get the character encoding.
|
int |
getContentLength() |
Get the content length.
|
long |
getContentLengthLong() |
Get the content length.
|
java.lang.String |
getContentType() |
Get the content type.
|
java.lang.String |
getContextPath() |
Get the context path.
|
javax.servlet.http.Cookie[] |
getCookies() |
Get the cookies.
|
long |
getDateHeader(java.lang.String name) |
Get the date header.
|
javax.servlet.DispatcherType |
getDispatcherType() |
Get the dispatcher type.
|
java.lang.String |
getHeader(java.lang.String name) |
Get the header.
|
java.util.Enumeration<java.lang.String> |
getHeaderNames() |
Get the header names.
|
java.util.Enumeration<java.lang.String> |
getHeaders(java.lang.String name) |
Get the headers.
|
javax.servlet.ServletInputStream |
getInputStream() |
Get the input stream.
|
int |
getIntHeader(java.lang.String name) |
Get the int header.
|
java.lang.String |
getLocalAddr() |
Get the local address.
|
java.util.Locale |
getLocale() |
Get locale.
|
java.util.Enumeration<java.util.Locale> |
getLocales() |
Get the locales.
|
java.lang.String |
getLocalName() |
Get the local name.
|
int |
getLocalPort() |
Get the local port.
|
java.lang.String |
getMethod() |
Get the request method.
|
java.lang.String |
getParameter(java.lang.String name) |
Get the parameter.
|
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap() |
Get the parameter map.
|
java.util.Enumeration<java.lang.String> |
getParameterNames() |
Get the parameter names.
|
protected void |
getParametersFromRequest() |
Get the parameters from the request.
|
java.lang.String[] |
getParameterValues(java.lang.String name) |
Get the parameter values.
|
javax.servlet.http.Part |
getPart(java.lang.String name) |
Get the part.
|
java.util.Collection<javax.servlet.http.Part> |
getParts() |
Get the parts.
|
java.lang.String |
getPathInfo() |
Get the path info.
|
java.lang.String |
getPathTranslated() |
Get the translated path.
|
java.lang.String |
getProtocol() |
Get the protocol.
|
java.lang.String |
getQueryString() |
Get the query string.
|
java.io.BufferedReader |
getReader() |
Get the reader.
|
java.lang.String |
getRealPath(java.lang.String path) |
Deprecated.
|
java.lang.String |
getRemoteAddr() |
Get the remote address.
|
java.lang.String |
getRemoteHost() |
Get the remote host.
|
int |
getRemotePort() |
Get the remote port.
|
java.lang.String |
getRemoteUser() |
Get the remote user.
|
javax.servlet.RequestDispatcher |
getRequestDispatcher(java.lang.String path) |
Get the request dispatcher.
|
java.lang.String |
getRequestedSessionId() |
Get the requested session id.
|
java.lang.String |
getRequestURI() |
Get the request URI.
|
java.lang.StringBuffer |
getRequestURL() |
Get the request URL.
|
java.lang.String |
getScheme() |
Get the scheme.
|
java.lang.String |
getServerName() |
Get the server name.
|
int |
getServerPort() |
Get the server port.
|
cloud.piranha.api.WebApplication |
getServletContext() |
Get the servlet context.
|
java.lang.String |
getServletPath() |
Get the servlet path.
|
javax.servlet.http.HttpSession |
getSession() |
Get the session.
|
javax.servlet.http.HttpSession |
getSession(boolean create) |
Get the session.
|
javax.servlet.http.HttpUpgradeHandler |
getUpgradeHandler() |
Get the upgrade handler.
|
java.security.Principal |
getUserPrincipal() |
Get the user principal.
|
boolean |
isAsyncStarted() |
Is async started.
|
boolean |
isAsyncSupported() |
Is async supported.
|
boolean |
isFinished() |
Is the Servlet input stream finished?
|
boolean |
isReady() |
Is the Servlet input stream ready?
|
boolean |
isRequestedSessionIdFromCookie() |
Is the requested session id from cookie.
|
boolean |
isRequestedSessionIdFromUrl() |
Deprecated.
|
boolean |
isRequestedSessionIdFromURL() |
Is the requested session id from the request url.
|
boolean |
isRequestedSessionIdValid() |
Is the requested session id valid?
|
boolean |
isSecure() |
Is the request secure.
|
boolean |
isUpgraded() |
Is the request upgraded.
|
boolean |
isUserInRole(java.lang.String role) |
Is the user in the specified role.
|
void |
login(java.lang.String username,
java.lang.String password) |
Login.
|
void |
logout() |
Logout.
|
int |
read() |
Read from the Servlet input stream.
|
void |
removeAttribute(java.lang.String name) |
Remove the attribute.
|
void |
setAsyncSupported(boolean asyncSupported) |
Set the async supported flag.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
Set the attribute.
|
void |
setAuthType(java.lang.String authType) |
Set the auth type.
|
void |
setCharacterEncoding(java.lang.String characterEncoding) |
Set the character encoding.
|
void |
setContentLength(int contentLength) |
Set the content length.
|
void |
setContentType(java.lang.String contentType) |
Set the content type.
|
void |
setContextPath(java.lang.String contextPath) |
Set the context path.
|
void |
setCookies(javax.servlet.http.Cookie[] cookies) |
Set the cookies.
|
void |
setDispatcherType(javax.servlet.DispatcherType dispatcherType) |
Set the dispatcher type.
|
void |
setHeader(java.lang.String name,
java.lang.String value) |
Set the header.
|
void |
setInputStream(java.io.InputStream inputStream) |
Set the input stream.
|
void |
setLocalAddr(java.lang.String localAddress) |
Set the local address.
|
void |
setLocalName(java.lang.String localName) |
Set the local name.
|
void |
setLocalPort(int localPort) |
Set the local port.
|
void |
setMethod(java.lang.String method) |
Set the method.
|
void |
setParameter(java.lang.String name,
java.lang.String[] values) |
Set the parameter values.
|
void |
setPathInfo(java.lang.String pathInfo) |
Set the path info.
|
void |
setProtocol(java.lang.String protocol) |
Set the protocol.
|
void |
setQueryString(java.lang.String queryString) |
Set the query string.
|
void |
setReadListener(javax.servlet.ReadListener listener) |
Set the read listener.
|
void |
setRemoteAddr(java.lang.String remoteAddr) |
Set the remote address.
|
void |
setRemoteHost(java.lang.String remoteHost) |
Set the remote host.
|
void |
setRemotePort(int remotePort) |
Set the remote port.
|
void |
setRequestedSessionId(java.lang.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 |
setScheme(java.lang.String scheme) |
Set the scheme.
|
void |
setServerName(java.lang.String serverName) |
Set the server name.
|
void |
setServerPort(int serverPort) |
Set the server port.
|
void |
setServletPath(java.lang.String servletPath) |
Set the servlet path.
|
void |
setUpgraded(boolean upgraded) |
Set the upgraded flag.
|
void |
setUserPrincipal(java.security.Principal userPrincipal) |
Set the user principal.
|
void |
setWebApplication(cloud.piranha.api.WebApplication webApplication) |
Set the web application.
|
javax.servlet.AsyncContext |
startAsync() |
Start async.
|
javax.servlet.AsyncContext |
startAsync(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
Start async.
|
<T extends javax.servlet.http.HttpUpgradeHandler> |
upgrade(java.lang.Class<T> handlerClass) |
Upgrade the request.
|
protected void |
verifyMultipartFormData() |
Verify the method is of type "multipart/form-data"
|
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
protected java.lang.String authType
protected javax.servlet.AsyncContext asyncContext
protected boolean asyncStarted
protected boolean asyncSupported
protected cloud.piranha.api.AttributeManager attributeManager
protected java.lang.String characterEncoding
protected long contentLength
protected java.lang.String contentType
protected java.lang.String contextPath
protected javax.servlet.http.Cookie[] cookies
protected java.lang.String currentSessionId
protected javax.servlet.DispatcherType dispatcherType
protected boolean gotInputStream
protected boolean gotReader
protected cloud.piranha.api.HttpHeaderManager headerManager
protected java.io.InputStream inputStream
protected java.lang.String localAddress
protected java.lang.String localName
protected int localPort
protected java.lang.String method
protected java.util.HashMap<java.lang.String,java.lang.String[]> parameters
protected boolean parametersParsed
protected java.util.HashMap<java.lang.String,javax.servlet.http.Part> parts
protected java.lang.String pathInfo
protected java.lang.String protocol
protected java.lang.String queryString
protected java.io.BufferedReader reader
protected java.lang.String remoteAddr
protected java.lang.String remoteHost
protected int remotePort
protected java.lang.String requestedSessionId
protected boolean requestedSessionIdFromCookie
protected boolean requestedSessionIdFromURL
protected java.lang.String scheme
protected java.lang.String serverName
protected int serverPort
protected java.lang.String servletPath
protected boolean upgraded
protected javax.servlet.http.HttpUpgradeHandler upgradeHandler
protected java.security.Principal userPrincipal
protected cloud.piranha.api.WebApplication webApplication
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
authenticate
in interface javax.servlet.http.HttpServletRequest
response
- the HTTP servlet response.java.io.IOException
- when an I/O error occurs.javax.servlet.ServletException
- when a Servlet error occurs.public java.lang.String changeSessionId()
changeSessionId
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.AsyncContext getAsyncContext()
getAsyncContext
in interface javax.servlet.ServletRequest
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface javax.servlet.ServletRequest
name
- the attribute name.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface javax.servlet.ServletRequest
public java.lang.String getAuthType()
getAuthType
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletRequest
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
public long getContentLengthLong()
getContentLengthLong
in interface javax.servlet.ServletRequest
public java.lang.String getContentType()
getContentType
in interface javax.servlet.ServletRequest
public java.lang.String getContextPath()
getContextPath
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface javax.servlet.http.HttpServletRequest
public long getDateHeader(java.lang.String name)
getDateHeader
in interface javax.servlet.http.HttpServletRequest
name
- the header name.public javax.servlet.DispatcherType getDispatcherType()
getDispatcherType
in interface javax.servlet.ServletRequest
public java.lang.String getHeader(java.lang.String name)
getHeader
in interface javax.servlet.http.HttpServletRequest
name
- the header name.public java.util.Enumeration<java.lang.String> getHeaderNames()
getHeaderNames
in interface javax.servlet.http.HttpServletRequest
public java.util.Enumeration<java.lang.String> getHeaders(java.lang.String name)
getHeaders
in interface javax.servlet.http.HttpServletRequest
name
- the header name.public javax.servlet.ServletInputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.servlet.ServletRequest
java.io.IOException
- when a serious I/O error occurs.public int getIntHeader(java.lang.String name)
getIntHeader
in interface javax.servlet.http.HttpServletRequest
name
- the name.public java.lang.String getLocalAddr()
getLocalAddr
in interface javax.servlet.ServletRequest
public java.lang.String getLocalName()
getLocalName
in interface javax.servlet.ServletRequest
public int getLocalPort()
getLocalPort
in interface javax.servlet.ServletRequest
public java.util.Locale getLocale()
getLocale
in interface javax.servlet.ServletRequest
public java.util.Enumeration<java.util.Locale> getLocales()
getLocales
in interface javax.servlet.ServletRequest
public java.lang.String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface javax.servlet.ServletRequest
name
- the name.public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
public java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface javax.servlet.ServletRequest
name
- the parameter name.protected void getParametersFromRequest()
public javax.servlet.http.Part getPart(java.lang.String name) throws java.io.IOException, javax.servlet.ServletException
getPart
in interface javax.servlet.http.HttpServletRequest
name
- the name.java.io.IOException
- when an I/O error occurs.javax.servlet.ServletException
- when a servlet error occurs.public java.util.Collection<javax.servlet.http.Part> getParts() throws java.io.IOException, javax.servlet.ServletException
getParts
in interface javax.servlet.http.HttpServletRequest
java.io.IOException
- when an I/O error occurs.javax.servlet.ServletException
- when a servlet error occurs.public java.lang.String getPathInfo()
getPathInfo
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getPathTranslated()
getPathTranslated
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getProtocol()
getProtocol
in interface javax.servlet.ServletRequest
public java.lang.String getQueryString()
getQueryString
in interface javax.servlet.http.HttpServletRequest
public java.io.BufferedReader getReader() throws java.io.IOException
getReader
in interface javax.servlet.ServletRequest
java.io.IOException
- when a serious I/O error occurs.public java.lang.String getRealPath(java.lang.String path)
getRealPath
in interface javax.servlet.ServletRequest
path
- the path.public java.lang.String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
public java.lang.String getRemoteHost()
getRemoteHost
in interface javax.servlet.ServletRequest
public int getRemotePort()
getRemotePort
in interface javax.servlet.ServletRequest
public java.lang.String getRemoteUser()
getRemoteUser
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.RequestDispatcher getRequestDispatcher(java.lang.String path)
getRequestDispatcher
in interface javax.servlet.ServletRequest
path
- the path.public java.lang.String getRequestURI()
getRequestURI
in interface javax.servlet.http.HttpServletRequest
public java.lang.StringBuffer getRequestURL()
getRequestURL
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getRequestedSessionId()
getRequestedSessionId
in interface javax.servlet.http.HttpServletRequest
public java.lang.String getScheme()
getScheme
in interface javax.servlet.ServletRequest
public java.lang.String getServerName()
getServerName
in interface javax.servlet.ServletRequest
public int getServerPort()
getServerPort
in interface javax.servlet.ServletRequest
public cloud.piranha.api.WebApplication getServletContext()
getServletContext
in interface javax.servlet.ServletRequest
public java.lang.String getServletPath()
getServletPath
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.HttpSession getSession()
getSession
in interface javax.servlet.http.HttpServletRequest
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
create
- to create it or not.public javax.servlet.http.HttpUpgradeHandler getUpgradeHandler()
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
public boolean isAsyncStarted()
isAsyncStarted
in interface javax.servlet.ServletRequest
public boolean isAsyncSupported()
isAsyncSupported
in interface javax.servlet.ServletRequest
public boolean isRequestedSessionIdFromCookie()
isRequestedSessionIdFromCookie
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdFromURL()
isRequestedSessionIdFromURL
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdFromUrl()
isRequestedSessionIdFromUrl
in interface javax.servlet.http.HttpServletRequest
public boolean isRequestedSessionIdValid()
isRequestedSessionIdValid
in interface javax.servlet.http.HttpServletRequest
public boolean isSecure()
isSecure
in interface javax.servlet.ServletRequest
public boolean isUpgraded()
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface javax.servlet.http.HttpServletRequest
role
- the role.public void login(java.lang.String username, java.lang.String password) throws javax.servlet.ServletException
login
in interface javax.servlet.http.HttpServletRequest
username
- the username.password
- the password.javax.servlet.ServletException
- when a serious error occurs.public void logout() throws javax.servlet.ServletException
logout
in interface javax.servlet.http.HttpServletRequest
javax.servlet.ServletException
- when a serious error occurs.public void removeAttribute(java.lang.String name)
removeAttribute
in interface javax.servlet.ServletRequest
name
- the name.public void setAsyncSupported(boolean asyncSupported)
asyncSupported
- the async supported flag.public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface javax.servlet.ServletRequest
name
- the name.value
- the value.public void setAuthType(java.lang.String authType)
authType
- the auth type.public void setCharacterEncoding(java.lang.String characterEncoding) throws java.io.UnsupportedEncodingException
setCharacterEncoding
in interface javax.servlet.ServletRequest
characterEncoding
- the character encoding.java.io.UnsupportedEncodingException
- when the encoding is not supported.public void setContentLength(int contentLength)
contentLength
- the content length.public void setContentType(java.lang.String contentType)
contentType
- the content type.public void setContextPath(java.lang.String contextPath)
contextPath
- the context path.public void setCookies(javax.servlet.http.Cookie[] cookies)
cookies
- the cookies.public void setDispatcherType(javax.servlet.DispatcherType dispatcherType)
setDispatcherType
in interface cloud.piranha.api.WebApplicationRequest
dispatcherType
- the dispatcher type.public void setHeader(java.lang.String name, java.lang.String value)
name
- the name.value
- the value (string).public void setInputStream(java.io.InputStream inputStream)
inputStream
- the input stream.public void setLocalAddr(java.lang.String localAddress)
localAddress
- the local address.public void setLocalName(java.lang.String localName)
localName
- the local name.public void setLocalPort(int localPort)
localPort
- the local port.public void setMethod(java.lang.String method)
method
- the method.public void setParameter(java.lang.String name, java.lang.String[] values)
name
- the parameter name.values
- the values.public void setPathInfo(java.lang.String pathInfo)
pathInfo
- the path info.public void setProtocol(java.lang.String protocol)
protocol
- the protocol.public void setQueryString(java.lang.String queryString)
queryString
- the query string.public void setRemoteAddr(java.lang.String remoteAddr)
remoteAddr
- the remote address.public void setRemoteHost(java.lang.String remoteHost)
remoteHost
- the remote host.public void setRemotePort(int remotePort)
remotePort
- the remote port.public void setRequestedSessionId(java.lang.String requestedSessionId)
requestedSessionId
- the requested session id.public void setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
requestedSessionIdFromCookie
- the requested session id from cookie.public void setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL)
requestedSessionIdFromURL
- the requested session if from URL flag.public void setScheme(java.lang.String scheme)
scheme
- the scheme.public void setServerName(java.lang.String serverName)
serverName
- the server name.public void setServerPort(int serverPort)
serverPort
- the server port.public void setServletPath(java.lang.String servletPath)
servletPath
- the servlet path.public void setUpgraded(boolean upgraded)
upgraded
- the upgraded flag.public void setUserPrincipal(java.security.Principal userPrincipal)
userPrincipal
- the user principal.public void setWebApplication(cloud.piranha.api.WebApplication webApplication)
webApplication
- the web application.public javax.servlet.AsyncContext startAsync() throws java.lang.IllegalStateException
startAsync
in interface javax.servlet.ServletRequest
java.lang.IllegalStateException
- when async is not supported.public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.lang.IllegalStateException
startAsync
in interface javax.servlet.ServletRequest
request
- the request.response
- the response.java.lang.IllegalStateException
- when async is not supported.public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(java.lang.Class<T> handlerClass) throws java.io.IOException, javax.servlet.ServletException
upgrade
in interface javax.servlet.http.HttpServletRequest
T
- the type.handlerClass
- the handler class.java.io.IOException
- when an I/O error occurs.javax.servlet.ServletException
- when a serious error occurs.protected void verifyMultipartFormData() throws javax.servlet.ServletException
javax.servlet.ServletException
- the exception thrown when it is not.public boolean isFinished()
isFinished
in class javax.servlet.ServletInputStream
public boolean isReady()
isReady
in class javax.servlet.ServletInputStream
public void setReadListener(javax.servlet.ReadListener listener)
setReadListener
in class javax.servlet.ServletInputStream
listener
- the read listener.public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- when an I/O error occurs.Copyright © 2020 Piranha Cloud. All rights reserved.