Package org.apache.cxf.message

Examples of org.apache.cxf.message.MessageImpl


       
    }
   
    @Test
    public void testPrimitiveStatementSearchBean() {
        Message m = new MessageImpl();
        m.put(Message.QUERY_STRING, "_s=name==CXF");
        SearchContext context = new SearchContextImpl(m);
        SearchCondition<SearchBean> sc = context.getCondition(SearchBean.class);
        assertNotNull(sc);
       
        PrimitiveStatement ps = sc.getStatement();
View Full Code Here


        assertEquals(String.class, ps.getValueType());
    }
   
    @Test
    public void testPrimitiveStatementSearchBeanComlexName() {
        Message m = new MessageImpl();
        m.put(Message.QUERY_STRING, "_s=complex.name==CXF");
        SearchContext context = new SearchContextImpl(m);
        SearchCondition<SearchBean> sc = context.getCondition(SearchBean.class);
        assertNotNull(sc);
       
        PrimitiveStatement ps = sc.getStatement();
View Full Code Here

        assertEquals(String.class, ps.getValueType());
    }
   
    @Test
    public void testSingleEquals() {
        Message m = new MessageImpl();
        m.put(Message.QUERY_STRING, "_s=name=CXF");
        m.put("fiql.support.single.equals.operator", "true");
        SearchContext context = new SearchContextImpl(m);
        SearchCondition<SearchBean> sc = context.getCondition(SearchBean.class);
        assertNotNull(sc);
       
        PrimitiveStatement ps = sc.getStatement();
View Full Code Here

                return "alice";
            }
        };
       
        String operation = "{http://www.example.org/contract/DoubleIt}DoubleIt";
        MessageImpl msg = new MessageImpl();
        msg.put(Message.WSDL_OPERATION, QName.valueOf(operation));
        String service = "{http://www.example.org/contract/DoubleIt}DoubleItService";
        msg.put(Message.WSDL_SERVICE, QName.valueOf(service));
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

                return "alice";
            }
        };
       
        String operation = "{http://www.example.org/contract/DoubleIt}DoubleIt";
        MessageImpl msg = new MessageImpl();
        msg.put(Message.WSDL_OPERATION, QName.valueOf(operation));
        String service = "{http://www.example.org/contract/DoubleIt}DoubleItService";
        msg.put(Message.WSDL_SERVICE, QName.valueOf(service));
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

                return "alice";
            }
        };
       
        String operation = "{http://www.example.org/contract/DoubleIt}DoubleIt";
        MessageImpl msg = new MessageImpl();
        msg.put(Message.WSDL_OPERATION, QName.valueOf(operation));
        String service = "{http://www.example.org/contract/DoubleIt}DoubleItService";
        msg.put(Message.WSDL_SERVICE, QName.valueOf(service));
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

                return "alice";
            }
        };
       
        String operation = "{http://www.example.org/contract/DoubleIt}DoubleIt";
        MessageImpl msg = new MessageImpl();
        msg.put(Message.WSDL_OPERATION, QName.valueOf(operation));
        String service = "{http://www.example.org/contract/DoubleIt}DoubleItService";
        msg.put(Message.WSDL_SERVICE, QName.valueOf(service));
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

                return "alice";
            }
        };
       
        String operation = "{http://www.example.org/contract/DoubleIt}DoubleIt";
        MessageImpl msg = new MessageImpl();
        msg.put(Message.WSDL_OPERATION, QName.valueOf(operation));
        String service = "{http://www.example.org/contract/DoubleItService}DoubleItService";
        msg.put(Message.WSDL_SERVICE, QName.valueOf(service));
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

            public String getName() {
                return "alice";
            }
        };
       
        MessageImpl msg = new MessageImpl();
        String resourceURL = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURL);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
        assertNotNull(request);
View Full Code Here

            public String getName() {
                return "alice";
            }
        };
       
        MessageImpl msg = new MessageImpl();
        String resourceURL = "https://localhost:8080/doubleit";
        msg.put(Message.REQUEST_URL, resourceURL);
        String resourceURI = "/doubleit";
        msg.put(Message.REQUEST_URI, resourceURI);
       
        XACMLRequestBuilder builder = new DefaultXACMLRequestBuilder();
        ((DefaultXACMLRequestBuilder)builder).setSendFullRequestURL(true);
        RequestType request =
            builder.createRequest(principal, Collections.singletonList("manager"), msg);
View Full Code Here

TOP

Related Classes of org.apache.cxf.message.MessageImpl

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.