|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hdiv.config.HDIVConfig
public class HDIVConfig
Class containing HDIV configuration initialized from Spring Factory.
| Field Summary | |
|---|---|
protected java.util.Hashtable |
startPages
Map with the pages that will not be Treated by the HDIV filter. |
| Constructor Summary | |
|---|---|
HDIVConfig()
|
|
| Method Summary | |
|---|---|
boolean |
areEditableParameterValuesValid(java.lang.String url,
java.lang.String parameter,
java.lang.String[] values,
java.lang.String dataType)
Checks if the values values are valid for the editable
parameter parameter, using the validations defined in the
hdiv-validations.xml configuration file of Spring. |
java.lang.String |
checkValue(java.lang.String value,
java.util.Map startValues)
Checks if value is an init action or parameter, in which case
it will not be treated by HDIV. |
boolean |
existValidations()
Checks if there are validations defined for editable fields |
java.lang.Boolean |
getConfidentiality()
|
java.lang.String |
getErrorPage()
|
java.util.Map |
getParamsWithoutValidation()
|
java.util.Hashtable |
getProtectedURLPatterns()
|
boolean |
isCookiesConfidentialityActivated()
|
boolean |
isCookiesIntegrityActivated()
|
boolean |
isParameterWithoutValidation(java.lang.String action,
java.lang.String parameter)
Checks if the parameter parameter is defined by the user as a
no required validation parameter for the action action. |
boolean |
isStartPage(java.lang.String target)
Checks if target is an init action, in which case it will not
be treated by HDIV. |
boolean |
isStartParameter(java.lang.String parameter)
Checks if parameter is an init parameter, in which case it will
not be treated by HDIV. |
boolean |
needValidation(java.lang.String parameter,
java.lang.String hdivParameter)
Checks if the HDIV validation must be applied to the parameter parameter |
void |
setConfidentiality(java.lang.Boolean confidentiality)
|
void |
setCookiesConfidentiality(java.lang.Boolean cookiesConfidentiality)
|
void |
setCookiesIntegrity(java.lang.Boolean cookiesIntegrity)
|
void |
setErrorPage(java.lang.String errorPage)
|
void |
setParamsWithoutValidation(java.util.Map paramsWithoutValidation)
|
void |
setProtectedExtensions(java.util.List protectedExtensions)
|
void |
setUserStartPages(java.util.List userStartPages)
It creates a map from the list of start pages defined by the user. |
void |
setUserStartParameters(java.util.List userStartParameters)
It creates a map from the list of init parameters defined by the user. |
void |
setValidations(HDIVValidations validations)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable startPages
| Constructor Detail |
|---|
public HDIVConfig()
| Method Detail |
|---|
public boolean isStartParameter(java.lang.String parameter)
parameter is an init parameter, in which case it will
not be treated by HDIV.
parameter - Parameter name
parameter is an init parameter. False
otherwise.public boolean isStartPage(java.lang.String target)
target is an init action, in which case it will not
be treated by HDIV.
target - target name
target is an init action. False otherwise.
public boolean isParameterWithoutValidation(java.lang.String action,
java.lang.String parameter)
parameter is defined by the user as a
no required validation parameter for the action action.
action - action nameparameter - parameter name
public java.lang.String checkValue(java.lang.String value,
java.util.Map startValues)
value is an init action or parameter, in which case
it will not be treated by HDIV.
value - target or parameter namestartValues - Map with start values
value is an init action or parameter. False
otherwise.
public boolean needValidation(java.lang.String parameter,
java.lang.String hdivParameter)
parameter
parameter - Parameter namehdivParameter - Name of the parameter that HDIV will include in the
requests or/and forms which contains the state identifier parameter
parameter doesn't need HDIV validation.public java.lang.String getErrorPage()
public void setErrorPage(java.lang.String errorPage)
public java.lang.Boolean getConfidentiality()
public void setConfidentiality(java.lang.Boolean confidentiality)
public java.util.Map getParamsWithoutValidation()
public void setParamsWithoutValidation(java.util.Map paramsWithoutValidation)
public void setUserStartPages(java.util.List userStartPages)
userStartPages - list of start pages defined by the userpublic void setUserStartParameters(java.util.List userStartParameters)
userStartPages - list of init parameters defined by the userpublic void setValidations(HDIVValidations validations)
validations - The validations to set.public boolean existValidations()
public boolean areEditableParameterValuesValid(java.lang.String url,
java.lang.String parameter,
java.lang.String[] values,
java.lang.String dataType)
Checks if the values values are valid for the editable
parameter parameter, using the validations defined in the
hdiv-validations.xml configuration file of Spring.
There are two types of validations:
target - target nameparameter - parameter namevalues - parameter's valuesdataType - editable data type
values are valid for the parameter
parameter.public boolean isCookiesConfidentialityActivated()
public void setCookiesConfidentiality(java.lang.Boolean cookiesConfidentiality)
cookiesConfidentiality - The cookiesConfidentiality to set.public boolean isCookiesIntegrityActivated()
public void setCookiesIntegrity(java.lang.Boolean cookiesIntegrity)
cookiesIntegrity - The cookiesIntegrity to set.public void setProtectedExtensions(java.util.List protectedExtensions)
protectedExtensions - The protected extensions to set.public java.util.Hashtable getProtectedURLPatterns()
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||