| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private final Set | |
| private final WebApplicationContext |
| Access | Constructor and Description |
|---|---|
| public | ContextExposingHttpServletRequest(HttpServletRequest
the original HttpServletRequest originalRequest, WebApplicationContext the WebApplicationContext that this request runs in context)Create a new ContextExposingHttpServletRequest for the given request. |
| public | ContextExposingHttpServletRequest(HttpServletRequest
the original HttpServletRequest originalRequest, WebApplicationContext the WebApplicationContext that this request runs in context, Set<String> the names of beans in the context which
are supposed to be exposed (if this is non-null, only the beans in this
Set are eligible for exposure as attributes) exposedContextBeanNames)Create a new ContextExposingHttpServletRequest for the given request. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getAttribute(String
a name)String specifying the name of the attributeOverrides jakarta. Implements jakarta. Object, or null if no attribute of the
given name exists.
|
| public final WebApplicationContext | |
| public void | setAttribute(String
a name, Object String specifying the name of the attributethe value)Object to be storedOverrides jakarta. Implements jakarta. |
| explicitAttributes | back to summary |
|---|---|
| private Set<String> explicitAttributes
| |
| exposedContextBeanNames | back to summary |
|---|---|
| private final Set<String> exposedContextBeanNames
| |
| webApplicationContext | back to summary |
|---|---|
| private final WebApplicationContext webApplicationContext | |
| ContextExposingHttpServletRequest | back to summary |
|---|---|
| public ContextExposingHttpServletRequest(HttpServletRequest originalRequest, WebApplicationContext context) Create a new ContextExposingHttpServletRequest for the given request.
| |
| ContextExposingHttpServletRequest | back to summary |
|---|---|
| public ContextExposingHttpServletRequest(HttpServletRequest originalRequest, WebApplicationContext context, Set<String> exposedContextBeanNames) Create a new ContextExposingHttpServletRequest for the given request.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Overrides jakarta. Implements jakarta. Doc from jakarta. Returns the value of the named attribute as an
Attributes can be set two ways. The servlet container may set attributes to make available custom information
about a request. For example, for requests made using HTTPS, the attribute
Attribute names should follow the same conventions as package names. Names beginning with | |
| getWebApplicationContext | back to summary |
|---|---|
| public final WebApplicationContext getWebApplicationContext() Return the WebApplicationContext that this request runs in. | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Overrides jakarta. Implements jakarta. Doc from jakarta. Stores an attribute in this request. Attributes are reset between requests. This method is most often used in
conjunction with
Attribute names should follow the same conventions as package names. Names beginning with
If the object passed in is null, the effect is the same as calling | |