Example usage for Java org.springframework.web.context.request WebRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | checkNotModified(long lastModifiedTimestamp) Check whether the requested resource has been modified given the supplied last-modified timestamp (as determined by the application). |
boolean | checkNotModified(String etag) Check whether the requested resource has been modified given the supplied ETag (entity tag), as determined by the application. |
Object | getAttribute(String name, int scope) Return the value for the scoped attribute of the given name, if any. |
String | getContextPath() Return the context path for this request (usually the base path that the current web application is mapped to). |
String | getDescription(boolean includeClientInfo) Get a short description of this request, typically containing request URI and session id. |
String | getHeader(String headerName) Return the request header of the given name, or null if none. |
Iterator | getHeaderNames() Return a Iterator over request header names. |
String[] | getHeaderValues(String headerName) Return the request header values for the given header name, or null if none. |
Locale | getLocale() Return the primary Locale for this request. |
String | getParameter(String paramName) Return the request parameter of the given name, or null if none. |
Map | getParameterMap() Return a immutable Map of the request parameters, with parameter names as map keys and parameter values as map values. |
Iterator | getParameterNames() Return a Iterator over request parameter names. |
String[] | getParameterValues(String paramName) Return the request parameter values for the given parameter name, or null if none. |
String | getRemoteUser() Return the remote user for this request, if any. |
String | getSessionId() Return an id for the current underlying session. |
Principal | getUserPrincipal() Return the user principal for this request, if any. |
boolean | isSecure() Return whether this request has been sent over a secure transport mechanism (such as SSL). |
void | removeAttribute(String name, int scope) Remove the scoped attribute of the given name, if it exists. |
void | setAttribute(String name, Object value, int scope) Set the value for the scoped attribute of the given name, replacing an existing value (if any). |