public class DefaultUnknownHandlerManager extends Object implements UnknownHandlerManager
UnknownHandlerManager| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<UnknownHandler> |
unknownHandlers |
| Constructor and Description |
|---|
DefaultUnknownHandlerManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
build()
Builds a list of UnknownHandlers in the order specified by the configured "unknown-handler-stack".
|
List<UnknownHandler> |
getUnknownHandlers() |
ActionConfig |
handleUnknownAction(String namespace,
String actionName)
Iterate over UnknownHandlers and return the result of the first one that can handle it
|
Object |
handleUnknownMethod(Object action,
String methodName)
Iterate over UnknownHandlers and return the result of the first one that can handle it.
|
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
|
boolean |
hasUnknownHandlers() |
void |
setContainer(Container container) |
protected ArrayList<UnknownHandler> unknownHandlers
public void setContainer(Container container)
protected void build()
throws Exception
Exception - in case of any errorpublic Result handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode)
handleUnknownResult in interface UnknownHandlerManageractionContext - the action contextactionName - the action nameactionConfig - the action configresultCode - the result codepublic Object handleUnknownMethod(Object action, String methodName) throws NoSuchMethodException
handleUnknownMethod in interface UnknownHandlerManageraction - the actionmethodName - the method nameNoSuchMethodException - if method con not be handledpublic ActionConfig handleUnknownAction(String namespace, String actionName)
handleUnknownAction in interface UnknownHandlerManagernamespace - the namespaceactionName - the action namepublic boolean hasUnknownHandlers()
hasUnknownHandlers in interface UnknownHandlerManagerpublic List<UnknownHandler> getUnknownHandlers()
getUnknownHandlers in interface UnknownHandlerManagerCopyright © 2000–2025 Apache Software Foundation. All rights reserved.