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, wait
validate
public boolean supports(Class<?> clazz)
RequestValidator
supports
in interface RequestValidator
clazz
- the class of the instance that will be tested/validatedpublic void validate(Object rawRequestBody, org.springframework.validation.Errors errors)
RequestValidator
validate
in interface RequestValidator
rawRequestBody
- 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.