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.config |
Optional package for configuring command chains in a catalog
(using Digester) from an XML configuration file.
|
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.servlet |
Specialized
Context and Command implementations
suitable for use in a Servlet API environment. |
Modifier and Type | Method and Description |
---|---|
abstract Catalog |
CatalogFactory.getCatalog()
Gets the default instance of Catalog associated with the factory
(if any); otherwise, return
null . |
abstract Catalog |
CatalogFactory.getCatalog(String name)
Retrieves a Catalog instance by name (if any); otherwise
return
null . |
Modifier and Type | Method and Description |
---|---|
abstract void |
CatalogFactory.addCatalog(String name,
Catalog catalog)
Adds a named instance of Catalog to the factory (for subsequent
retrieval later).
|
abstract void |
CatalogFactory.setCatalog(Catalog catalog)
Sets the default instance of Catalog associated with the factory.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigParser.parse(Catalog catalog,
URL url)
Deprecated.
Use parse(URL) on a configuration resource with "factory"
element(s) embedded
|
Modifier and Type | Method and Description |
---|---|
protected Catalog |
LookupCommand.getCatalog(Context context)
|
Modifier and Type | Class and Description |
---|---|
class |
CatalogBase
Simple in-memory implementation of
Catalog . |
Modifier and Type | Method and Description |
---|---|
Catalog |
CatalogFactoryBase.getCatalog()
Gets the default instance of Catalog associated with the factory
(if any); otherwise, return
null . |
Catalog |
CatalogFactoryBase.getCatalog(String name)
Retrieves a Catalog instance by name (if any); otherwise
return
null . |
Modifier and Type | Method and Description |
---|---|
void |
CatalogFactoryBase.addCatalog(String name,
Catalog catalog)
Adds a named instance of Catalog to the factory (for subsequent
retrieval later).
|
void |
CatalogFactoryBase.setCatalog(Catalog catalog)
Sets the default instance of Catalog associated with the factory.
|
Modifier and Type | Method and Description |
---|---|
protected Catalog |
ServletPathMapper.getCatalog(Context context)
|
protected Catalog |
RequestParameterMapper.getCatalog(Context context)
|
protected Catalog |
PathInfoMapper.getCatalog(Context context)
|
Copyright © 2003–2021 The Apache Software Foundation. All rights reserved.