com.opensymphony.xwork.interceptor
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
categoryLogger
|
protected static org.apache.commons.logging.Log |
log
|
protected String |
logCategory
|
protected boolean |
logEnabled
|
protected String |
logLevel
|
| Constructor Summary | |
|---|---|
ExceptionMappingInterceptor()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called to let an interceptor clean up any resources it has allocated. |
protected void |
doLog(org.apache.commons.logging.Log logger,
Exception e)
Performs the actual logging. |
int |
getDepth(String exceptionMapping,
Throwable t)
Return the depth to the superclass matching. |
String |
getLogCategory()
|
String |
getLogLevel()
|
protected void |
handleLogging(Exception e)
Handles the logging of the exception. |
void |
init()
Called after an interceptor is created, but before any requests are processed using intercept , giving
the Interceptor a chance to initialize any needed resources. |
String |
intercept(ActionInvocation invocation)
Allows the Interceptor to do some processing on the request before and/or after the rest of the processing of the request by the ActionInvocation or to short-circuit the processing and just return a String return code. |
boolean |
isLogEnabled()
|
protected void |
publishException(ActionInvocation invocation,
ExceptionHolder exceptionHolder)
Default implementation to handle ExceptionHolder publishing. |
void |
setLogCategory(String logCatgory)
|
void |
setLogEnabled(boolean logEnabled)
|
void |
setLogLevel(String logLevel)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected org.apache.commons.logging.Log categoryLogger
protected boolean logEnabled
protected String logCategory
protected String logLevel
| Constructor Detail |
|---|
public ExceptionMappingInterceptor()
| Method Detail |
|---|
public boolean isLogEnabled()
public void setLogEnabled(boolean logEnabled)
public String getLogCategory()
public void setLogCategory(String logCatgory)
public String getLogLevel()
public void setLogLevel(String logLevel)
public void destroy()
Interceptor
destroy in interface Interceptorpublic void init()
Interceptorintercept , giving
the Interceptor a chance to initialize any needed resources.
init in interface Interceptorpublic String intercept(ActionInvocation invocation) throws Exception
InterceptorActionInvocation or to short-circuit the processing and just return a String return code.
intercept in interface InterceptorActionInvocation.invoke(), or from the interceptor itself.
Exception - any system-level error, as defined in Action.execute().protected void handleLogging(Exception e)
e - the exception to log.
protected void doLog(org.apache.commons.logging.Log logger,
Exception e)
logger - the provided logger to use.e - the exception to log.public int getDepth(String exceptionMapping, Throwable t)
exceptionMapping - the mapping classnamet - the cause
protected void publishException(ActionInvocation invocation, ExceptionHolder exceptionHolder)
invocation - The invocation to publish Exception for.exceptionHolder - The exceptionHolder wrapping the Exception to publish.
|
WebWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||