org.apache.struts.config
public class ExceptionConfig extends java.lang.Object implements java.io.Serializable
A JavaBean representing the configuration information of an
<exception>
element from a Struts
configuration file.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
bundle
The servlet context attribute under which the message resources bundle
to be used for this exception is located.
|
protected boolean |
configured
Has this component been completely configured?
|
protected java.lang.String |
handler
The fully qualified Java class name of the exception handler class
which should be instantiated to handle this exception.
|
protected java.lang.String |
key
The message resources key specifying the error message
associated with this exception.
|
protected java.lang.String |
path
The module-relative path of the resource to forward to if this
exception occurs during an
Action . |
protected java.lang.String |
scope
The scope in which we should expose the ActionError for this exception
handler.
|
protected java.lang.String |
type
The fully qualified Java class name of the exception that is to be
handled by this handler.
|
Constructor and Description |
---|
ExceptionConfig() |
Modifier and Type | Method and Description |
---|---|
void |
freeze()
Freeze the configuration of this component.
|
java.lang.String |
getBundle() |
java.lang.String |
getHandler() |
java.lang.String |
getKey() |
java.lang.String |
getPath() |
java.lang.String |
getScope() |
java.lang.String |
getType() |
void |
setBundle(java.lang.String bundle) |
void |
setHandler(java.lang.String handler) |
void |
setKey(java.lang.String key) |
void |
setPath(java.lang.String path) |
void |
setScope(java.lang.String scope) |
void |
setType(java.lang.String type) |
java.lang.String |
toString()
Return a String representation of this object.
|
protected boolean configured
protected java.lang.String bundle
protected java.lang.String handler
protected java.lang.String key
protected java.lang.String path
Action
.protected java.lang.String scope
protected java.lang.String type
public java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
public java.lang.String getHandler()
public void setHandler(java.lang.String handler)
public java.lang.String getKey()
public void setKey(java.lang.String key)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public java.lang.String getType()
public void setType(java.lang.String type)
public void freeze()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2000-2014 - The Apache Software Foundation