use of org.apache.cxf.feature.validation.DefaultSchemaValidationTypeProvider in project cxf by apache.
the class JavaFirstSchemaValidationTest method createNoSchemaValidationFeature.
private static SchemaValidationFeature createNoSchemaValidationFeature() {
Map<String, SchemaValidationType> operationMap = new HashMap<>();
operationMap.put("*", SchemaValidationType.NONE);
DefaultSchemaValidationTypeProvider provider = new DefaultSchemaValidationTypeProvider(operationMap);
return new SchemaValidationFeature(provider);
}
use of org.apache.cxf.feature.validation.DefaultSchemaValidationTypeProvider in project cxf by apache.
the class JavaFirstSchemaValidationTest method createSchemaValidationFeature.
private static SchemaValidationFeature createSchemaValidationFeature() {
Map<String, SchemaValidationType> operationMap = new HashMap<>();
operationMap.put("saveInheritEndpoint", SchemaValidationType.BOTH);
operationMap.put("saveNoValidation", SchemaValidationType.NONE);
operationMap.put("saveValidateIn", SchemaValidationType.IN);
operationMap.put("saveValidateOut", SchemaValidationType.OUT);
DefaultSchemaValidationTypeProvider provider = new DefaultSchemaValidationTypeProvider(operationMap);
return new SchemaValidationFeature(provider);
}
Aggregations