|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.request.JetspeedRequestContext
public class JetspeedRequestContext
Jetspeed Request Context is associated with each portal request. The request holds the contextual information shared amongst components in the portal, accessed through a common valve pipeline.
Field Summary | |
---|---|
private static String |
ACTION_ERROR_ATTR
|
private org.apache.pluto.om.window.PortletWindow |
actionWindow
|
private org.apache.jetspeed.capabilities.CapabilityMap |
capabilityMap
|
private javax.servlet.ServletConfig |
config
|
private org.apache.jetspeed.aggregator.ContentDispatcher |
dispatcher
|
private String |
encoding
|
private Locale |
locale
|
private Map |
locators
|
private String |
mediaType
|
private String |
mimeType
|
private Map |
objects
|
private org.apache.jetspeed.om.page.ContentPage |
page
|
private org.apache.jetspeed.pipeline.Pipeline |
pipeline
|
private org.apache.pluto.om.portlet.PortletDefinition |
portletDefinition
|
private javax.servlet.http.HttpServletRequest |
request
|
private String |
requestPath
|
private Map |
requestsForWindows
|
private javax.servlet.http.HttpServletResponse |
response
|
private Map |
responsesForWindows
|
private javax.servlet.http.HttpSession |
session
|
private Subject |
subject
|
private org.apache.jetspeed.container.url.PortalURL |
url
|
private org.apache.jetspeed.userinfo.UserInfoManager |
userInfoMgr
The user info manager. |
Fields inherited from interface org.apache.jetspeed.request.RequestContext |
---|
REQUEST_PORTALENV |
Constructor Summary | |
---|---|
JetspeedRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletConfig config,
org.apache.jetspeed.userinfo.UserInfoManager userInfoMgr)
Create a new Request Context |
|
JetspeedRequestContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletConfig config,
org.apache.jetspeed.userinfo.UserInfoManager userInfoMgr,
Map objects)
|
Method Summary | |
---|---|
org.apache.pluto.om.window.PortletWindow |
getActionWindow()
Get the target Portlet Action Window |
Object |
getAttribute(String key)
|
org.apache.jetspeed.capabilities.CapabilityMap |
getCapabilityMap()
get the Capability Map |
String |
getCharacterEncoding()
get the character encoding |
javax.servlet.ServletConfig |
getConfig()
|
org.apache.jetspeed.aggregator.ContentDispatcher |
getContentDispatcher()
|
Locale |
getLocale()
|
String |
getMediaType()
get the Media Type |
String |
getMimeType()
get the mimeType for the request |
Map |
getObjects()
|
org.apache.jetspeed.om.page.ContentPage |
getPage()
|
Map |
getParameterMap()
|
String |
getPath()
|
org.apache.jetspeed.pipeline.Pipeline |
getPipeline()
Get the current executing pipeline |
org.apache.jetspeed.container.url.PortalURL |
getPortalURL()
|
org.apache.pluto.om.portlet.PortletDefinition |
getPortletDefinition()
|
org.apache.pluto.om.common.Language |
getPreferedLanguage(org.apache.pluto.om.portlet.PortletDefinition portlet)
getPreferedLanguage |
Map |
getProfileLocators()
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
Object |
getRequestAttribute(String key)
|
javax.servlet.http.HttpServletRequest |
getRequestForWindow(org.apache.pluto.om.window.PortletWindow window)
getRequestForWindow |
String |
getRequestParameter(String key)
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
javax.servlet.http.HttpServletResponse |
getResponseForWindow(org.apache.pluto.om.window.PortletWindow window)
getResponseForWindow |
Object |
getSessionAttribute(String key)
|
Subject |
getSubject()
|
Map |
getUserInfoMap(org.apache.pluto.om.common.ObjectID oid)
|
Principal |
getUserPrincipal()
|
org.apache.jetspeed.om.page.ContentPage |
locatePage(org.apache.jetspeed.profiler.Profiler profiler,
String nonProfiledPath)
|
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 portletWindow)
Sets the target Portlet Action Window |
void |
setAttribute(String key,
Object value)
|
void |
setCapabilityMap(org.apache.jetspeed.capabilities.CapabilityMap map)
Set the capabilityMap. |
void |
setCharacterEncoding(String enc)
set character encoding |
void |
setContentDispatcher(org.apache.jetspeed.aggregator.ContentDispatcher dispatcher)
|
void |
setLocale(Locale locale)
|
void |
setMediaType(String mediaType)
Set the mediaType. |
void |
setMimeType(String mimeType)
Set the Mimetype. |
void |
setPage(org.apache.jetspeed.om.page.ContentPage page)
|
void |
setPath(String path)
setPath |
void |
setPipeline(org.apache.jetspeed.pipeline.Pipeline pipeline)
Set the current pipeline |
void |
setPortalURL(org.apache.jetspeed.container.url.PortalURL url)
|
void |
setPortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portletDefinition)
|
void |
setProfileLocators(Map locators)
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
|
void |
setRequestParameter(String key,
String value)
|
void |
setResponse(javax.servlet.http.HttpServletResponse response)
|
void |
setSessionAttribute(String key,
Object value)
|
void |
setSubject(Subject subject)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String ACTION_ERROR_ATTR
private javax.servlet.http.HttpServletRequest request
private javax.servlet.http.HttpServletResponse response
private javax.servlet.ServletConfig config
private javax.servlet.http.HttpSession session
private Map locators
private org.apache.jetspeed.om.page.ContentPage page
private org.apache.pluto.om.portlet.PortletDefinition portletDefinition
private Subject subject
private Locale locale
private org.apache.jetspeed.aggregator.ContentDispatcher dispatcher
private org.apache.jetspeed.pipeline.Pipeline pipeline
private org.apache.jetspeed.capabilities.CapabilityMap capabilityMap
private String mimeType
private String mediaType
private org.apache.jetspeed.container.url.PortalURL url
private org.apache.pluto.om.window.PortletWindow actionWindow
private String encoding
private String requestPath
private org.apache.jetspeed.userinfo.UserInfoManager userInfoMgr
private Map requestsForWindows
private Map responsesForWindows
private final Map objects
Constructor Detail |
---|
public JetspeedRequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletConfig config, org.apache.jetspeed.userinfo.UserInfoManager userInfoMgr)
pc
- request
- response
- config
- public JetspeedRequestContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletConfig config, org.apache.jetspeed.userinfo.UserInfoManager userInfoMgr, Map objects)
Method Detail |
---|
public javax.servlet.http.HttpServletRequest getRequest()
getRequest
in interface org.apache.jetspeed.request.RequestContext
public javax.servlet.http.HttpServletResponse getResponse()
getResponse
in interface org.apache.jetspeed.request.RequestContext
public javax.servlet.ServletConfig getConfig()
getConfig
in interface org.apache.jetspeed.request.RequestContext
public Map getProfileLocators()
getProfileLocators
in interface org.apache.jetspeed.request.RequestContext
public void setProfileLocators(Map locators)
setProfileLocators
in interface org.apache.jetspeed.request.RequestContext
public org.apache.jetspeed.om.page.ContentPage getPage()
getPage
in interface org.apache.jetspeed.request.RequestContext
public void setPage(org.apache.jetspeed.om.page.ContentPage page)
setPage
in interface org.apache.jetspeed.request.RequestContext
public org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition()
public void setPortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portletDefinition)
public org.apache.jetspeed.aggregator.ContentDispatcher getContentDispatcher()
getContentDispatcher
in interface org.apache.jetspeed.request.RequestContext
public void setContentDispatcher(org.apache.jetspeed.aggregator.ContentDispatcher dispatcher)
setContentDispatcher
in interface org.apache.jetspeed.request.RequestContext
public org.apache.jetspeed.capabilities.CapabilityMap getCapabilityMap()
getCapabilityMap
in interface org.apache.jetspeed.request.RequestContext
public void setMimeType(String mimeType)
setMimeType
in interface org.apache.jetspeed.request.RequestContext
mimeType
- public String getMimeType()
getMimeType
in interface org.apache.jetspeed.request.RequestContext
public void setMediaType(String mediaType)
setMediaType
in interface org.apache.jetspeed.request.RequestContext
mediaType
- public String getMediaType()
getMediaType
in interface org.apache.jetspeed.request.RequestContext
public org.apache.pluto.om.window.PortletWindow getActionWindow()
getActionWindow
in interface org.apache.jetspeed.request.RequestContext
public void setActionWindow(org.apache.pluto.om.window.PortletWindow portletWindow)
setActionWindow
in interface org.apache.jetspeed.request.RequestContext
window
- public void setCapabilityMap(org.apache.jetspeed.capabilities.CapabilityMap map)
setCapabilityMap
in interface org.apache.jetspeed.request.RequestContext
capabilityMap
- public String getCharacterEncoding()
getCharacterEncoding
in interface org.apache.jetspeed.request.RequestContext
public void setCharacterEncoding(String enc)
setCharacterEncoding
in interface org.apache.jetspeed.request.RequestContext
enc
- public javax.servlet.http.HttpServletRequest getRequestForWindow(org.apache.pluto.om.window.PortletWindow window)
getRequestForWindow
getRequestForWindow
in interface org.apache.jetspeed.request.RequestContext
window
-
RequestContext.getRequestForWindow(org.apache.pluto.om.window.PortletWindow)
public javax.servlet.http.HttpServletResponse getResponseForWindow(org.apache.pluto.om.window.PortletWindow window)
getResponseForWindow
getResponseForWindow
in interface org.apache.jetspeed.request.RequestContext
window
-
RequestContext.getResponseForWindow(org.apache.pluto.om.window.PortletWindow)
public Subject getSubject()
getSubject
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getSubject()
public Principal getUserPrincipal()
getUserPrincipal
in interface org.apache.jetspeed.request.RequestContext
public void setSubject(Subject subject)
setSubject
in interface org.apache.jetspeed.request.RequestContext
RequestContext.setSubject(javax.security.auth.Subject)
public Locale getLocale()
getLocale
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getLocale()
public void setLocale(Locale locale)
setLocale
in interface org.apache.jetspeed.request.RequestContext
RequestContext.setLocale(java.util.Locale)
public String getRequestParameter(String key)
getRequestParameter
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getRequestParameter(java.lang.String)
public void setRequestParameter(String key, String value)
public Map getParameterMap()
getParameterMap
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getParameterMap()
public Object getRequestAttribute(String key)
org.apache.jetspeed.request.RequestContext#getRequestAttribute(java.lang.String)
public Object getSessionAttribute(String key)
getSessionAttribute
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getSessionAttribute(java.lang.String)
public void setSessionAttribute(String key, Object value)
setSessionAttribute
in interface org.apache.jetspeed.request.RequestContext
RequestContext.setSessionAttribute(java.lang.String,
java.lang.Object)
public void setAttribute(String key, Object value)
setAttribute
in interface org.apache.jetspeed.request.RequestContext
RequestContext.setAttribute(java.lang.String,
java.lang.Object)
public Object getAttribute(String key)
getAttribute
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getAttribute(java.lang.String)
public String getPath()
getPath
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getPath()
public void setPortalURL(org.apache.jetspeed.container.url.PortalURL url)
setPortalURL
in interface org.apache.jetspeed.request.RequestContext
public org.apache.jetspeed.container.url.PortalURL getPortalURL()
getPortalURL
in interface org.apache.jetspeed.request.RequestContext
public Map getUserInfoMap(org.apache.pluto.om.common.ObjectID oid)
getUserInfoMap
in interface org.apache.jetspeed.request.RequestContext
RequestContext.getUserInfoMap(org.apache.pluto.om.common.ObjectID)
public org.apache.pluto.om.common.Language getPreferedLanguage(org.apache.pluto.om.portlet.PortletDefinition portlet)
getPreferedLanguage
getPreferedLanguage
in interface org.apache.jetspeed.request.RequestContext
portlet
-
RequestContext.getPreferedLanguage(org.apache.pluto.om.portlet.PortletDefinition)
public void setPath(String path)
setPath
setPath
in interface org.apache.jetspeed.request.RequestContext
path
- RequestContext.setPath(java.lang.String)
public Throwable popActionFailure(org.apache.pluto.om.window.PortletWindow window)
popActionFailure
in interface org.apache.jetspeed.request.RequestContext
public void setActionFailure(org.apache.pluto.om.window.PortletWindow window, Throwable actionFailure)
setActionFailure
in interface org.apache.jetspeed.request.RequestContext
public org.apache.jetspeed.pipeline.Pipeline getPipeline()
getPipeline
in interface org.apache.jetspeed.request.RequestContext
public void setPipeline(org.apache.jetspeed.pipeline.Pipeline pipeline)
setPipeline
in interface org.apache.jetspeed.request.RequestContext
pipeline
- public void setRequest(javax.servlet.http.HttpServletRequest request)
setRequest
in interface org.apache.jetspeed.request.RequestContext
request
- The request to set.public void setResponse(javax.servlet.http.HttpServletResponse response)
setResponse
in interface org.apache.jetspeed.request.RequestContext
response
- The request to set.public org.apache.jetspeed.om.page.ContentPage locatePage(org.apache.jetspeed.profiler.Profiler profiler, String nonProfiledPath)
locatePage
in interface org.apache.jetspeed.request.RequestContext
public Map getObjects()
getObjects
in interface org.apache.jetspeed.request.RequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |