Package org.apache.cxf.wsdl.interceptors

Examples of org.apache.cxf.wsdl.interceptors.URIMappingInterceptor


    protected void run()  {   
        Object implementor = new GreeterImpl();
        String address = "http://localhost:" + PORT + "/SoapContext/SoapPort";
        ep = Endpoint.publish(address, implementor);
        EndpointImpl epi = (EndpointImpl)ep;
        epi.getService().getInInterceptors().add(new URIMappingInterceptor());
       
        implementor = new org.apache.hello_world_soap_http.GreeterImpl();
        address = "http://localhost:" + PORT + "/SoapContext/Soap11Port";
        ep11 = Endpoint.publish(address, implementor);
    }
View Full Code Here


    protected void run() {
        Object implementor = new GreeterImpl();
        String address = "http://localhost:" + REG_PORT + "/XMLService/XMLPort";
        eps.add(Endpoint.publish(address, implementor));
       
        ((EndpointImpl)eps.get(0)).getService().getInInterceptors().add(new URIMappingInterceptor());

        Object implementor1 = new org.apache.hello_world_xml_http.wrapped.GreeterImpl();
        address = "http://localhost:" + WRAP_PORT + "/XMLService/XMLPort";
        eps.add(Endpoint.publish(address, implementor1));
View Full Code Here

        //endpoints.add(Endpoint.publish(DOCLIT_CODEFIRST_URL, implementor4));
       
        Object implementor7 = new DocLitBareCodeFirstServiceImpl();
        EndpointImpl ep = (EndpointImpl)Endpoint.publish(DOCLITBARE_CODEFIRST_URL, implementor7);
        ep.getServer().getEndpoint().getInInterceptors().add(new SAAJInInterceptor());
        ep.getServer().getEndpoint().getInInterceptors().add(new URIMappingInterceptor());
        endpoints.add(ep);

       
        Object implementor6 = new InterfaceInheritTestImpl();
        endpoints.add(Endpoint.publish(DOCLIT_CODEFIRST_BASE_URL, implementor6));
View Full Code Here

        Endpoint ep = Endpoint.create(implementor);
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(WSDLGetUtils.WSDL_CREATE_IMPORTS, Boolean.TRUE);
        ep.setProperties(props);
        ep.publish(address);
        ((EndpointImpl)ep).getService().getInInterceptors().add(new URIMappingInterceptor());
    }
View Full Code Here

        eps.add(Endpoint.publish(address, implementor));
       
        implementor = new GreeterImpl();
        address = "http://localhost:" + PORT + "/SoapContext/SoapPort";
        Endpoint ep = Endpoint.publish(address, implementor);
        ((EndpointImpl)ep).getService().getInInterceptors().add(new URIMappingInterceptor());
        eps.add(ep);
       
        implementor = new GreeterImpl();
        address = "http://localhost:" + PORT + "/SoapContext/SoapPortWithGzip";
        Endpoint ep2 = Endpoint.publish(address, implementor);
View Full Code Here

        @SuppressWarnings("deprecation")
        protected void run() {
            MyImplementation implementor = new MyImplementation();
            JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
            svrFactory.setServiceClass(MyInterface.class);
            svrFactory.getInInterceptors().add(new URIMappingInterceptor());
            svrFactory.setAddress(BASE_URL);
            svrFactory.setServiceBean(implementor);
            svrFactory.getInInterceptors().add(new LoggingInInterceptor());
            svrFactory.getOutInterceptors().add(new LoggingOutInterceptor());
            svrFactory.create();
View Full Code Here

   
    @Test
    public void testGetSayHiFromPath() throws Exception {
        message.put(Message.PATH_INFO, "/SOAPServiceRPCLit/SoapPort/sayHi");      
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
       
        Object parameters = message.getContent(List.class);
        assertNotNull(parameters);
View Full Code Here

   
    @Test
    public void testGetGreetMeFromPath() throws Exception {
        message.put(Message.PATH_INFO, "/SOAPServiceRPCLit/SoapPort/greetMe/in/king+author");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();       
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
       
        Object parameters = message.getContent(List.class);
        assertNotNull(parameters);
View Full Code Here

    public void testGetSayHiFromQueryFixedOrder() throws Exception {
        message.put(Message.FIXED_PARAMETER_ORDER, Boolean.TRUE);
        message.put(Message.PATH_INFO, "/SOAPServiceRPCLit/SoapPort/greetMe");
        message.put(Message.QUERY_STRING, "me=king");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
       
        assertion();
    }
View Full Code Here

    @Test
    public void testGetSayHiFromQueryRandomOrder() throws Exception {
        message.put(Message.PATH_INFO, "/SOAPServiceRPCLit/SoapPort/greetMe");
        message.put(Message.QUERY_STRING, "in=king");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));       
        assertion();
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.wsdl.interceptors.URIMappingInterceptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.