public class PortletRequestAttributes extends Object
HttpServletRequest on the methods returning data reading the state. The object
can be used either during the render request where the dispatched request will be used. It can also be used
during a request dispatch made from the portlet to a servlet, in that situation the request provided will
be the one valid during the dispatching operation.
The other motivation of this class is to hold the state of the attributes that have been modified by the
request to the portlet container, so it will not write in the portal request attributes.| Modifier and Type | Field and Description |
|---|---|
protected static Object |
REMOVED_ATTRIBUTE
Constant object to mark that a request attribute is removed.
|
| Constructor and Description |
|---|
PortletRequestAttributes(SecurityContext securityContext,
PortletContainer container,
UserContext userContext,
javax.servlet.http.HttpServletRequestWrapper wreq) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Map<String,Object> |
getAttributeMap() |
Iterator<String> |
getAttributeNames() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setAttributeMap(Map<String,Object> map) |
protected static final Object REMOVED_ATTRIBUTE
public PortletRequestAttributes(SecurityContext securityContext, PortletContainer container, UserContext userContext, javax.servlet.http.HttpServletRequestWrapper wreq)
public void removeAttribute(String name)
Copyright © 2003-2019 GateIn. All Rights Reserved.