|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.sfweb.ajax.validation.DwrValidationInterceptor
public class DwrValidationInterceptor
Provides validation for Ajax through DWR.
Constructor Summary | |
---|---|
DwrValidationInterceptor()
|
Method Summary | |
---|---|
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
Validate the arguments to service calls if it is a domain object. |
void |
setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
Set the validator. |
void |
validate(java.lang.Object object)
Validate the object sent via dwr. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DwrValidationInterceptor()
Method Detail |
---|
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws java.lang.Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
methodInvocation
- the method invocation to be intercepted and validated
java.lang.Throwable
- on errorpublic void setDefaultBeanValidator(org.springmodules.commons.validator.DefaultBeanValidator defaultBeanValidator)
defaultBeanValidator
- the validatorpublic void validate(java.lang.Object object) throws EpDomainException
object
- the domain or bean object to be validated
EpDomainException
- if defaultBeanValidator can not be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |