Method Summary |
|
public void | addCookie(Cookie cookie) Add a Cookie to the set of Cookies associated with this Request. |
public void | addHeader(String name, String value) Add a Header to the set of Headers associated with this Request. |
public void | addParameter(String name, String values) Add a parameter name and corresponding set of values to this Request. |
public void | clearCookies() Clear the collection of Cookies associated with this Request. |
public void | clearHeaders() Clear the collection of Headers associated with this Request. |
public void | clearLocales() Clear the collection of Locales associated with this Request. |
public void | clearParameters() Clear the collection of parameters associated with this Request. |
public String | getAuthType() Return the authentication type used for this Request. |
public String | getContextPath() Return the portion of the request URI used to select the Context
of the Request. |
public Cookie[] | getCookies() Return the set of Cookies received with this Request. |
public long | getDateHeader(String name) Return the value of the specified date header, if any; otherwise
return -1. |
public String | getDecodedRequestURI() Return the URL decoded request URI. |
public String | getHeader(String name) |
public Enumeration | getHeaderNames() Return the names of all headers received with this request. |
public Enumeration | getHeaders(String name) Return all of the values of the specified header, if any; otherwise,
return an empty enumeration. |
public String | getInfo() Return descriptive information about this Request implementation and
the corresponding version number, in the format
<description>/<version> . |
public int | getIntHeader(String name) Return the value of the specified header as an integer, or -1 if there
is no such header for this request. |
public String | getMethod() Return the HTTP request method used in this Request. |
public String | getParameter(String name) Return the value of the specified request parameter, if any; otherwise,
return null . |
public Map | getParameterMap() Returns a Map of the parameters of this request. |
public Enumeration | getParameterNames() Return the names of all defined request parameters for this request. |
public String[] | getParameterValues(String name) Return the defined values for the specified request parameter, if any;
otherwise, return null . |
public String | getPathInfo() Return the path information associated with this Request. |
public String | getPathTranslated() Return the extra path information for this request, translated
to a real path. |
public String | getQueryString() Return the query string associated with this request. |
public String | getRemoteUser() Return the name of the remote user that has been authenticated
for this Request. |
public ServletRequest | getRequest() Return the ServletRequest for which this object
is the facade. |
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 String | getRequestURI() Return the request URI for this request. |
public StringBuffer | getRequestURL() Reconstructs the URL the client used to make the request. |
public String | getRequestedSessionId() Return the session identifier included in this request, if any. |
public String | getServletPath() Return the portion of the request URI used to select the servlet
that will process this request. |
public HttpSession | getSession() Return the session associated with this Request, creating one
if necessary. |
public HttpSession | getSession(boolean create) Return the session associated with this Request, creating one
if necessary and requested. |
public Principal | getUserPrincipal() Return the principal that has been authenticated for this Request. |
public boolean | isRequestedSessionIdFromCookie() Return true if the session identifier included in this
request came from a cookie. |
public boolean | isRequestedSessionIdFromURL() Return true if the session identifier included in this
request came from the request URI. |
public boolean | isRequestedSessionIdFromUrl() Return true if the session identifier included in this
request came from the request URI. |
public boolean | isRequestedSessionIdValid() Return true if the session identifier included in this
request identifies a valid session. |
public boolean | isSecure() |
public boolean | isUserInRole(String role) Return true if the authenticated user principal
possesses the specified role name. |
protected void | parseParameters() Parse the parameters of this request, if it has not already occurred. |
public void | recycle() Release all object references, and initialize instance variables, in
preparation for reuse of this object. |
public void | setAuthType(String authType) Set the authentication type used for this request, if any; otherwise
set the type to null . |
public void | setContextPath(String path) Set the context path for this Request. |
public void | setDecodedRequestURI(String uri) Set the decoded request URI. |
public void | setMethod(String method) Set the HTTP request method used for this Request. |
public void | setPathInfo(String path) Set the path information for this Request. |
public void | setQueryString(String query) Set the query string for this Request. |
public void | setRequestURI(String uri) Set the unparsed request URI for this Request. |
public void | setRequestedSessionCookie(boolean flag) Set a flag indicating whether or not the requested session ID for this
request came in through a cookie. |
public void | setRequestedSessionId(String id) Set the requested session ID for this request. |
public void | setRequestedSessionURL(boolean flag) Set a flag indicating whether or not the requested session ID for this
request came in through a URL. |
public void | setSecure(boolean secure) Set the flag indicating whether this Request was received on a secure
communications link or not. |
public void | setServletPath(String path) Set the servlet path for this Request. |
public void | setUserPrincipal(Principal principal) Set the Principal who has been authenticated for this Request. |