jodd.madvoc.injector
Class RequestScopeInjector.Config

java.lang.Object
  extended by jodd.madvoc.injector.RequestScopeInjector.Config
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
RequestScopeInjector

public static class RequestScopeInjector.Config
extends java.lang.Object
implements java.lang.Cloneable

Request scope configuration.


Field Summary
protected  boolean copyParamsToAttributes
           
protected  boolean encodeGetParams
           
protected  boolean ignoreEmptyRequestParams
           
protected  boolean injectAttributes
           
protected  boolean injectParameters
           
protected  boolean treatEmptyParamsAsNull
           
protected  boolean trimParams
           
 
Constructor Summary
RequestScopeInjector.Config()
           
 
Method Summary
 RequestScopeInjector.Config clone()
           
 boolean isCopyParamsToAttributes()
           
 boolean isEncodeGetParams()
           
 boolean isIgnoreEmptyRequestParams()
           
 boolean isInjectAttributes()
           
 boolean isInjectParameters()
           
 boolean isTreatEmptyParamsAsNull()
           
 boolean isTrimParams()
           
 void setCopyParamsToAttributes(boolean copyParamsToAttributes)
          Specifies if request parameters will to be copied to attributes.
 void setEncodeGetParams(boolean encodeGetParams)
          Specifies if GET parameters should be encoded.
 void setIgnoreEmptyRequestParams(boolean ignoreEmptyRequestParams)
          Specifies if empty request parameters will be totally ignored as they were not sent at all.
 void setInjectAttributes(boolean injectAttributes)
          Specifies if attributes will be injected.
 void setInjectParameters(boolean injectParameters)
          Specifies if parameters will be injected.
 void setTreatEmptyParamsAsNull(boolean treatEmptyParamsAsNull)
          Specifies if empty parameters will be injected as null value.
 void setTrimParams(boolean trimParams)
          Specifies if parameters will be trimmed before injection.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreEmptyRequestParams

protected boolean ignoreEmptyRequestParams

treatEmptyParamsAsNull

protected boolean treatEmptyParamsAsNull

injectAttributes

protected boolean injectAttributes

injectParameters

protected boolean injectParameters

copyParamsToAttributes

protected boolean copyParamsToAttributes

trimParams

protected boolean trimParams

encodeGetParams

protected boolean encodeGetParams
Constructor Detail

RequestScopeInjector.Config

public RequestScopeInjector.Config()
Method Detail

isIgnoreEmptyRequestParams

public boolean isIgnoreEmptyRequestParams()

setIgnoreEmptyRequestParams

public void setIgnoreEmptyRequestParams(boolean ignoreEmptyRequestParams)
Specifies if empty request parameters will be totally ignored as they were not sent at all.


isTreatEmptyParamsAsNull

public boolean isTreatEmptyParamsAsNull()

setTreatEmptyParamsAsNull

public void setTreatEmptyParamsAsNull(boolean treatEmptyParamsAsNull)
Specifies if empty parameters will be injected as null value.


isInjectAttributes

public boolean isInjectAttributes()

setInjectAttributes

public void setInjectAttributes(boolean injectAttributes)
Specifies if attributes will be injected.


isInjectParameters

public boolean isInjectParameters()

setInjectParameters

public void setInjectParameters(boolean injectParameters)
Specifies if parameters will be injected.


isCopyParamsToAttributes

public boolean isCopyParamsToAttributes()

setCopyParamsToAttributes

public void setCopyParamsToAttributes(boolean copyParamsToAttributes)
Specifies if request parameters will to be copied to attributes. Usually, when this flag is set to true, injectOnlyAttributes is also set to true.


isTrimParams

public boolean isTrimParams()

setTrimParams

public void setTrimParams(boolean trimParams)
Specifies if parameters will be trimmed before injection.


isEncodeGetParams

public boolean isEncodeGetParams()

setEncodeGetParams

public void setEncodeGetParams(boolean encodeGetParams)
Specifies if GET parameters should be encoded. Alternativly, this can be set in container as well. Setting URIEncoding="UTF-8" in Tomcat's connector settings within the server.xml file communicates the character-encoding choice to the web server, and the Tomcat server correctly reads the URL GET parameters correctly. On Sun Java System Application Server 8.1, "<parameter-encoding default-charset="UTF-8"/>" can be included in the sun-web.xml file. See more: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/


clone

public RequestScopeInjector.Config clone()
Overrides:
clone in class java.lang.Object


Copyright © 2003-2010 Jodd Team