use of org.apache.cxf.systest.ws.transfer.validator.TeacherResourceValidator in project cxf by apache.
the class TestUtils method createTeachersServers.
protected static void createTeachersServers(String port) {
ResourceManager teachersResourceManager = new MemoryResourceManager();
ResourceRemote resource = new ResourceRemote();
resource.setManager(teachersResourceManager);
resource.getResourceTypeIdentifiers().add(new XSDResourceTypeIdentifier(new StreamSource(TestUtils.class.getResourceAsStream("/schema/teacher.xsd")), new XSLTResourceTransformer(new StreamSource(TestUtils.class.getResourceAsStream("/xslt/teacherDefaultValues.xsl")), new TeacherResourceValidator())));
teachersResourceFactoryServer = createTeachersResourceFactoryEndpoint(resource, port);
teachersResourceServer = createTeacherResourceEndpoint(resource, port);
}
Aggregations