Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action.interceptor
Class TrimmedParametersInterceptor

java.lang.Object
  extended by com.opensymphony.xwork.interceptor.AroundInterceptor
      extended by com.opensymphony.xwork.interceptor.ParametersInterceptor
          extended by com.jivesoftware.base.action.interceptor.TrimmedParametersInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable

public class TrimmedParametersInterceptor
extends com.opensymphony.xwork.interceptor.ParametersInterceptor

This class extends XWork's ParametersInterceptor and converts any blank string params (either String object or String[] elements) to null. This also trims any strings such that a parameter with a value of " blah " will come through as just "blah".

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.xwork.interceptor.AroundInterceptor
log
 
Constructor Summary
TrimmedParametersInterceptor()
           
 
Method Summary
protected  void before(com.opensymphony.xwork.ActionInvocation invocation)
           
 
Methods inherited from class com.opensymphony.xwork.interceptor.ParametersInterceptor
acceptableName, after, setParameters
 
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
 

Constructor Detail

TrimmedParametersInterceptor

public TrimmedParametersInterceptor()
Method Detail

before

protected void before(com.opensymphony.xwork.ActionInvocation invocation)
               throws java.lang.Exception
Overrides:
before in class com.opensymphony.xwork.interceptor.ParametersInterceptor
Throws:
java.lang.Exception

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.