Method Summary |
|
public void | addLocale(Locale locale) Add a Locale to the set of preferred Locales for this Request. |
public ServletInputStream | createInputStream() Create and return a ServletInputStream to read the content
associated with this Request. |
public void | finishRequest() Perform whatever actions are required to flush and close the input
stream or reader, in a single operation. |
public Object | getAttribute(String name) Return the specified request attribute if it exists; otherwise, return
null . |
public Enumeration | getAttributeNames() Return the names of all request attributes for this Request, or an
empty Enumeration if there are none. |
public String | getAuthorization() Return the authorization credentials sent with this request. |
public String | getCharacterEncoding() Return the character encoding for this Request. |
public Connector | getConnector() Return the Connector through which this Request was received. |
public int | getContentLength() Return the content length for this Request. |
public String | getContentType() Return the content type for this Request. |
public Context | getContext() Return the Context within which this Request is being processed. |
public String | getInfo() Return descriptive information about this Request implementation and
the corresponding version number, in the format
<description>/<version> . |
public ServletInputStream | getInputStream() Return the servlet input stream for this Request. |
public Locale | getLocale() Return the preferred Locale that the client will accept content in,
based on the value for the first Accept-Language header
that was encountered. |
public Enumeration | getLocales() Return the set of preferred Locales that the client will accept
content in, based on the values for any Accept-Language
headers that were encountered. |
public Object | getNote(String name) Return the object bound with the specified name to the internal notes
for this request, or null if no such binding exists. |
public Iterator | getNoteNames() Return an Iterator containing the String names of all notes bindings
that exist for this request. |
abstract public String | getParameter(String name) Return the value of the specified request parameter, if any; otherwise,
return null . |
abstract public Map | getParameterMap() Returns a Map of the parameters of this request. |
abstract public Enumeration | getParameterNames() Return the names of all defined request parameters for this request. |
abstract public String[] | getParameterValues(String name) Return the defined values for the specified request parameter, if any;
otherwise, return null . |
public String | getProtocol() Return the protocol and version used to make this Request. |
public BufferedReader | getReader() Read the Reader wrapping the input stream for this Request. |
public String | getRealPath(String path) Return the real path of the specified virtual path. |
public String | getRemoteAddr() Return the remote IP address making this Request. |
public String | getRemoteHost() Return the remote host name making this Request. |
public ServletRequest | getRequest() Return the ServletRequest for which this object
is the facade. |
abstract public RequestDispatcher | getRequestDispatcher(String path) Return a RequestDispatcher that wraps the resource at the specified
path, which may be interpreted as relative to the current request path. |
public Response | getResponse() Return the Response with which this Request is associated. |
public String | getScheme() Return the scheme used to make this Request. |
public String | getServerName() Return the server name responding to this Request. |
public int | getServerPort() Return the server port responding to this Request. |
public Socket | getSocket() Return the Socket (if any) through which this Request was received. |
public InputStream | getStream() Return the input stream associated with this Request. |
public Wrapper | getWrapper() Return the Wrapper within which this Request is being processed. |
public boolean | isSecure() |
public void | recycle() Release all object references, and initialize instance variables, in
preparation for reuse of this object. |
public void | removeAttribute(String name) Remove the specified request attribute if it exists. |
public void | removeNote(String name) Remove any object bound to the specified name in the internal notes
for this request. |
public void | setAttribute(String name, Object value) Set the specified request attribute to the specified value. |
public void | setAuthorization(String authorization) Set the authorization credentials sent with this request. |
public void | setCharacterEncoding(String enc) Overrides the name of the character encoding used in the body of
this request. |
public void | setConnector(Connector connector) Set the Connector through which this Request was received. |
public void | setContentLength(int length) Set the content length associated with this Request. |
public void | setContentType(String type) Set the content type (and optionally the character encoding)
associated with this Request. |
public void | setContext(Context context) Set the Context within which this Request is being processed. |
public void | setNote(String name, Object value) Bind an object to a specified name in the internal notes associated
with this request, replacing any existing binding for this name. |
public void | setProtocol(String protocol) Set the protocol name and version associated with this Request. |
public void | setRemoteAddr(String remoteAddr) Set the IP address of the remote client associated with this Request. |
public void | setRemoteHost(String remoteHost) Set the fully qualified name of the remote client associated with this
Request. |
public void | setResponse(Response response) Set the Response with which this Request is associated. |
public void | setScheme(String scheme) Set the name of the scheme associated with this request. |
public void | setSecure(boolean secure) Set the value to be returned by isSecure()
for this Request. |
public void | setServerName(String name) Set the name of the server (virtual host) to process this request. |
public void | setServerPort(int port) Set the port number of the server to process this request. |
public void | setSocket(Socket socket) Set the Socket (if any) through which this Request was received. |
public void | setStream(InputStream input) Set the input stream associated with this Request. |
public void | setWrapper(Wrapper wrapper) Set the Wrapper within which this Request is being processed. |