|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.core.DefaultRequestAttributeService
public class DefaultRequestAttributeService
Delegates request attribute storage and retrieval to the passed HttpServletRequest. Also includes logic for retrieving
and filtering the PortletRequest.USER_INFO
Map in createUserInfoMap(PortletRequest, PortletWindow)
Constructor Summary | |
---|---|
DefaultRequestAttributeService()
|
|
DefaultRequestAttributeService(OptionalContainerServices optionalContainerServices)
|
Method Summary | |
---|---|
protected java.util.Map |
createUserInfoMap(javax.portlet.PortletRequest portletRequest,
PortletWindow portletWindow)
Retrieves the UserInfoService from the OptionalContainerServices, gets the user-info Map and fitlers it for the attributes in the portlet descriptor. |
protected java.lang.String |
encodeAttributeName(PortletWindow portletWindow,
java.lang.String name)
Encodes the attribute name using the portlet window id if it is not reserved |
java.lang.Object |
getAttribute(javax.portlet.PortletRequest portletRequest,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletWindow portletWindow,
java.lang.String name)
Retrieve the named attribute for the HttpServletRequest and PortletWindow |
java.util.Enumeration |
getAttributeNames(javax.portlet.PortletRequest portletRequest,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletWindow portletWindow)
Get an Enumeration of all available attribute names for the HttpServletRequest and PortletWindow |
OptionalContainerServices |
getOptionalContainerServices()
|
protected boolean |
isNameReserved(java.lang.String name)
Is this attribute name a reserved name (by the J2EE spec)?. |
void |
removeAttribute(javax.portlet.PortletRequest portletRequest,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletWindow portletWindow,
java.lang.String name)
Remove a named attribute for the HttpServletRequest and PortletWindow |
void |
setAttribute(javax.portlet.PortletRequest portletRequest,
javax.servlet.http.HttpServletRequest httpServletRequest,
PortletWindow portletWindow,
java.lang.String name,
java.lang.Object value)
Set an attribute for the HttpServletRequest and PortletWindow |
void |
setOptionalContainerServices(OptionalContainerServices optionalContainerServices)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRequestAttributeService()
public DefaultRequestAttributeService(OptionalContainerServices optionalContainerServices)
Method Detail |
---|
public OptionalContainerServices getOptionalContainerServices()
public void setOptionalContainerServices(OptionalContainerServices optionalContainerServices)
public java.lang.Object getAttribute(javax.portlet.PortletRequest portletRequest, javax.servlet.http.HttpServletRequest httpServletRequest, PortletWindow portletWindow, java.lang.String name)
RequestAttributeService
getAttribute
in interface RequestAttributeService
public java.util.Enumeration getAttributeNames(javax.portlet.PortletRequest portletRequest, javax.servlet.http.HttpServletRequest httpServletRequest, PortletWindow portletWindow)
RequestAttributeService
getAttributeNames
in interface RequestAttributeService
public void removeAttribute(javax.portlet.PortletRequest portletRequest, javax.servlet.http.HttpServletRequest httpServletRequest, PortletWindow portletWindow, java.lang.String name)
RequestAttributeService
removeAttribute
in interface RequestAttributeService
public void setAttribute(javax.portlet.PortletRequest portletRequest, javax.servlet.http.HttpServletRequest httpServletRequest, PortletWindow portletWindow, java.lang.String name, java.lang.Object value)
RequestAttributeService
setAttribute
in interface RequestAttributeService
protected boolean isNameReserved(java.lang.String name)
protected java.lang.String encodeAttributeName(PortletWindow portletWindow, java.lang.String name)
protected java.util.Map createUserInfoMap(javax.portlet.PortletRequest portletRequest, PortletWindow portletWindow)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |