com.opensymphony.xwork.interceptor
Class ConversionErrorInterceptor

java.lang.Object
  extended bycom.opensymphony.xwork.interceptor.AroundInterceptor
      extended bycom.opensymphony.xwork.interceptor.ConversionErrorInterceptor
All Implemented Interfaces:
Interceptor

public class ConversionErrorInterceptor
extends AroundInterceptor

ConversionErrorInterceptor adds conversion errors from the ActionContext to the Action's field errors

Author:
Jason Carreira Date: Nov 27, 2003 3:57:06 PM

Field Summary
static String ORIGINAL_PROPERTY_OVERRIDE
           
 
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
log
 
Constructor Summary
ConversionErrorInterceptor()
           
 
Method Summary
protected  void after(ActionInvocation dispatcher, String result)
          Called after the invocation has been executed.
protected  void before(ActionInvocation invocation)
          Called before the invocation has been executed.
protected  Object getOverrideExpr(ActionInvocation invocation, Object value)
           
protected  boolean shouldAddError(String propertyName, Object value)
           
 
Methods inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
destroy, init, intercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIGINAL_PROPERTY_OVERRIDE

public static final String ORIGINAL_PROPERTY_OVERRIDE
See Also:
Constant Field Values
Constructor Detail

ConversionErrorInterceptor

public ConversionErrorInterceptor()
Method Detail

getOverrideExpr

protected Object getOverrideExpr(ActionInvocation invocation,
                                 Object value)

after

protected void after(ActionInvocation dispatcher,
                     String result)
              throws Exception
Description copied from class: AroundInterceptor
Called after the invocation has been executed.

Specified by:
after in class AroundInterceptor
Parameters:
result - the result value returned by the invocation
Throws:
Exception

before

protected void before(ActionInvocation invocation)
               throws Exception
Description copied from class: AroundInterceptor
Called before the invocation has been executed.

Specified by:
before in class AroundInterceptor
Throws:
Exception

shouldAddError

protected boolean shouldAddError(String propertyName,
                                 Object value)

XWork Project Page