Search in sources :

Example 1 with ValidationInterceptor

use of org.glassfish.jersey.server.spi.ValidationInterceptor in project jersey by jersey.

the class DefaultConfiguredValidator method createInterceptorList.

private List<ValidationInterceptor> createInterceptorList(Iterable<ValidationInterceptor> interceptors) {
    List<ValidationInterceptor> result = new LinkedList<>();
    for (ValidationInterceptor i : interceptors) {
        result.add(i);
    }
    result.add(this);
    return result;
}
Also used : ValidationInterceptor(org.glassfish.jersey.server.spi.ValidationInterceptor) LinkedList(java.util.LinkedList)

Example 2 with ValidationInterceptor

use of org.glassfish.jersey.server.spi.ValidationInterceptor in project jersey by jersey.

the class ValidationInterceptorExecutor method proceed.

@Override
public void proceed() throws ValidationException {
    final ValidationInterceptor validationInterceptor = iterator.next();
    validationInterceptor.onValidate(this);
}
Also used : ValidationInterceptor(org.glassfish.jersey.server.spi.ValidationInterceptor)

Aggregations

ValidationInterceptor (org.glassfish.jersey.server.spi.ValidationInterceptor)2 LinkedList (java.util.LinkedList)1