Examples of handleMessage()


Examples of org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage()

        message.put(Message.FIXED_PARAMETER_ORDER, Boolean.TRUE);
        message.put(Message.PATH_INFO, "/CalculatorService/SoapPort/add");
        message.put(Message.QUERY_STRING, "arg0=1&arg1=0");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
        assertion();
    }
   
View Full Code Here

Examples of org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage()

    public void testGetAddFromQueryOrdered() throws Exception {
        message.put(Message.PATH_INFO, "/CalculatorService/SoapPort/add");
        message.put(Message.QUERY_STRING, "arg1=0&arg0=1");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
        assertion();
    }
   
View Full Code Here

Examples of org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage()

    @Test
    public void testGetAddFromPathOrdered() throws Exception {
        message.put(Message.PATH_INFO, "/CalculatorService/SoapPort/add/arg1/0/arg0/1");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        interceptor.handleMessage(message);
       
        assertNull(message.getContent(Exception.class));
        assertion();
    }   
   
View Full Code Here

Examples of org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage()

        message.put(Message.PATH_INFO, "/CalculatorService/SoapPort/add");
        message.put(Message.QUERY_STRING, "one=1&two=2");
       
        URIMappingInterceptor interceptor = new URIMappingInterceptor();
        try {
            interceptor.handleMessage(message);
        } catch (Exception e) {
            assertTrue(e instanceof Fault);
            assertEquals("Parameter should be ordered in the following sequence: [arg0, arg1]",
                         e.getMessage());
        }
View Full Code Here

Examples of org.apache.cxf.interceptor.WrappedInInterceptor.handleMessage()

        WrappedInInterceptor interceptor = new WrappedInInterceptor();

        message.setContent(XMLStreamReader.class, XMLInputFactory.newInstance()
            .createXMLStreamReader(getTestStream(getClass(), "resources/GreetMeDocLiteralReq.xml")));

        interceptor.handleMessage(message);

        assertNull(message.getContent(Exception.class));
        BindingOperationInfo op = (BindingOperationInfo)message.getExchange().get(BindingOperationInfo.class
                                                                                      .getName());
        assertNotNull(op);
View Full Code Here

Examples of org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor.handleMessage()

       
        Message m = prepareMessage(TestService2.class, "test",
                createDefaultClaim("admin"),
                createClaim("a", "b", "c"));
       
        in.handleMessage(m);
       
        ClaimsAuthorizingInterceptor in2 = new ClaimsAuthorizingInterceptor();
        org.apache.cxf.rs.security.saml.assertion.Claim claim =
            new org.apache.cxf.rs.security.saml.assertion.Claim("a", "b", "c");
        in2.setClaims(Collections.singletonMap("test",
View Full Code Here

Examples of org.apache.cxf.interceptor.transform.TransformInInterceptor.handleMessage()

        }
        @SuppressWarnings("unchecked")
        Map<String, String> inTransformMap = (Map<String, String>) map;
           TransformInInterceptor simpleIn = new TransformInInterceptor();
           simpleIn.setInTransformElements(inTransformMap);
           simpleIn.handleMessage(message);
    }
}
View Full Code Here

Examples of org.apache.cxf.interceptor.transform.TransformOutInterceptor.handleMessage()

        }
        @SuppressWarnings("unchecked")
        Map<String, String> outTransformMap = (Map<String, String>) map;
           TransformOutInterceptor simpleOut = new TransformOutInterceptor();
           simpleOut.setOutTransformElements(outTransformMap);
           simpleOut.handleMessage(message);
    }
}
View Full Code Here

Examples of org.apache.cxf.jaxrs.interceptor.AttachmentOutputInterceptor.handleMessage()

        }
        AttachmentOutputInterceptor attInterceptor =         
            new AttachmentOutputInterceptor(messageContentType, rootHeaders);
       
        outMessage.put(Message.CONTENT_TYPE, rootContentType);
        attInterceptor.handleMessage(outMessage);
    }
   
    private Message getOutMessage() {
       
        Message message = m.getExchange().getOutMessage();
View Full Code Here

Examples of org.apache.cxf.jaxrs.interceptor.AttachmentOutputInterceptor.handleMessage()

        Map<String, List<String>> allHeaders =
            CastUtils.cast((Map<?, ?>)outMessage.get(Message.PROTOCOL_HEADERS));
        if (allHeaders != null) {
            allHeaders.remove(Message.CONTENT_TYPE);
        }
        attInterceptor.handleMessage(outMessage);
    }
   
    private Message getOutMessage() {
       
        Message message = m.getExchange().getOutMessage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.