package io.dropwizard.jersey.validation;
import io.dropwizard.jersey.params.NonEmptyStringParam;
import org.hibernate.validator.spi.valuehandling.ValidatedValueUnwrapper;
import java.lang.reflect.Type;
public class NonEmptyStringParamUnwrapper extends ValidatedValueUnwrapper<NonEmptyStringParam> {
@Override
public Object handleValidatedValue(final NonEmptyStringParam nonEmptyStringParam) {
return nonEmptyStringParam.get().orElse(null);
}
@Override
public Type getValidatedValueType(final Type type) {
return String.class;
}
}