Package org.apache.cxf.jaxrs.resources.jaxb

Examples of org.apache.cxf.jaxrs.resources.jaxb.Book2NoRootElement


    @Test
    public void testIgnoreNamespacesPackageInfo2() throws Exception {
        JSONProvider<Book2NoRootElement> p = new JSONProvider<Book2NoRootElement>();
        p.setMarshallAsJaxbElement(true);
        p.setIgnoreNamespaces(true);
        Book2NoRootElement book = new Book2NoRootElement(123);
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
        p.writeTo(book, Book2NoRootElement.class, Book2NoRootElement.class,
                  Book2NoRootElement.class.getAnnotations(),
                  MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), os);
View Full Code Here


    @Test
    public void testIgnoreNamespacesPackageInfo2() throws Exception {
        JSONProvider<Book2NoRootElement> p = new JSONProvider<Book2NoRootElement>();
        p.setMarshallAsJaxbElement(true);
        p.setIgnoreNamespaces(true);
        Book2NoRootElement book = new Book2NoRootElement(123);
        ByteArrayOutputStream os = new ByteArrayOutputStream();
       
        p.writeTo(book, Book2NoRootElement.class, Book2NoRootElement.class,
                  Book2NoRootElement.class.getAnnotations(),
                  MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), os);
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxrs.resources.jaxb.Book2NoRootElement

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.