Class MockHttpServletRequest
- java.lang.Object
-
- org.apache.wicket.protocol.http.mock.MockHttpServletRequest
-
- All Implemented Interfaces:
javax.servlet.http.HttpServletRequest
,javax.servlet.ServletRequest
public class MockHttpServletRequest extends Object implements javax.servlet.http.HttpServletRequest
Mock servlet request. Implements all of the methods from the standard HttpServletRequest class plus helper methods to aid setting up a request.- Author:
- Chris Turner
-
-
Constructor Summary
Constructors Constructor Description MockHttpServletRequest(Application application, javax.servlet.http.HttpSession session, javax.servlet.ServletContext context)
MockHttpServletRequest(Application application, javax.servlet.http.HttpSession session, javax.servlet.ServletContext context, Locale locale)
Create the request using the supplied session object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addCookie(javax.servlet.http.Cookie cookie)
Add a new cookie.void
addCookies(Iterable<javax.servlet.http.Cookie> cookies)
void
addDateHeader(String name, long date)
void
addFile(String fieldName, File file, String contentType)
Add an uploaded file to the request.void
addHeader(String name, String value)
Add a header to the request.void
addParameter(String name, String value)
boolean
authenticate(javax.servlet.http.HttpServletResponse response)
String
changeSessionId()
javax.servlet.AsyncContext
getAsyncContext()
Object
getAttribute(String name)
Get an attribute.Enumeration<String>
getAttributeNames()
Get the names of all of the values.String
getAuthType()
Get the auth type.String
getCharacterEncoding()
Get the current character encoding.Charset
getCharset()
Get the current character set.int
getContentLength()
Return the length of the content.long
getContentLengthLong()
String
getContentType()
If useMultiPartContentType set as true return the correct content-type.String
getContextPath()
Get the context path.javax.servlet.http.Cookie
getCookie(String name)
javax.servlet.http.Cookie[]
getCookies()
Get all of the cookies for this request.long
getDateHeader(String name)
Get the given header as a date.javax.servlet.DispatcherType
getDispatcherType()
String
getFilterPrefix()
String
getHeader(String name)
Get the given header value.Enumeration<String>
getHeaderNames()
Get the names of all of the headers.Enumeration<String>
getHeaders(String name)
Get enumeration of all header values with the given name.javax.servlet.ServletInputStream
getInputStream()
Returns an input stream if there has been added some uploaded files.int
getIntHeader(String name)
Get the given header as an int.String
getLocalAddr()
Locale
getLocale()
Get the locale of the request.Enumeration<Locale>
getLocales()
Return all the accepted locales.String
getLocalName()
int
getLocalPort()
String
getMethod()
Get the method.String
getParameter(String name)
Get the request parameter with the given name.Map<String,String[]>
getParameterMap()
Get the map of all of the parameters.Enumeration<String>
getParameterNames()
Get the names of all of the parameters.String[]
getParameterValues(String name)
Get the values for the given parameter.javax.servlet.http.Part
getPart(String name)
Collection<javax.servlet.http.Part>
getParts()
String
getPathInfo()
Get the path info.String
getPathTranslated()
Always returns null.MockRequestParameters
getPostParameters()
String
getProtocol()
Get the protocol.String
getQueryString()
Get the query string part of the request.BufferedReader
getReader()
This feature is not implemented at this time as we are not supporting binary servlet input.String
getRealPath(String name)
Deprecated.Use ServletContext.getRealPath(String) instead.String
getRemoteAddr()
String
getRemoteHost()
Get the remote host.int
getRemotePort()
String
getRemoteUser()
Get the name of the remote user from the REMOTE_USER header.javax.servlet.RequestDispatcher
getRequestDispatcher(String name)
Return a dummy dispatcher that just records that dispatch has occurred without actually doing anything.String
getRequestedSessionId()
Get the requested session id.String
getRequestURI()
Returns context path and servlet path concatenated, typically /applicationClassName/applicationClassNameStringBuffer
getRequestURL()
Try to build a rough URL.String
getScheme()
Get the scheme.String
getServerName()
Get the server name.int
getServerPort()
javax.servlet.ServletContext
getServletContext()
String
getServletPath()
The servlet path may either be the application name or /.javax.servlet.http.HttpSession
getSession()
Get the sessions.javax.servlet.http.HttpSession
getSession(boolean createNew)
Get the session.Url
getUrl()
Principal
getUserPrincipal()
Get the user principal.boolean
hasUploadedFiles()
void
initialize(Locale locale)
Reset the request back to a default state.boolean
isAsyncStarted()
boolean
isAsyncSupported()
boolean
isRequestedSessionIdFromCookie()
Check whether session id is from a cookie.boolean
isRequestedSessionIdFromUrl()
Check whether session id is from a url rewrite.boolean
isRequestedSessionIdFromURL()
Check whether session id is from a url rewrite.boolean
isRequestedSessionIdValid()
Check whether the session id is valid.boolean
isSecure()
boolean
isUserInRole(String name)
NOT IMPLEMENTED.void
login(String username, String password)
void
logout()
void
removeAttribute(String name)
Remove the given attribute.void
setAttribute(String name, Object o)
Set the given attribute.void
setAuthType(String authType)
Set the auth type.void
setCharacterEncoding(String encoding)
Set the character encoding.void
setCookies(javax.servlet.http.Cookie[] theCookies)
Set the cookies.void
setHeader(String name, String value)
Sets a header to the request.void
setLocale(Locale locale)
void
setMethod(String method)
Set the method.void
setParameter(String name, String value)
Set a parameter.void
setParameters(Map<String,String[]> parameters)
Sets a map of parameters.MockHttpServletRequest
setPart(String name, javax.servlet.http.Part part)
void
setPath(String path)
Set the path that this request is supposed to be serving.void
setRemoteAddr(String addr)
void
setScheme(String scheme)
Sets the scheme of this requestvoid
setSecure(boolean secure)
void
setServerName(String serverName)
Set the server name.void
setServerPort(int port)
Sets the server port for this requestvoid
setUrl(Url url)
void
setURL(String url)
Set the complete url for this request.void
setUseMultiPartContentType(boolean useMultiPartContentType)
true will force Request generate multiPart ContentType and ContentLengthjavax.servlet.AsyncContext
startAsync()
javax.servlet.AsyncContext
startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse)
<T extends javax.servlet.http.HttpUpgradeHandler>
Tupgrade(Class<T> aClass)
-
-
-
Constructor Detail
-
MockHttpServletRequest
public MockHttpServletRequest(Application application, javax.servlet.http.HttpSession session, javax.servlet.ServletContext context, Locale locale)
Create the request using the supplied session object. Note that in order for temporary sessions to work, the supplied session must be an instance ofMockHttpSession
- Parameters:
application
- The application that this request is forsession
- The session objectcontext
- The current servlet contextlocale
- The current locale
-
MockHttpServletRequest
public MockHttpServletRequest(Application application, javax.servlet.http.HttpSession session, javax.servlet.ServletContext context)
-
-
Method Detail
-
addCookie
public void addCookie(javax.servlet.http.Cookie cookie)
Add a new cookie.- Parameters:
cookie
- The cookie
-
addCookies
public void addCookies(Iterable<javax.servlet.http.Cookie> cookies)
- Parameters:
cookies
-
-
addFile
public void addFile(String fieldName, File file, String contentType)
Add an uploaded file to the request. Use this to simulate a file that has been uploaded to a field.- Parameters:
fieldName
- The fieldname of the upload field.file
- The file to upload.contentType
- The content type of the file. Must be a correct mimetype.
-
addHeader
public void addHeader(String name, String value)
Add a header to the request.- Parameters:
name
- The name of the header to addvalue
- The value
-
setHeader
public void setHeader(String name, String value)
Sets a header to the request. Overrides any previous value of this header.- Parameters:
name
- The name of the header to addvalue
- The value- See Also:
addHeader(String, String)
-
addDateHeader
public void addDateHeader(String name, long date)
- Parameters:
name
-date
-
-
getAttribute
public Object getAttribute(String name)
Get an attribute.- Specified by:
getAttribute
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The attribute name- Returns:
- The value, or null
-
getAttributeNames
public Enumeration<String> getAttributeNames()
Get the names of all of the values.- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletRequest
- Returns:
- The names
-
getAuthType
public String getAuthType()
Get the auth type.- Specified by:
getAuthType
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The auth type
-
getCharacterEncoding
public String getCharacterEncoding()
Get the current character encoding.- Specified by:
getCharacterEncoding
in interfacejavax.servlet.ServletRequest
- Returns:
- The character encoding
-
getCharset
public Charset getCharset()
Get the current character set.- Returns:
- The character set
-
setUseMultiPartContentType
public void setUseMultiPartContentType(boolean useMultiPartContentType)
true will force Request generate multiPart ContentType and ContentLength- Parameters:
useMultiPartContentType
-
-
getContentLength
public int getContentLength()
Return the length of the content. This is always -1 except if useMultiPartContentType set as true. Then the length will be the length of the generated request.- Specified by:
getContentLength
in interfacejavax.servlet.ServletRequest
- Returns:
- -1 if useMultiPartContentType is false. Else the length of the generated request.
-
getContentLengthLong
public long getContentLengthLong()
- Specified by:
getContentLengthLong
in interfacejavax.servlet.ServletRequest
-
getContentType
public String getContentType()
If useMultiPartContentType set as true return the correct content-type.- Specified by:
getContentType
in interfacejavax.servlet.ServletRequest
- Returns:
- The correct multipart content-type if useMultiPartContentType is true. Else null.
-
getContextPath
public String getContextPath()
Get the context path. For this mock implementation the name of the application is always returned.- Specified by:
getContextPath
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The context path
-
getCookie
public javax.servlet.http.Cookie getCookie(String name)
- Parameters:
name
-- Returns:
- Cookie
-
getCookies
public javax.servlet.http.Cookie[] getCookies()
Get all of the cookies for this request.- Specified by:
getCookies
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The cookies
-
getDateHeader
public long getDateHeader(String name) throws IllegalArgumentException
Get the given header as a date.- Specified by:
getDateHeader
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
name
- The header name- Returns:
- The date, or -1 if header not found
- Throws:
IllegalArgumentException
- If the header cannot be converted
-
getHeader
public String getHeader(String name)
Get the given header value.- Specified by:
getHeader
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
name
- The header name- Returns:
- The header value or null
-
getHeaderNames
public Enumeration<String> getHeaderNames()
Get the names of all of the headers.- Specified by:
getHeaderNames
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The header names
-
getHeaders
public Enumeration<String> getHeaders(String name)
Get enumeration of all header values with the given name.- Specified by:
getHeaders
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
name
- The name- Returns:
- The header values
-
getInputStream
public javax.servlet.ServletInputStream getInputStream() throws IOException
Returns an input stream if there has been added some uploaded files. UseaddFile(String, File, String)
to add some uploaded files.- Specified by:
getInputStream
in interfacejavax.servlet.ServletRequest
- Returns:
- The input stream
- Throws:
IOException
- If an I/O related problem occurs
-
getIntHeader
public int getIntHeader(String name)
Get the given header as an int.- Specified by:
getIntHeader
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
name
- The header name- Returns:
- The header value or -1 if header not found
- Throws:
NumberFormatException
- If the header is not formatted correctly
-
getLocale
public Locale getLocale()
Get the locale of the request. Attempts to decode the Accept-Language header and if not found returns the default locale of the JVM.- Specified by:
getLocale
in interfacejavax.servlet.ServletRequest
- Returns:
- The locale
-
getLocales
public Enumeration<Locale> getLocales()
Return all the accepted locales. This implementation always returns just one.- Specified by:
getLocales
in interfacejavax.servlet.ServletRequest
- Returns:
- The locales
-
getMethod
public String getMethod()
Get the method.- Specified by:
getMethod
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The method
-
getParameter
public String getParameter(String name)
Get the request parameter with the given name.- Specified by:
getParameter
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The parameter name- Returns:
- The parameter value, or null
-
getParameterMap
public Map<String,String[]> getParameterMap()
Get the map of all of the parameters.- Specified by:
getParameterMap
in interfacejavax.servlet.ServletRequest
- Returns:
- The parameters
-
getParameterNames
public Enumeration<String> getParameterNames()
Get the names of all of the parameters.- Specified by:
getParameterNames
in interfacejavax.servlet.ServletRequest
- Returns:
- The parameter names
-
getParameterValues
public String[] getParameterValues(String name)
Get the values for the given parameter.- Specified by:
getParameterValues
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The name of the parameter- Returns:
- The return values
-
getPathInfo
public String getPathInfo()
Get the path info.- Specified by:
getPathInfo
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The path info
-
getPathTranslated
public String getPathTranslated()
Always returns null.- Specified by:
getPathTranslated
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- null
-
getProtocol
public String getProtocol()
Get the protocol.- Specified by:
getProtocol
in interfacejavax.servlet.ServletRequest
- Returns:
- Always HTTP/1.1
-
getQueryString
public String getQueryString()
Get the query string part of the request.- Specified by:
getQueryString
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The query string
-
getReader
public BufferedReader getReader() throws IOException
This feature is not implemented at this time as we are not supporting binary servlet input. This functionality may be added in the future.- Specified by:
getReader
in interfacejavax.servlet.ServletRequest
- Returns:
- The reader
- Throws:
IOException
- If an I/O related problem occurs
-
getRealPath
@Deprecated public String getRealPath(String name)
Deprecated.Use ServletContext.getRealPath(String) instead.Deprecated method - should not be used.- Specified by:
getRealPath
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The name- Returns:
- The path
-
getRemoteAddr
public String getRemoteAddr()
- Specified by:
getRemoteAddr
in interfacejavax.servlet.ServletRequest
- Returns:
- the remote address of the client
-
setRemoteAddr
public void setRemoteAddr(String addr)
- Parameters:
addr
- Format: "aaa.bbb.ccc.ddd"
-
getRemoteHost
public String getRemoteHost()
Get the remote host.- Specified by:
getRemoteHost
in interfacejavax.servlet.ServletRequest
- Returns:
- Return 'localhost' by default
-
getRemoteUser
public String getRemoteUser()
Get the name of the remote user from the REMOTE_USER header.- Specified by:
getRemoteUser
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The name of the remote user
-
getRequestDispatcher
public javax.servlet.RequestDispatcher getRequestDispatcher(String name)
Return a dummy dispatcher that just records that dispatch has occurred without actually doing anything.- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The name to dispatch to- Returns:
- The dispatcher
-
getRequestedSessionId
public String getRequestedSessionId()
Get the requested session id. Always returns the id of the current session.- Specified by:
getRequestedSessionId
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The session id
-
getRequestURI
public String getRequestURI()
Returns context path and servlet path concatenated, typically /applicationClassName/applicationClassName- Specified by:
getRequestURI
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The path value
- See Also:
HttpServletRequest.getRequestURI()
-
getRequestURL
public StringBuffer getRequestURL()
Try to build a rough URL.- Specified by:
getRequestURL
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The url
- See Also:
HttpServletRequest.getRequestURL()
-
getScheme
public String getScheme()
Get the scheme.- Specified by:
getScheme
in interfacejavax.servlet.ServletRequest
- Returns:
- the scheme of this request
-
setScheme
public void setScheme(String scheme)
Sets the scheme of this request set thesecure
flag accordingly (true
for 'https',false
otherwise)- Parameters:
scheme
- protocol scheme (e.g. https, http, ftp)- See Also:
isSecure()
-
getServerName
public String getServerName()
Get the server name.- Specified by:
getServerName
in interfacejavax.servlet.ServletRequest
- Returns:
- by default returns 'localhost'
-
setServerName
public void setServerName(String serverName)
Set the server name.- Parameters:
serverName
- content of 'Host' header
-
getServerPort
public int getServerPort()
- Specified by:
getServerPort
in interfacejavax.servlet.ServletRequest
- Returns:
- the server port of this request
-
setServerPort
public void setServerPort(int port)
Sets the server port for this request- Parameters:
port
-
-
getServletPath
public String getServletPath()
The servlet path may either be the application name or /. For test purposes we always return the servlet name.- Specified by:
getServletPath
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The servlet path
-
getSession
public javax.servlet.http.HttpSession getSession()
Get the sessions.- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- The session
-
changeSessionId
public String changeSessionId()
- Specified by:
changeSessionId
in interfacejavax.servlet.http.HttpServletRequest
-
getSession
public javax.servlet.http.HttpSession getSession(boolean createNew)
Get the session.- Specified by:
getSession
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
createNew
- Ignored, there is always a session- Returns:
- The session
-
getUserPrincipal
public Principal getUserPrincipal()
Get the user principal.- Specified by:
getUserPrincipal
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- A user principal
-
hasUploadedFiles
public boolean hasUploadedFiles()
- Returns:
- True if there has been added files to this request using
addFile(String, File, String)
-
initialize
public void initialize(Locale locale)
Reset the request back to a default state.- Parameters:
locale
-
-
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
Check whether session id is from a cookie. Always returns true.- Specified by:
isRequestedSessionIdFromCookie
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- Always true
-
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
Check whether session id is from a url rewrite. Always returns false.- Specified by:
isRequestedSessionIdFromUrl
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- Always false
-
authenticate
public boolean authenticate(javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
- Specified by:
authenticate
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
login
public void login(String username, String password) throws javax.servlet.ServletException
- Specified by:
login
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
logout
public void logout() throws javax.servlet.ServletException
- Specified by:
logout
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
javax.servlet.ServletException
-
getParts
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.servlet.ServletException
- Specified by:
getParts
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
getPart
public javax.servlet.http.Part getPart(String name) throws IOException, javax.servlet.ServletException
- Specified by:
getPart
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
upgrade
public <T extends javax.servlet.http.HttpUpgradeHandler> T upgrade(Class<T> aClass) throws IOException, javax.servlet.ServletException
- Specified by:
upgrade
in interfacejavax.servlet.http.HttpServletRequest
- Throws:
IOException
javax.servlet.ServletException
-
setPart
public MockHttpServletRequest setPart(String name, javax.servlet.http.Part part)
-
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
Check whether session id is from a url rewrite. Always returns false.- Specified by:
isRequestedSessionIdFromURL
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- Always false
-
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
Check whether the session id is valid.- Specified by:
isRequestedSessionIdValid
in interfacejavax.servlet.http.HttpServletRequest
- Returns:
- Always true
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfacejavax.servlet.ServletRequest
- Returns:
true
if this request's scheme is 'https',false
- otherwise
-
setSecure
public void setSecure(boolean secure)
- Parameters:
secure
-
-
isUserInRole
public boolean isUserInRole(String name)
NOT IMPLEMENTED.- Specified by:
isUserInRole
in interfacejavax.servlet.http.HttpServletRequest
- Parameters:
name
- The role name- Returns:
- Always false
-
removeAttribute
public void removeAttribute(String name)
Remove the given attribute.- Specified by:
removeAttribute
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The name of the attribute
-
setAttribute
public void setAttribute(String name, Object o)
Set the given attribute.- Specified by:
setAttribute
in interfacejavax.servlet.ServletRequest
- Parameters:
name
- The attribute nameo
- The value to set
-
setAuthType
public void setAuthType(String authType)
Set the auth type.- Parameters:
authType
- The auth type
-
setCharacterEncoding
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException
Set the character encoding.- Specified by:
setCharacterEncoding
in interfacejavax.servlet.ServletRequest
- Parameters:
encoding
- The character encoding- Throws:
UnsupportedEncodingException
- If encoding not supported
-
setCookies
public void setCookies(javax.servlet.http.Cookie[] theCookies)
Set the cookies.- Parameters:
theCookies
- The cookies
-
setParameter
public void setParameter(String name, String value)
Set a parameter.- Parameters:
name
- The namevalue
- The value
-
addParameter
public void addParameter(String name, String value)
- Parameters:
name
-value
-
-
setParameters
public void setParameters(Map<String,String[]> parameters)
Sets a map of parameters.- Parameters:
parameters
- the parameters to set
-
setPath
public void setPath(String path)
Set the path that this request is supposed to be serving. The path is relative to the web application root and should start with a / character- Parameters:
path
-
-
setURL
public void setURL(String url)
Set the complete url for this request. The url will be analyzed.- Parameters:
url
-
-
getLocalAddr
public String getLocalAddr()
- Specified by:
getLocalAddr
in interfacejavax.servlet.ServletRequest
- Returns:
- local address
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfacejavax.servlet.ServletRequest
- Returns:
- local host name
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPort
in interfacejavax.servlet.ServletRequest
- Returns:
- local port
-
getRemotePort
public int getRemotePort()
- Specified by:
getRemotePort
in interfacejavax.servlet.ServletRequest
- Returns:
- remote port
-
getPostParameters
public MockRequestParameters getPostParameters()
- Returns:
- post parameters
-
getFilterPrefix
public String getFilterPrefix()
- Returns:
- filter prefix
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfacejavax.servlet.ServletRequest
- Returns:
- ServletContext
-
startAsync
public javax.servlet.AsyncContext startAsync() throws IllegalStateException
- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
startAsync
public javax.servlet.AsyncContext startAsync(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse) throws IllegalStateException
- Specified by:
startAsync
in interfacejavax.servlet.ServletRequest
- Throws:
IllegalStateException
-
isAsyncStarted
public boolean isAsyncStarted()
- Specified by:
isAsyncStarted
in interfacejavax.servlet.ServletRequest
-
isAsyncSupported
public boolean isAsyncSupported()
- Specified by:
isAsyncSupported
in interfacejavax.servlet.ServletRequest
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()
- Specified by:
getAsyncContext
in interfacejavax.servlet.ServletRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()
- Specified by:
getDispatcherType
in interfacejavax.servlet.ServletRequest
-
-