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 UnknownHandlerManager
actionContext
- the action contextactionName
- the action nameactionConfig
- the action configresultCode
- the result codepublic Object handleUnknownMethod(Object action, String methodName) throws NoSuchMethodException
handleUnknownMethod
in interface UnknownHandlerManager
action
- the actionmethodName
- the method nameNoSuchMethodException
- if method con not be handledpublic ActionConfig handleUnknownAction(String namespace, String actionName)
handleUnknownAction
in interface UnknownHandlerManager
namespace
- the namespaceactionName
- the action namepublic boolean hasUnknownHandlers()
hasUnknownHandlers
in interface UnknownHandlerManager
public List<UnknownHandler> getUnknownHandlers()
getUnknownHandlers
in interface UnknownHandlerManager
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.