com.opensymphony.xwork.interceptor
Class ParameterFilterInterceptor

java.lang.Object
  extended by com.opensymphony.xwork.interceptor.ParameterFilterInterceptor
All Implemented Interfaces:
Interceptor

public class ParameterFilterInterceptor
extends Object
implements Interceptor

Author:
Gabe Filters parameters

Constructor Summary
ParameterFilterInterceptor()
           
 
Method Summary
 void destroy()
          Called to let an interceptor clean up any resources it has allocated.
 Collection getAllowed()
           
 Collection getBlocked()
           
 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 isDefaultBlock()
           
 void setAllowed(Collection allowed)
           
 void setAllowed(String allowed)
           
 void setBlocked(Collection blocked)
           
 void setBlocked(String blocked)
           
 void setDefaultBlock(boolean defaultExclude)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterFilterInterceptor

public ParameterFilterInterceptor()
Method Detail

destroy

public void destroy()
Description copied from interface: Interceptor
Called to let an interceptor clean up any resources it has allocated.

Specified by:
destroy in interface Interceptor

init

public void init()
Description copied from interface: Interceptor
Called after an interceptor is created, but before any requests are processed using intercept , giving the Interceptor a chance to initialize any needed resources.

Specified by:
init in interface Interceptor

intercept

public String intercept(ActionInvocation invocation)
                 throws Exception
Description copied from interface: Interceptor
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.

Specified by:
intercept in interface Interceptor
Returns:
the return code, either returned from ActionInvocation.invoke(), or from the interceptor itself.
Throws:
Exception - any system-level error, as defined in Action.execute().

isDefaultBlock

public boolean isDefaultBlock()
Returns:
Returns the defaultBlock.

setDefaultBlock

public void setDefaultBlock(boolean defaultExclude)
Parameters:
defaultBlock - The defaultBlock to set.

getBlocked

public Collection getBlocked()
Returns:
Returns the blocked.

setBlocked

public void setBlocked(Collection blocked)
Parameters:
blocked - The blocked to set.

setBlocked

public void setBlocked(String blocked)

getAllowed

public Collection getAllowed()
Returns:
Returns the allowed.

setAllowed

public void setAllowed(Collection allowed)
Parameters:
allowed - The allowed to set.

setAllowed

public void setAllowed(String allowed)

XWork Project Page