Package org.apache.camel.web.model

Examples of org.apache.camel.web.model.Camel


    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here


    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here

*/
public class EndpointsTest extends TestSupport {

    @Test
    public void testCamelAsXml() throws Exception {
        Camel camel = resource("/").accept("application/xml").get(Camel.class);
        assertValidCamel(camel);

        camel = resource("/.xml").get(Camel.class);
        assertValidCamel(camel);
    }
View Full Code Here

    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here

*/
public class EndpointsTest extends TestSupport {

    @Test
    public void testCamelAsXml() throws Exception {
        Camel camel = resource("/").accept("application/xml").get(Camel.class);
        assertValidCamel(camel);

        camel = resource("/.xml").get(Camel.class);
        assertValidCamel(camel);
    }
View Full Code Here

* @version $Revision: 768179 $
*/
public class EndpointsTest extends TestSupport {

    public void testCamelAsXml() throws Exception {
        Camel camel = resource("/").accept("application/xml").get(Camel.class);
        assertValidCamel(camel);

        camel = resource("/.xml").get(Camel.class);
        assertValidCamel(camel);
    }
View Full Code Here

    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here

    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here

    @GET
    // TODO we can replace this long expression with a static constant
    // when Jersey supports JAX-RS 1.1
    @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
    public Camel getCamel() {
        return new Camel(camelContext, getVersion());
    }
View Full Code Here

*/
public class EndpointsTest extends TestSupport {

    @Test
    public void testCamelAsXml() throws Exception {
        Camel camel = resource("/").accept("application/xml").get(Camel.class);
        assertValidCamel(camel);

        camel = resource("/.xml").get(Camel.class);
        assertValidCamel(camel);
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.web.model.Camel

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.