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