Uses of Interface
org.apache.commons.chain.Context
-
Packages that use Context 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 fromorg.apache.commons.chain
.org.apache.commons.chain.web Basis for specializedContext
implementations suitable for use in web applications, and genericCommand
implementations useful across web application environments.org.apache.commons.chain.web.faces SpecializedContext
andCommand
implementations suitable for use in a JavaServer Faces API environment.org.apache.commons.chain.web.portlet SpecializedContext
andCommand
implementations suitable for use in a Portlet API environment.org.apache.commons.chain.web.servlet SpecializedContext
andCommand
implementations suitable for use in a Servlet API environment. -
-
Uses of Context in org.apache.commons.chain
Methods in org.apache.commons.chain with parameters of type Context Modifier and Type Method Description boolean
Chain. execute(Context context)
Execute the processing represented by thisChain
according to the following algorithm.boolean
Command. execute(Context context)
Execute a unit of processing work to be performed.boolean
Filter. postprocess(Context context, java.lang.Exception exception)
Execute any cleanup activities, such as releasing resources that were acquired during theexecute()
method of thisFilter
instance. -
Uses of Context in org.apache.commons.chain.generic
Methods in org.apache.commons.chain.generic with parameters of type Context Modifier and Type Method Description boolean
CopyCommand. execute(Context context)
Copy a specified literal value, or a context attribute stored under thefromKey
(if any), to thetoKey
.boolean
DispatchCommand. execute(Context context)
Look up the method specified by either "method" or "methodKey" and invoke it, returning a boolean value as interpreted byevaluateResult
.boolean
DispatchLookupCommand. execute(Context context)
Look up the specified command, and (if found) execute it.boolean
LookupCommand. execute(Context context)
Look up the specified command, and (if found) execute it.boolean
RemoveCommand. execute(Context context)
Copy the specified source attribute to the specified destination attribute.protected java.lang.reflect.Method
DispatchCommand. extractMethod(Context context)
Extract the dispatch method.private java.lang.reflect.Method
DispatchLookupCommand. extractMethod(Command command, Context context)
Extract the dispatch method.protected java.lang.Object[]
DispatchCommand. getArguments(Context context)
Get the arguments to be passed into the dispatch method.protected java.lang.Object[]
DispatchLookupCommand. getArguments(Context context)
Get the arguments to be passed into the dispatch method.protected Catalog
LookupCommand. getCatalog(Context context)
protected Command
LookupCommand. getCommand(Context context)
Return theCommand
instance to be delegated to.protected java.lang.String
LookupCommand. getCommandName(Context context)
Return the name of theCommand
instance to be delegated to.boolean
LookupCommand. postprocess(Context context, java.lang.Exception exception)
-
Uses of Context in org.apache.commons.chain.impl
Classes in org.apache.commons.chain.impl that implement Context Modifier and Type Class Description class
ContextBase
Convenience base class forContext
implementations.Methods in org.apache.commons.chain.impl with parameters of type Context Modifier and Type Method Description boolean
ChainBase. execute(Context context)
See theChain
JavaDoc. -
Uses of Context in org.apache.commons.chain.web
Classes in org.apache.commons.chain.web that implement Context Modifier and Type Class Description class
WebContext
Abstract base implementation ofContext
that provides web based applications that use it a "generic" view of HTTP related requests and responses, without tying the application to a particular underlying Java API (such as servlets).Methods in org.apache.commons.chain.web with parameters of type Context Modifier and Type Method Description boolean
AbstractGetLocaleCommand. execute(Context context)
Retrieve theLocale
for this request, and store it under the specified context attribute.boolean
AbstractSetLocaleCommand. execute(Context context)
Retrieve theLocale
stored under the specified context attribute key, and establish it on this response.protected abstract java.util.Locale
AbstractGetLocaleCommand. getLocale(Context context)
Retrieve and return theLocale
for this request.protected abstract void
AbstractSetLocaleCommand. setLocale(Context context, java.util.Locale locale)
Establish the specifiedLocale
for this response. -
Uses of Context in org.apache.commons.chain.web.faces
Classes in org.apache.commons.chain.web.faces that implement Context Modifier and Type Class Description class
FacesWebContext
Concrete implementation ofWebContext
suitable for use in JavaServer Faces apps.Methods in org.apache.commons.chain.web.faces with parameters of type Context Modifier and Type Method Description protected java.util.Locale
FacesGetLocaleCommand. getLocale(Context context)
Retrieve and return theLocale
for this request.protected void
FacesSetLocaleCommand. setLocale(Context context, java.util.Locale locale)
Establish the specifiedLocale
for this response. -
Uses of Context in org.apache.commons.chain.web.portlet
Classes in org.apache.commons.chain.web.portlet that implement Context Modifier and Type Class Description class
PortletWebContext
Concrete implementation ofWebContext
suitable for use in portlets.Methods in org.apache.commons.chain.web.portlet with parameters of type Context Modifier and Type Method Description protected java.util.Locale
PortletGetLocaleCommand. getLocale(Context context)
Retrieve and return theLocale
for this request.protected void
PortletSetLocaleCommand. setLocale(Context context, java.util.Locale locale)
Establish the specifiedLocale
for this response. -
Uses of Context in org.apache.commons.chain.web.servlet
Classes in org.apache.commons.chain.web.servlet that implement Context Modifier and Type Class Description class
ServletWebContext
Concrete implementation ofWebContext
suitable for use in Servlets and JSP pages.Methods in org.apache.commons.chain.web.servlet with parameters of type Context Modifier and Type Method Description protected Catalog
PathInfoMapper. getCatalog(Context context)
protected Catalog
RequestParameterMapper. getCatalog(Context context)
protected Catalog
ServletPathMapper. getCatalog(Context context)
protected java.lang.String
PathInfoMapper. getCommandName(Context context)
Look up the extra path information for this request, and use it to select an appropriateCommand
to be executed.protected java.lang.String
RequestParameterMapper. getCommandName(Context context)
Look up the specified request paramater for this request, and use it to select an appropriateCommand
to be executed.protected java.lang.String
ServletPathMapper. getCommandName(Context context)
Look up the servlet path information for this request, and use it to select an appropriateCommand
to be executed.protected java.util.Locale
ServletGetLocaleCommand. getLocale(Context context)
Retrieve and return theLocale
for this request.protected void
ServletSetLocaleCommand. setLocale(Context context, java.util.Locale locale)
Establish the specifiedLocale
for this response.
-