Package org.gatein.pc.api.invocation
Class PortletInvocation
- java.lang.Object
-
- org.gatein.pc.api.invocation.PortletInvocation
-
- Direct Known Subclasses:
ActionInvocation,EventInvocation,RenderInvocation,ResourceInvocation
public abstract class PortletInvocation extends Object
- Since:
- 2.4
- Version:
- $Revision: 6765 $
- Author:
- Julien Viet
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeResolverattributes.protected ClientContextclientContextThe client context.protected PortletInvocationContextctxThe invocation context.protected InstanceContextinstanceContextThe instance context.protected Modemode.protected StateStringnavigationalState.protected PortalContextportalContextThe portal context.protected Map<String,String[]>publicNavigationalState.protected javax.servlet.http.HttpServletRequestreqThe dispatched request.protected Map<String,Object>requestAttributesThe portlet request attributes.protected javax.servlet.http.HttpServletResponserespThe dispatched response.protected SecurityContextsecurityContextThe security context.protected ServerContextserverContextThe server context.protected PortletContexttargetThe target portlet.protected UserContextuserContextThe user context.protected WindowContextwindowContextThe window context.protected WindowStatewindowState.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPortletInvocation(PortletInvocationContext ctx)Create an invocation to a portlet.
-
Method Summary
-
-
-
Field Detail
-
attributes
protected final AttributeResolver attributes
.
-
navigationalState
protected StateString navigationalState
.
-
mode
protected Mode mode
.
-
windowState
protected WindowState windowState
.
-
target
protected PortletContext target
The target portlet.
-
ctx
protected PortletInvocationContext ctx
The invocation context.
-
portalContext
protected PortalContext portalContext
The portal context.
-
clientContext
protected ClientContext clientContext
The client context.
-
serverContext
protected ServerContext serverContext
The server context.
-
securityContext
protected SecurityContext securityContext
The security context.
-
userContext
protected UserContext userContext
The user context.
-
instanceContext
protected InstanceContext instanceContext
The instance context.
-
windowContext
protected WindowContext windowContext
The window context.
-
req
protected javax.servlet.http.HttpServletRequest req
The dispatched request.
-
resp
protected javax.servlet.http.HttpServletResponse resp
The dispatched response.
-
-
Constructor Detail
-
PortletInvocation
protected PortletInvocation(PortletInvocationContext ctx) throws IllegalArgumentException
Create an invocation to a portlet.- Parameters:
ctx- the portlet invocation context- Throws:
IllegalArgumentException- if the provided context is null
-
-
Method Detail
-
getContext
public PortletInvocationContext getContext()
-
getTarget
public PortletContext getTarget()
-
setTarget
public void setTarget(PortletContext target)
-
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
-
getNavigationalState
public StateString getNavigationalState()
-
setNavigationalState
public void setNavigationalState(StateString navigationalState)
-
setPublicNavigationalState
public void setPublicNavigationalState(Map<String,String[]> publicNavigationalState)
-
getMode
public Mode getMode()
-
setMode
public void setMode(Mode mode)
-
getWindowState
public WindowState getWindowState()
-
setWindowState
public void setWindowState(WindowState windowState)
-
getPortalContext
public PortalContext getPortalContext()
-
setPortalContext
public void setPortalContext(PortalContext portalContext)
-
getClientContext
public ClientContext getClientContext()
-
setClientContext
public void setClientContext(ClientContext clientContext)
-
getServerContext
public ServerContext getServerContext()
-
setServerContext
public void setServerContext(ServerContext serverContext)
-
getSecurityContext
public SecurityContext getSecurityContext()
-
setSecurityContext
public void setSecurityContext(SecurityContext securityContext)
-
getUserContext
public UserContext getUserContext()
-
setUserContext
public void setUserContext(UserContext userContext)
-
getInstanceContext
public InstanceContext getInstanceContext()
-
setInstanceContext
public void setInstanceContext(InstanceContext instanceContext)
-
getWindowContext
public WindowContext getWindowContext()
-
setWindowContext
public void setWindowContext(WindowContext windowContext)
-
removeAttribute
public void removeAttribute(Object attrKey) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-