HttpServletRequest
, WebApplicationRequest
, WebApplicationServerRequest
DefaultWebApplicationRequest
, DefaultWebApplicationServerRequest
, EmbeddedRequest
, HttpServletRequestWrapper
, NanoRequest
, RealtimeHttpServletRequestWrapper
, ServletRequestWrapper
, WeldHttpServletRequest
public interface ServletRequest
Modifier and Type | Method | Description |
---|---|---|
AsyncContext |
getAsyncContext() |
Get the async context.
|
Object |
getAttribute(String name) |
Get the attribute.
|
Enumeration<String> |
getAttributeNames() |
Get the attribute names.
|
String |
getCharacterEncoding() |
Get the character encoding.
|
int |
getContentLength() |
Get the content length.
|
long |
getContentLengthLong() |
Get the content length.
|
String |
getContentType() |
Get the content type.
|
DispatcherType |
getDispatcherType() |
Get the dispatcher type.
|
ServletInputStream |
getInputStream() |
Get the input stream.
|
String |
getLocalAddr() |
Get the local address.
|
Locale |
getLocale() |
Get the locale.
|
Enumeration<Locale> |
getLocales() |
Get the locales.
|
String |
getLocalName() |
Get the local name.
|
int |
getLocalPort() |
Get the local port.
|
String |
getParameter(String name) |
Get the parameter.
|
Map<String,String[]> |
getParameterMap() |
Get the parameter map.
|
Enumeration<String> |
getParameterNames() |
Get the parameter names.
|
String[] |
getParameterValues(String name) |
Get the parameter values.
|
String |
getProtocol() |
Get the protocol.
|
BufferedReader |
getReader() |
Get the reader.
|
String |
getRealPath(String path) |
Deprecated.
|
String |
getRemoteAddr() |
Get the remote address.
|
String |
getRemoteHost() |
Get the remote host.
|
int |
getRemotePort() |
Get the remote port.
|
RequestDispatcher |
getRequestDispatcher(String path) |
Get the request dispatcher.
|
String |
getScheme() |
Get the scheme.
|
String |
getServerName() |
Get the server name.
|
int |
getServerPort() |
Get the server port.
|
ServletContext |
getServletContext() |
Get the servlet context.
|
boolean |
isAsyncStarted() |
Is async started.
|
boolean |
isAsyncSupported() |
Is async supported.
|
boolean |
isSecure() |
Is secure.
|
void |
removeAttribute(String name) |
Remove the attribute.
|
void |
setAttribute(String name,
Object object) |
Set the attribute.
|
void |
setCharacterEncoding(String characterEncoding) |
Set the character encoding.
|
AsyncContext |
startAsync() |
Start async processing.
|
AsyncContext |
startAsync(ServletRequest servletRequest,
ServletResponse servletResponse) |
Start async processing.
|
AsyncContext getAsyncContext()
Object getAttribute(String name)
name
- the name.Enumeration<String> getAttributeNames()
String getCharacterEncoding()
int getContentLength()
long getContentLengthLong()
String getContentType()
DispatcherType getDispatcherType()
ServletInputStream getInputStream() throws IOException
IOException
- when an I/O error occurs.String getLocalAddr()
String getLocalName()
int getLocalPort()
Locale getLocale()
Enumeration<Locale> getLocales()
String getParameter(String name)
name
- the name.Map<String,String[]> getParameterMap()
Enumeration<String> getParameterNames()
String[] getParameterValues(String name)
name
- the name.String getProtocol()
BufferedReader getReader() throws IOException
IOException
- when an I/O error occurs.String getRealPath(String path)
path
- the path.String getRemoteAddr()
String getRemoteHost()
int getRemotePort()
RequestDispatcher getRequestDispatcher(String path)
path
- the path.String getScheme()
String getServerName()
int getServerPort()
ServletContext getServletContext()
boolean isAsyncStarted()
boolean isAsyncSupported()
boolean isSecure()
void removeAttribute(String name)
name
- the name.void setAttribute(String name, Object object)
name
- the name.object
- the object value.void setCharacterEncoding(String characterEncoding) throws UnsupportedEncodingException
characterEncoding
- the character encoding.UnsupportedEncodingException
- when the encoding is NOT supported.AsyncContext startAsync() throws IllegalStateException
IllegalStateException
- when not able to start async processing.AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse) throws IllegalStateException
servletRequest
- the servlet request.servletResponse
- the servlet response.IllegalStateException
- when not able to start async processing.Copyright © 2020 Piranha Cloud. All rights reserved.