Uses of Interface
org.apache.commons.chain.Context
Packages that use Context
Package
Description
The fundamental API contracts for the Chain of Responsibilty Pattern as
implemented in this package.
Concrete implementations of generic Commands that are useful in many
different environments, not tied to a particular tier such as Servlets).
Convenient base implementations of Chain of Responsibility Pattern
contracts from
org.apache.commons.chain.Basis for specialized
Context implementations suitable for use
in web applications, and generic Command implementations useful
across web application environments.Specialized
Context and Command implementations
suitable for use in a Portlet API environment.Specialized
Context and Command 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 ContextModifier and TypeMethodDescriptionbooleanExecute the processing represented by thisChainaccording to the following algorithm.booleanExecute a unit of processing work to be performed.booleanFilter.postprocess(Context context, Exception exception) Execute any cleanup activities, such as releasing resources that were acquired during theexecute()method of thisFilterinstance. -
Uses of Context in org.apache.commons.chain.generic
Methods in org.apache.commons.chain.generic with parameters of type ContextModifier and TypeMethodDescriptionbooleanCopy a specified literal value, or a context attribute stored under thefromKey(if any), to thetoKey.booleanLook up the method specified by either "method" or "methodKey" and invoke it, returning a boolean value as interpreted byevaluateResult.booleanLook up the specified command, and (if found) execute it.booleanLook up the specified command, and (if found) execute it.booleanCopy the specified source attribute to the specified destination attribute.protected MethodDispatchCommand.extractMethod(Context context) Extract the dispatch method.private MethodDispatchLookupCommand.extractMethod(Command command, Context context) Extract the dispatch method.protected Object[]DispatchCommand.getArguments(Context context) Get the arguments to be passed into the dispatch method.protected Object[]DispatchLookupCommand.getArguments(Context context) Get the arguments to be passed into the dispatch method.protected CatalogLookupCommand.getCatalog(Context context) protected CommandLookupCommand.getCommand(Context context) Return theCommandinstance to be delegated to.protected StringLookupCommand.getCommandName(Context context) Return the name of theCommandinstance to be delegated to.booleanLookupCommand.postprocess(Context context, Exception exception) -
Uses of Context in org.apache.commons.chain.impl
Classes in org.apache.commons.chain.impl that implement ContextMethods in org.apache.commons.chain.impl with parameters of type Context -
Uses of Context in org.apache.commons.chain.web
Classes in org.apache.commons.chain.web that implement ContextModifier and TypeClassDescriptionclassAbstract base implementation ofContextthat 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 ContextModifier and TypeMethodDescriptionbooleanRetrieve theLocalefor this request, and store it under the specified context attribute.booleanRetrieve theLocalestored under the specified context attribute key, and establish it on this response.protected abstract LocaleRetrieve and return theLocalefor this request.protected abstract voidEstablish the specifiedLocalefor this response. -
Uses of Context in org.apache.commons.chain.web.portlet
Classes in org.apache.commons.chain.web.portlet that implement ContextModifier and TypeClassDescriptionclassConcrete implementation ofWebContextsuitable for use in portlets.Methods in org.apache.commons.chain.web.portlet with parameters of type Context -
Uses of Context in org.apache.commons.chain.web.servlet
Classes in org.apache.commons.chain.web.servlet that implement ContextModifier and TypeClassDescriptionclassConcrete implementation ofWebContextsuitable for use in Servlets and JSP pages.Methods in org.apache.commons.chain.web.servlet with parameters of type ContextModifier and TypeMethodDescriptionprotected CatalogPathInfoMapper.getCatalog(Context context) protected CatalogRequestParameterMapper.getCatalog(Context context) protected CatalogServletPathMapper.getCatalog(Context context) protected StringPathInfoMapper.getCommandName(Context context) Look up the extra path information for this request, and use it to select an appropriateCommandto be executed.protected StringRequestParameterMapper.getCommandName(Context context) Look up the specified request paramater for this request, and use it to select an appropriateCommandto be executed.protected StringServletPathMapper.getCommandName(Context context) Look up the servlet path information for this request, and use it to select an appropriateCommandto be executed.protected LocaleRetrieve and return theLocalefor this request.protected voidEstablish the specifiedLocalefor this response.