public class RequestAttributesHelper extends Object implements Component, Contextualizable
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
static String |
ROLE
Avalon role
|
Constructor and Description |
---|
RequestAttributesHelper() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
void |
removeRequestAttributes()
Remove the request attributes
|
void |
restoreRequestAttributes(Map<String,Object> attributes)
Clean the requests attributes and add those in the map
|
Map<String,Object> |
saveRequestAttributes()
Transforms the request attributes into a map and clean the attributes
|
public RequestAttributesHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public Map<String,Object> saveRequestAttributes()
public void restoreRequestAttributes(Map<String,Object> attributes)
attributes
- The attributes to restorepublic void removeRequestAttributes()