org.jboss.portal.core.controller
Class ControllerContext
java.lang.Object
org.jboss.portal.common.invocation.AbstractInvocationContext
org.jboss.portal.core.controller.ControllerContext
- All Implemented Interfaces:
- org.jboss.portal.common.invocation.InvocationContext
public class ControllerContext
- extends org.jboss.portal.common.invocation.AbstractInvocationContext
The context of the controller.
- Version:
- $Revision: 11068 $
- Author:
- Julien Viet
| Methods inherited from class org.jboss.portal.common.invocation.AbstractInvocationContext |
addResolver, addResolver, getAttribute, getAttributeResolver, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASSIC_TYPE
public static final int CLASSIC_TYPE
- .
- See Also:
- Constant Field Values
AJAX_TYPE
public static final int AJAX_TYPE
- .
- See Also:
- Constant Field Values
ControllerContext
public ControllerContext(ServerInvocation serverInvocation,
Controller controller)
getServletContainer
public org.jboss.portal.web.ServletContainer getServletContainer()
execute
public ControllerResponse execute(ControllerCommand command)
throws ControllerException,
org.jboss.portal.common.invocation.InvocationException
- Throws:
ControllerException
org.jboss.portal.common.invocation.InvocationException
getType
public int getType()
getDepth
public int getDepth()
renderURL
public java.lang.String renderURL(ControllerCommand cmd,
URLContext urlContext,
URLFormat urlFormat)
- Render the command as an URL or return null if it is not possible.
- Parameters:
cmd - the command to renderurlContext - the url contexturlFormat - the url format
- Returns:
- the URL as a string or null
getServerInvocation
public ServerInvocation getServerInvocation()
getController
public Controller getController()
getUser
public org.jboss.portal.identity.User getUser()
getUserProfile
public java.util.Map<java.lang.String,java.lang.String> getUserProfile()
getRequestDispatcher
public ControllerRequestDispatcher getRequestDispatcher(java.lang.String contextPath,
java.lang.String path)