站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

CommandContext - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.command
Class CommandContext

java.lang.Object
  extended byorg.jboss.portal.core.command.CommandContext

public class CommandContext
extends java.lang.Object


Field Summary
protected  ControllerCommand command
          The command executed within this context.
protected  ExecutionContext executionContext
          The execution context.
protected  URLInfo urlInfo
          The url info
 
Constructor Summary
CommandContext(ControllerCommand command, URLInfo urlInfo, ExecutionContext executionContext)
          Depth of the forward chain.
 
Method Summary
 void chain(ControllerCommand nextCommand)
           
 java.lang.String encodeURL(ControllerCommand cmd)
           
protected  void execute()
           
 void forward(ControllerCommand nextCommand)
           
 void forward(ControllerCommand nextCommand, URLInfo urlInfo)
           
 ControllerCommand getCommand()
           
 ExecutionContext getExecutionContext()
           
 URLInfo getURLInfo()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

protected final ControllerCommand command
The command executed within this context.


urlInfo

protected final URLInfo urlInfo
The url info


executionContext

protected ExecutionContext executionContext
The execution context.

Constructor Detail

CommandContext

public CommandContext(ControllerCommand command,
                      URLInfo urlInfo,
                      ExecutionContext executionContext)
Depth of the forward chain.

Method Detail

getExecutionContext

public ExecutionContext getExecutionContext()

getCommand

public ControllerCommand getCommand()

getURLInfo

public URLInfo getURLInfo()

execute

protected void execute()
                throws InvocationException
Throws:
InvocationException

forward

public void forward(ControllerCommand nextCommand)
             throws InvocationException
Throws:
InvocationException

forward

public void forward(ControllerCommand nextCommand,
                    URLInfo urlInfo)
             throws InvocationException
Throws:
InvocationException

chain

public void chain(ControllerCommand nextCommand)
           throws InvocationException
Throws:
InvocationException

encodeURL

public java.lang.String encodeURL(ControllerCommand cmd)

toString

public java.lang.String toString()