Package org.chenile.owiz.impl
Class Router<InputType>
java.lang.Object
org.chenile.owiz.impl.CommandBase<InputType>
org.chenile.owiz.impl.Router<InputType>
- All Implemented Interfaces:
AttachableCommand<InputType>
,BypassableCommand<InputType>
,Command<InputType>
,OrchestrationAware<InputType>
- Direct Known Subclasses:
EvaluateRouter
,OgnlRouter
,ProxyTypeRouter
,TenantRouter
public abstract class Router<InputType>
extends CommandBase<InputType>
implements Command<InputType>, AttachableCommand<InputType>
A router is a command that executes one of several commands based on a routing string.
The computation of the routing string is left to a sub class and hence this is an abstract class.
- Author:
- Raja Shankar Kolluru
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
CommandDescriptor<InputType>> static final String
protected CommandDescriptor<InputType>
static final String
Fields inherited from class org.chenile.owiz.impl.CommandBase
commandDescriptor, orchConfigurator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachCommand
(AttachmentDescriptor<InputType> attachmentDescriptor, CommandDescriptor<InputType> command) protected abstract String
computeRoutingString
(InputType context) void
Methods inherited from class org.chenile.owiz.impl.CommandBase
bypass, execute, getConfigValue, getId, getParentId, obtainCommand, postprocess, preprocess, setCommandDescriptor, setOrchConfigurator
-
Field Details
-
ROUTE
- See Also:
-
DEFAULT
- See Also:
-
commandsMap
-
defaultCommandDescriptor
-
-
Constructor Details
-
Router
public Router()
-
-
Method Details
-
attachCommand
public void attachCommand(AttachmentDescriptor<InputType> attachmentDescriptor, CommandDescriptor<InputType> command) - Specified by:
attachCommand
in interfaceAttachableCommand<InputType>
-
doExecute
- Specified by:
doExecute
in classCommandBase<InputType>
- Throws:
Exception
-
computeRoutingString
- Throws:
Exception
-