Example usage for Java org.springframework.web.context.request RequestAttributes fields, constructors, methods, implement or subclass
The text is from its open source code.
int | SCOPE_REQUEST Constant that indicates request scope. |
int | SCOPE_SESSION Constant that indicates session scope. |
String | REFERENCE_REQUEST Name of the standard reference to the request object: "request". |
String | REFERENCE_SESSION Name of the standard reference to the session object: "session". |
Object | getAttribute(String name, int scope) Return the value for the scoped attribute of the given name, if any. |
String | getSessionId() Return an id for the current underlying session. |
void | registerDestructionCallback(String name, Runnable callback, int scope) Register a callback to be executed on destruction of the specified attribute in the given scope. |
void | removeAttribute(String name, int scope) Remove the scoped attribute of the given name, if it exists. |
Object | resolveReference(String key) Resolve the contextual reference for the given key, if any. |
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). |