Search in sources :

Example 1 with TeacherResourceValidator

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);
}
Also used : ResourceRemote(org.apache.cxf.ws.transfer.resource.ResourceRemote) StreamSource(javax.xml.transform.stream.StreamSource) TeacherResourceValidator(org.apache.cxf.systest.ws.transfer.validator.TeacherResourceValidator) XSLTResourceTransformer(org.apache.cxf.ws.transfer.validationtransformation.XSLTResourceTransformer) MemoryResourceManager(org.apache.cxf.ws.transfer.manager.MemoryResourceManager) ResourceManager(org.apache.cxf.ws.transfer.manager.ResourceManager) MemoryResourceManager(org.apache.cxf.ws.transfer.manager.MemoryResourceManager) XSDResourceTypeIdentifier(org.apache.cxf.ws.transfer.validationtransformation.XSDResourceTypeIdentifier)

Aggregations

StreamSource (javax.xml.transform.stream.StreamSource)1 TeacherResourceValidator (org.apache.cxf.systest.ws.transfer.validator.TeacherResourceValidator)1 MemoryResourceManager (org.apache.cxf.ws.transfer.manager.MemoryResourceManager)1 ResourceManager (org.apache.cxf.ws.transfer.manager.ResourceManager)1 ResourceRemote (org.apache.cxf.ws.transfer.resource.ResourceRemote)1 XSDResourceTypeIdentifier (org.apache.cxf.ws.transfer.validationtransformation.XSDResourceTypeIdentifier)1 XSLTResourceTransformer (org.apache.cxf.ws.transfer.validationtransformation.XSLTResourceTransformer)1