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
Exceptionpublic Result handleUnknownResult(ActionContext actionContext, String actionName, ActionConfig actionConfig, String resultCode)
handleUnknownResult in interface UnknownHandlerManagerpublic Object handleUnknownMethod(Object action, String methodName) throws NoSuchMethodException
handleUnknownMethod in interface UnknownHandlerManagerNoSuchMethodExceptionpublic ActionConfig handleUnknownAction(String namespace, String actionName)
handleUnknownAction in interface UnknownHandlerManagerpublic boolean hasUnknownHandlers()
hasUnknownHandlers in interface UnknownHandlerManagerpublic List<UnknownHandler> getUnknownHandlers()
getUnknownHandlers in interface UnknownHandlerManagerCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.