org.apache.beehive.netui.pageflow.config
Class DelegatingExceptionConfig

Object
  extended by ExceptionConfig
      extended by PageFlowExceptionConfig
          extended by DelegatingExceptionConfig
All Implemented Interfaces:
Serializable

public class DelegatingExceptionConfig
extends PageFlowExceptionConfig

A Struts ExceptionConfig object that delegates to an ExceptionConfig in a different module.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ExceptionConfig
bundle, configured, handler, key, path, scope, type
 
Constructor Summary
DelegatingExceptionConfig()
           
 
Method Summary
 String getBundle()
           
 String getDefaultMessage()
           
 ModuleConfig getDelegateModuleConfig(ServletContext servletContext)
          Get the ModuleConfig where the delegate ExceptionConfig lives.
 String getHandler()
           
 String getKey()
           
 String getLocalPathsRelativeTo()
          Get the prefix directory path that local paths in Forwards should be relative to.
 String getPath()
           
 String getScope()
           
 void init(ServletContext servletContext)
           
 boolean isHandlerMethod()
           
 boolean isPathContextRelative()
           
 boolean isReadonly()
           
 void setDelegateActionPath(String delegateActionPath)
          Set the path for the action where the delegate ExceptionConfig lives.
 void setDelegateModulePath(String delegateModulePath)
          Set the path prefix for the module where the delegate ExceptionConfig lives.
 void setInheritLocalPaths(boolean inheritLocalPaths)
          Tell whether local paths should be inherited from the base class.
 String toString()
           
 
Methods inherited from class PageFlowExceptionConfig
setDefaultMessage, setIsHandlerMethod, setIsPathContextRelative, setReadonly
 
Methods inherited from class ExceptionConfig
freeze, getType, setBundle, setHandler, setKey, setPath, setScope, setType
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatingExceptionConfig

public DelegatingExceptionConfig()
Method Detail

setDelegateModulePath

public void setDelegateModulePath(String delegateModulePath)
Set the path prefix for the module where the delegate ExceptionConfig lives.


setDelegateActionPath

public void setDelegateActionPath(String delegateActionPath)
Set the path for the action where the delegate ExceptionConfig lives. This will be null if the delegate ExceptionConfig lives at the module level.


getDelegateModuleConfig

public ModuleConfig getDelegateModuleConfig(ServletContext servletContext)
Get the ModuleConfig where the delegate ExceptionConfig lives.


init

public void init(ServletContext servletContext)

toString

public String toString()
Overrides:
toString in class ExceptionConfig

getLocalPathsRelativeTo

public String getLocalPathsRelativeTo()
Get the prefix directory path that local paths in Forwards should be relative to. This is only enabled if we're inheriting local paths from a base page flow.

Overrides:
getLocalPathsRelativeTo in class PageFlowExceptionConfig

setInheritLocalPaths

public void setInheritLocalPaths(boolean inheritLocalPaths)
Tell whether local paths should be inherited from the base class. This affects the value of getLocalPathsRelativeTo().


isHandlerMethod

public boolean isHandlerMethod()
Overrides:
isHandlerMethod in class PageFlowExceptionConfig

getDefaultMessage

public String getDefaultMessage()
Overrides:
getDefaultMessage in class PageFlowExceptionConfig

isPathContextRelative

public boolean isPathContextRelative()
Overrides:
isPathContextRelative in class PageFlowExceptionConfig

isReadonly

public boolean isReadonly()
Overrides:
isReadonly in class PageFlowExceptionConfig

getBundle

public String getBundle()
Overrides:
getBundle in class ExceptionConfig

getHandler

public String getHandler()
Overrides:
getHandler in class ExceptionConfig

getKey

public String getKey()
Overrides:
getKey in class ExceptionConfig

getPath

public String getPath()
Overrides:
getPath in class ExceptionConfig

getScope

public String getScope()
Overrides:
getScope in class ExceptionConfig