public class ShareItemListRequestValidator extends Object implements RequestValidator
| Constructor and Description |
|---|
ShareItemListRequestValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(Class<?> clazz)
Tells whether this validator supports the given type.
|
void |
validate(Object rawRequestBody,
org.springframework.validation.Errors errors)
Validates the given request body.
|
protected void |
validateTarget(ShareItemListRequest.Target target,
org.springframework.validation.Errors errors)
Validates a single share target.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic boolean supports(Class<?> clazz)
RequestValidatorsupports in interface RequestValidatorclazz - the class of the instance that will be tested/validatedpublic void validate(Object rawRequestBody, org.springframework.validation.Errors errors)
RequestValidatorvalidate in interface RequestValidatorrawRequestBody - the request body to validateerrors - the errors to contribute to when validation errors occurprotected void validateTarget(ShareItemListRequest.Target target, org.springframework.validation.Errors errors)
target - the target to validateerrors - the errors to add validation errors toCopyright © 2021. All rights reserved.