Package org.gatein.pc.api.invocation
Class PortletInvocation
java.lang.Object
org.gatein.pc.api.invocation.PortletInvocation
- Direct Known Subclasses:
ActionInvocation,EventInvocation,RenderInvocation,ResourceInvocation
- Since:
- 2.4
- Version:
- $Revision: 6765 $
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AttributeResolver.protected ClientContextThe client context.protected PortletInvocationContextThe invocation context.protected InstanceContextThe instance context.protected Mode.protected StateString.protected PortalContextThe portal context..protected javax.servlet.http.HttpServletRequestThe dispatched request.The portlet request attributes.protected javax.servlet.http.HttpServletResponseThe dispatched response.protected SecurityContextThe security context.protected ServerContextThe server context.protected PortletContextThe target portlet.protected UserContextThe user context.protected WindowContextThe window context.protected WindowState. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an invocation to a portlet. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attrKey) javax.servlet.http.HttpServletRequestDeprecated.javax.servlet.http.HttpServletResponseDeprecated.usegetResponse()getMode()javax.servlet.http.HttpServletRequestReturns the http servlet request.javax.servlet.http.HttpServletResponseReturns the http servlet request.voidremoveAttribute(Object attrKey) voidsetAttribute(String attrKey, Object attrValue) voidsetClientContext(ClientContext clientContext) voidsetDispatchedRequest(javax.servlet.http.HttpServletRequest dreq) Deprecated.voidsetDispatchedResponse(javax.servlet.http.HttpServletResponse dresp) Deprecated.voidsetInstanceContext(InstanceContext instanceContext) voidvoidsetNavigationalState(StateString navigationalState) voidsetPortalContext(PortalContext portalContext) voidsetPublicNavigationalState(Map<String, String[]> publicNavigationalState) voidsetRequest(javax.servlet.http.HttpServletRequest dreq) Set the http servlet request.voidsetRequestAttributes(Map<String, Object> requestAttributes) voidsetResponse(javax.servlet.http.HttpServletResponse dresp) Set the http servlet request.voidsetSecurityContext(SecurityContext securityContext) voidsetServerContext(ServerContext serverContext) voidsetTarget(PortletContext target) voidsetUserContext(UserContext userContext) voidsetWindowContext(WindowContext windowContext) voidsetWindowState(WindowState windowState)
-
Field Details
-
attributes
. -
mode
. -
windowState
. -
target
The target portlet. -
requestAttributes
The portlet request attributes. -
ctx
The invocation context. -
portalContext
The portal context. -
clientContext
The client context. -
serverContext
The server context. -
securityContext
The security context. -
userContext
The user context. -
instanceContext
The instance context. -
windowContext
The window context. -
req
protected javax.servlet.http.HttpServletRequest reqThe dispatched request. -
resp
protected javax.servlet.http.HttpServletResponse respThe dispatched response.
-
-
Constructor Details
-
PortletInvocation
Create an invocation to a portlet.- Parameters:
ctx- the portlet invocation context- Throws:
IllegalArgumentException- if the provided context is null
-
-
Method Details
-
getContext
-
getTarget
-
setTarget
-
getResponse
public javax.servlet.http.HttpServletResponse getResponse()Returns the http servlet request.- Returns:
- the response
-
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse dresp) Set the http servlet request.- Parameters:
dresp- the response
-
getDispatchedResponse
public javax.servlet.http.HttpServletResponse getDispatchedResponse()Deprecated.usegetResponse()Returns the http servlet request.- Returns:
- the dispatched response
-
setDispatchedResponse
public void setDispatchedResponse(javax.servlet.http.HttpServletResponse dresp) Deprecated.Set the http servlet request.- Parameters:
dresp- the dispatched response
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()Returns the http servlet request.- Returns:
- the request
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest dreq) Set the http servlet request.- Parameters:
dreq- the request
-
getDispatchedRequest
public javax.servlet.http.HttpServletRequest getDispatchedRequest()Deprecated.usegetRequest()Returns the dispatched http servlet request.- Returns:
- the dispatched request
-
setDispatchedRequest
public void setDispatchedRequest(javax.servlet.http.HttpServletRequest dreq) Deprecated.Set the dispatched http servlet request.- Parameters:
dreq- the dispatched request
-
getMode
-
setMode
-
getWindowState
-
setWindowState
-
getPortalContext
-
setPortalContext
-
getClientContext
-
setClientContext
-
getServerContext
-
setServerContext
-
getSecurityContext
-
setSecurityContext
-
getUserContext
-
setUserContext
-
getInstanceContext
-
setInstanceContext
-
getWindowContext
-
setWindowContext
-
getRequestAttributes
-
setRequestAttributes
-
setAttribute
-
getAttribute
-
removeAttribute
- Throws:
IllegalArgumentException
-
getRequest()