|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestContext
Portal Request Context is associated with each request
Field Summary | |
---|---|
static String |
REQUEST_PORTALENV
|
Method Summary | |
---|---|
org.apache.pluto.om.window.PortletWindow |
getActionWindow()
Get the target Action Window |
Object |
getAttribute(String key)
Get a request attribute associated with this single request. |
CapabilityMap |
getCapabilityMap()
Get the Capability Map |
String |
getCharacterEncoding()
get the character encoding |
javax.servlet.ServletConfig |
getConfig()
Gets the HTTP Servlet Config |
ContentDispatcher |
getContentDispatcher()
Gets the content dispatcher for this request |
Locale |
getLocale()
Gets the locale associated with this request. |
String |
getMediaType()
get the Media Type |
String |
getMimeType()
Get the mimeType for the request |
Map |
getObjects()
Return a map of Jetspeed Request Context objects configured via Spring Map |
ContentPage |
getPage()
Gets the target page for this request |
Map |
getParameterMap()
Use this method to get a map of request parameters on the generalized request, decoupling request parameter manipulation from servlet API. |
String |
getPath()
Returns any extra path information associated with the URL the client sent when it made this request. |
Pipeline |
getPipeline()
Get the current executing pipeline |
PortalURL |
getPortalURL()
Gets the Portal URL for the current request. |
org.apache.pluto.om.common.Language |
getPreferedLanguage(org.apache.pluto.om.portlet.PortletDefinition portlet)
getPreferedLanguage |
Map |
getProfileLocators()
Gets the profile locators for this request |
javax.servlet.http.HttpServletRequest |
getRequest()
Gets the HTTP Servlet Request. |
javax.servlet.http.HttpServletRequest |
getRequestForWindow(org.apache.pluto.om.window.PortletWindow window)
getRequestForWindow |
String |
getRequestParameter(String key)
Use this method to get a request parameter on the generalized request, decoupling request parameter manipulation from servlet API. |
javax.servlet.http.HttpServletResponse |
getResponse()
Gets the HTTP Servlet Response. |
javax.servlet.http.HttpServletResponse |
getResponseForWindow(org.apache.pluto.om.window.PortletWindow window)
getResponseForWindow |
Object |
getSessionAttribute(String key)
Gets an attribute from the session. |
Subject |
getSubject()
Gets the subject associated with the authorized entity. |
Map |
getUserInfoMap(org.apache.pluto.om.common.ObjectID oid)
Returns the user info map of user attributes for a given portlet application. |
Principal |
getUserPrincipal()
Gets the Jetspeed primary user principal associated with the authorized entity. |
ContentPage |
locatePage(Profiler profiler,
String nonProfiledPath)
Locates a specific page using the profiler and site manager location algorithms from a generalized non-profiled path to the first page matching the path |
Throwable |
popActionFailure(org.apache.pluto.om.window.PortletWindow window)
|
void |
setActionFailure(org.apache.pluto.om.window.PortletWindow window,
Throwable actionFailure)
|
void |
setActionWindow(org.apache.pluto.om.window.PortletWindow window)
Sets the target Portlet Window |
void |
setAttribute(String key,
Object value)
Sets an attribute into the request. |
void |
setCapabilityMap(CapabilityMap map)
Set the capabilityMap. |
void |
setCharacterEncoding(String enc)
set character encoding |
void |
setContentDispatcher(ContentDispatcher dispatcher)
Sets the content dispatcher for this request |
void |
setLocale(Locale locale)
Sets the locale associated with this request. |
void |
setMediaType(String mediaType)
Set the mediaType. |
void |
setMimeType(String mimeType)
Set the Mimetype. |
void |
setPage(ContentPage page)
Sets the target page for this request |
void |
setPath(String path)
setPath |
void |
setPipeline(Pipeline pipeline)
Set the current pipeline |
void |
setPortalURL(PortalURL portalUrl)
Sets the Portal URL for the current request. |
void |
setProfileLocators(Map locators)
Sets the target page profile locators for this request |
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the HTTP Servlet Request. |
void |
setResponse(javax.servlet.http.HttpServletResponse response)
Sets the HTTP Servlet Response. |
void |
setSessionAttribute(String key,
Object value)
Sets an attribute into the session. |
void |
setSubject(Subject subject)
Sets the subject associated with the authorized entity. |
Field Detail |
---|
static final String REQUEST_PORTALENV
Method Detail |
---|
javax.servlet.http.HttpServletRequest getRequest()
getPortletRequestForWindow()
before
being processed by the portlet container.
void setRequest(javax.servlet.http.HttpServletRequest request)
getPortletRequestForWindow()
before
being processed by the portlet container.
javax.servlet.http.HttpServletResponse getResponse()
getPortletResponseForWindow()
before
being processed by the portlet container.
void setResponse(javax.servlet.http.HttpServletResponse response)
getPortletResponseForWindow()
before
being processed by the portlet container.
javax.servlet.ServletConfig getConfig()
Map getProfileLocators()
void setProfileLocators(Map locators)
locators
- The target profile locators by locator nameContentPage getPage()
void setPage(ContentPage page)
page
- The target pageContentDispatcher getContentDispatcher()
void setContentDispatcher(ContentDispatcher dispatcher)
dispatcher
- The ContentDispatcher to use for this requestvoid setCapabilityMap(CapabilityMap map)
capabilityMap
- CapabilityMap getCapabilityMap()
void setMimeType(String mimeType)
mimeType
- String getMimeType()
void setMediaType(String mediaType)
mediaType
- String getMediaType()
PortalURL getPortalURL()
null
value.
IllegalStateException
- if portalUrl
if has not been set.void setPortalURL(PortalURL portalUrl)
IllegalStateException
- if portalUrl
has been set already.
IllegalArgumentException
- if a null value is passed in.org.apache.pluto.om.window.PortletWindow getActionWindow()
void setActionWindow(org.apache.pluto.om.window.PortletWindow window)
window
- String getCharacterEncoding()
void setCharacterEncoding(String enc)
enc
- javax.servlet.http.HttpServletRequest getRequestForWindow(org.apache.pluto.om.window.PortletWindow window)
getRequestForWindow
Takes a PortletWindow and generates a HttpServletRequest that accurately represents that PortletWindow's request parameters
window
- PortletWindow that we are build a request for
javax.servlet.http.HttpServletResponse getResponseForWindow(org.apache.pluto.om.window.PortletWindow window)
getResponseForWindow
Takes a PortletWindow and generates a HttpServletResponse that accurately represents that PortletWindow's request parameters.
window
- PortletWindow that we are build a response for
Subject getSubject()
void setSubject(Subject subject)
subject
- The JAAS subject on this request.Locale getLocale()
void setLocale(Locale locale)
The
- locale associated with this request.String getRequestParameter(String key)
key
- The parameter unique key
Map getParameterMap()
Object getSessionAttribute(String key)
key
- The key of the attribute
void setSessionAttribute(String key, Object value)
key
- The key of the session attributevalue
- The value of the session attributeObject getAttribute(String key)
key
- The key of the request attribute
void setAttribute(String key, Object value)
key
- The key of the request attributevalue
- The value of the request attributeString getPath()
Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string. This method returns null if there was no extra path information.
This method should function identically to HttpServletRequest.getPathInfo()
except for that it removes ALL portal/portlet navigational state information from the
path info string.
void setPath(String path)
setPath
Allows the manual overriding of path Jetspeed 2 will look to resolves pages and folders.
path
- Map getUserInfoMap(org.apache.pluto.om.common.ObjectID oid)
oid
- The portlet application object id.
org.apache.pluto.om.common.Language getPreferedLanguage(org.apache.pluto.om.portlet.PortletDefinition portlet)
getPreferedLanguage
Returns the Language object for theportlet
which most
closely matches the prefences of the currently requesting client.
portlet
-
Language
that matches, as closely as possible, that of
the requesting client.Throwable popActionFailure(org.apache.pluto.om.window.PortletWindow window)
void setActionFailure(org.apache.pluto.om.window.PortletWindow window, Throwable actionFailure)
actionFailed
- The actionFailed to set.Pipeline getPipeline()
void setPipeline(Pipeline pipeline)
pipeline
- Principal getUserPrincipal()
ContentPage locatePage(Profiler profiler, String nonProfiledPath)
profiler
- The profiler component to use in the search
Map getObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |