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 specializedContextimplementations suitable for use in web applications, and genericCommandimplementations useful across web application environments.org.apache.commons.chain.web.portlet SpecializedContextandCommandimplementations suitable for use in a Portlet API environment.org.apache.commons.chain.web.servlet SpecializedContextandCommandimplementations 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 booleanChain. execute(Context context)Execute the processing represented by thisChainaccording to the following algorithm.booleanCommand. execute(Context context)Execute a unit of processing work to be performed.booleanFilter. postprocess(Context context, java.lang.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 Context Modifier and Type Method Description booleanCopyCommand. execute(Context context)Copy a specified literal value, or a context attribute stored under thefromKey(if any), to thetoKey.booleanDispatchCommand. execute(Context context)Look up the method specified by either "method" or "methodKey" and invoke it, returning a boolean value as interpreted byevaluateResult.booleanDispatchLookupCommand. execute(Context context)Look up the specified command, and (if found) execute it.booleanLookupCommand. execute(Context context)Look up the specified command, and (if found) execute it.booleanRemoveCommand. execute(Context context)Copy the specified source attribute to the specified destination attribute.protected java.lang.reflect.MethodDispatchCommand. extractMethod(Context context)Extract the dispatch method.private java.lang.reflect.MethodDispatchLookupCommand. 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 CatalogLookupCommand. getCatalog(Context context)protected CommandLookupCommand. getCommand(Context context)Return theCommandinstance to be delegated to.protected java.lang.StringLookupCommand. getCommandName(Context context)Return the name of theCommandinstance to be delegated to.booleanLookupCommand. 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 classContextBaseConvenience base class forContextimplementations.Methods in org.apache.commons.chain.impl with parameters of type Context Modifier and Type Method Description booleanChainBase. execute(Context context)See theChainJavaDoc. -
Uses of Context in org.apache.commons.chain.web
Classes in org.apache.commons.chain.web that implement Context Modifier and Type Class Description classWebContextAbstract 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 Context Modifier and Type Method Description booleanAbstractGetLocaleCommand. execute(Context context)Retrieve theLocalefor this request, and store it under the specified context attribute.booleanAbstractSetLocaleCommand. execute(Context context)Retrieve theLocalestored under the specified context attribute key, and establish it on this response.protected abstract java.util.LocaleAbstractGetLocaleCommand. getLocale(Context context)Retrieve and return theLocalefor this request.protected abstract voidAbstractSetLocaleCommand. setLocale(Context context, java.util.Locale locale)Establish the specifiedLocalefor 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 classPortletWebContextConcrete implementation ofWebContextsuitable 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.LocalePortletGetLocaleCommand. getLocale(Context context)Retrieve and return theLocalefor this request.protected voidPortletSetLocaleCommand. setLocale(Context context, java.util.Locale locale)Establish the specifiedLocalefor 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 classServletWebContextConcrete implementation ofWebContextsuitable 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 CatalogPathInfoMapper. getCatalog(Context context)protected CatalogRequestParameterMapper. getCatalog(Context context)protected CatalogServletPathMapper. getCatalog(Context context)protected java.lang.StringPathInfoMapper. getCommandName(Context context)Look up the extra path information for this request, and use it to select an appropriateCommandto be executed.protected java.lang.StringRequestParameterMapper. getCommandName(Context context)Look up the specified request paramater for this request, and use it to select an appropriateCommandto be executed.protected java.lang.StringServletPathMapper. getCommandName(Context context)Look up the servlet path information for this request, and use it to select an appropriateCommandto be executed.protected java.util.LocaleServletGetLocaleCommand. getLocale(Context context)Retrieve and return theLocalefor this request.protected voidServletSetLocaleCommand. setLocale(Context context, java.util.Locale locale)Establish the specifiedLocalefor this response.
-