public class EmptyContentValidator extends Object implements Validator
An empty content should return Status.INVALID_CONTENT
, or
Status.VALID
otherwise.
Validator.Status
Modifier and Type | Field and Description |
---|---|
static EmptyContentValidator |
INSTANCE
An instance of this validator.
|
ALWAYS_VALID
Constructor and Description |
---|
EmptyContentValidator() |
Modifier and Type | Method and Description |
---|---|
Validator.Status |
isValid(Request request,
Response response)
Method will be called when a response need validation.
|
public static final EmptyContentValidator INSTANCE
public final Validator.Status isValid(Request request, Response response)
Validator
Copyright © 2018. All rights reserved.