Package | Description |
---|---|
org.apache.commons.chain |
The fundamental API contracts for the Chain of Responsibilty Pattern as
implemented in this package.
|
org.apache.commons.chain.generic |
Concrete implementations of generic Commands that are useful in many
different environments, not tied to a particular tier such as Servlets).
|
org.apache.commons.chain.impl |
Convenient base implementations of Chain of Responsibility Pattern
contracts from
org.apache.commons.chain . |
org.apache.commons.chain.web |
Basis for specialized
Context implementations suitable for use
in web applications, and generic Command implementations useful
across web application environments. |
org.apache.commons.chain.web.portlet |
Specialized
Context and Command implementations
suitable for use in a Portlet API environment. |
org.apache.commons.chain.web.servlet |
Specialized
Context and Command implementations
suitable for use in a Servlet API environment. |
Modifier and Type | Interface | Description |
---|---|---|
interface |
Chain |
|
interface |
Filter |
Modifier and Type | Method | Description |
---|---|---|
Command |
Catalog.getCommand(java.lang.String name) |
|
Command |
CatalogFactory.getCommand(java.lang.String commandID) |
Return a
Command based on the given commandID. |
Modifier and Type | Method | Description |
---|---|---|
void |
Catalog.addCommand(java.lang.String name,
Command command) |
|
void |
Chain.addCommand(Command command) |
Modifier and Type | Class | Description |
---|---|---|
class |
CopyCommand |
Copy a specified literal value, or a context attribute stored under
the
fromKey (if any), to the toKey . |
class |
DispatchCommand |
An abstract base command which uses introspection to look up a method to execute.
|
class |
DispatchLookupCommand |
This command combines elements of the
LookupCommand with the
DispatchCommand . |
class |
LookupCommand |
|
class |
RemoveCommand |
Remove any context attribute stored under the
fromKey . |
Modifier and Type | Method | Description |
---|---|---|
protected Command |
LookupCommand.getCommand(Context context) |
Return the
Command instance to be delegated to. |
Modifier and Type | Method | Description |
---|---|---|
private java.lang.reflect.Method |
DispatchLookupCommand.extractMethod(Command command,
Context context) |
Extract the dispatch method.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ChainBase |
Convenience base class for
Chain implementations. |
Modifier and Type | Field | Description |
---|---|---|
protected Command[] |
ChainBase.commands |
Modifier and Type | Method | Description |
---|---|---|
Command |
CatalogBase.getCommand(java.lang.String name) |
Return the
Command associated with the
specified name, if any; otherwise, return null . |
(package private) Command[] |
ChainBase.getCommands() |
Modifier and Type | Method | Description |
---|---|---|
void |
CatalogBase.addCommand(java.lang.String name,
Command command) |
|
void |
ChainBase.addCommand(Command command) |
See the
Chain JavaDoc. |
Constructor | Description |
---|---|
ChainBase(Command command) |
|
ChainBase(Command[] commands) |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractGetLocaleCommand |
|
class |
AbstractSetLocaleCommand |
Abstract base
Command implementation for setting the
response locale for this response to the Locale stored
under the context attribute key returned by the localeKey
property. |
Modifier and Type | Class | Description |
---|---|---|
class |
PortletGetLocaleCommand |
Concrete implementation of
AbstractGetLocaleCommand for
the Portlet API. |
class |
PortletSetLocaleCommand |
Concrete implementation of
AbstractSetLocaleCommand for
the Portlet API. |
Modifier and Type | Class | Description |
---|---|---|
class |
PathInfoMapper |
|
class |
RequestParameterMapper |
|
class |
ServletGetLocaleCommand |
Concrete implementation of
AbstractGetLocaleCommand for
the Servlet API. |
class |
ServletPathMapper |
|
class |
ServletSetLocaleCommand |
Concrete implementation of
AbstractSetLocaleCommand for
the Servlet API. |