org.jboss.portal.core.controller.command.mapper
Interface CommandFactory

All Known Subinterfaces:
CMSObjectCommandFactory, DelegatingCommandFactory
All Known Implementing Classes:
AbstractCommandFactory, AjaxCommandFactory, CMSObjectCommandFactoryService, CommandFactoryDelegate, DefaultPortalCommandFactory, DelegatingCommandFactoryService, InstanceCommandFactory, PortalObjectCommandFactory, SearchResultCommandFactoryService, SignOutCommandFactoryService, SimpleCommandFactory

public interface CommandFactory

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.

Version:
$Revision: 8786 $
Author:
Julien Viet

Method Summary
 ControllerCommand doMapping(ControllerContext controllerContext, ServerInvocation invocation, java.lang.String host, java.lang.String contextPath, java.lang.String requestPath)
          Create a command.
 

Method Detail

doMapping

ControllerCommand doMapping(ControllerContext controllerContext,
                            ServerInvocation invocation,
                            java.lang.String host,
                            java.lang.String contextPath,
                            java.lang.String requestPath)
Create a command.

Parameters:
controllerContext - the controller context
invocation - the server invocation
host - the host
contextPath - the context path
requestPath - the request path @return the command or null if no command is recognized