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

CommandMapper - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.command
Interface CommandMapper

All Known Subinterfaces:
PrefixDelegatingCommandMapper
All Known Implementing Classes:
AbstractCommandMapper, PrefixDelegatingCommandMapperService

public interface CommandMapper

The CommandMapper interface defines a service that can map an invocation to a command and also provide a mapping from a command to an url.


Method Summary
 java.lang.String doMapping(ServerInvocation invocation, ControllerCommand cmd, URLInfo urlInfo)
          Create an url for the command.
 ControllerCommand doMapping(ServerInvocation invocation, java.lang.String portalContextPath, java.lang.String portalRequestPath)
          Create a command.
 

Method Detail

doMapping

public ControllerCommand doMapping(ServerInvocation invocation,
                                   java.lang.String portalContextPath,
                                   java.lang.String portalRequestPath)
                            throws InvocationException,
                                   InvocationRuntimeException
Create a command.

Parameters:
invocation - the invocation
portalContextPath -
portalRequestPath -
Returns:
the command or null if no command is recognized
Throws:
InvocationException
InvocationRuntimeException

doMapping

public java.lang.String doMapping(ServerInvocation invocation,
                                  ControllerCommand cmd,
                                  URLInfo urlInfo)
Create an url for the command.

Parameters:
invocation - the invocation
cmd - the command to encode
urlInfo - additional information helping to properly encode the url
Returns:
the encoded url or null if this mapper cannot peform this operation