Package org.apache.struts2
Class DefaultUnknownHandlerManager
java.lang.Object
org.apache.struts2.DefaultUnknownHandlerManager
- All Implemented Interfaces:
- UnknownHandlerManager
Default implementation of UnknownHandlerManager
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbuild()Builds a list of UnknownHandlers in the order specified by the configured "unknown-handler-stack".handleUnknownAction(String namespace, String actionName) Iterate over UnknownHandlers and return the result of the first one that can handle ithandleUnknownMethod(Object action, String methodName) Iterate over UnknownHandlers and return the result of the first one that can handle it.handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode) Iterate over UnknownHandlers and return the result of the first one that can handle itbooleanvoidsetContainer(Container container) 
- 
Field Details- 
unknownHandlers
 
- 
- 
Constructor Details- 
DefaultUnknownHandlerManagerpublic DefaultUnknownHandlerManager()
 
- 
- 
Method Details- 
setContainer
- 
buildBuilds a list of UnknownHandlers in the order specified by the configured "unknown-handler-stack". If "unknown-handler-stack" was not configured, all UnknownHandlers will be returned, in no specific order- Throws:
- Exception- in case of any error
 
- 
handleUnknownResultpublic Result handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode) Iterate over UnknownHandlers and return the result of the first one that can handle it- Specified by:
- handleUnknownResultin interface- UnknownHandlerManager
- Parameters:
- actionContext- the action context
- actionName- the action name
- actionConfig- the action config
- resultCode- the result code
 
- 
handleUnknownMethodIterate over UnknownHandlers and return the result of the first one that can handle it. Must throw an exception if method cannot be handled.- Specified by:
- handleUnknownMethodin interface- UnknownHandlerManager
- Parameters:
- action- the action
- methodName- the method name
- Returns:
- Result representing result of given action method
- Throws:
- NoSuchMethodException- if method con not be handled
 
- 
handleUnknownActionIterate over UnknownHandlers and return the result of the first one that can handle it- Specified by:
- handleUnknownActionin interface- UnknownHandlerManager
- Parameters:
- namespace- the namespace
- actionName- the action name
 
- 
hasUnknownHandlerspublic boolean hasUnknownHandlers()- Specified by:
- hasUnknownHandlersin interface- UnknownHandlerManager
 
- 
getUnknownHandlers- Specified by:
- getUnknownHandlersin interface- UnknownHandlerManager
 
 
-