Package org.apache.camel.spi

Examples of org.apache.camel.spi.BrowsableEndpoint


        UITable table = ui.newTable(root, new UITable.TableUIInfo(null));
        form.add(table, new UITable.TableBindingInfo(bindingData));

        ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
            public String getLabel(Object object) {
                BrowsableEndpoint endpoint = (BrowsableEndpoint) object;
                return endpoint.getEndpointUri();
            }
        }));

        WritableValue value = ModelHelper.createWritableValue(this);
        form.bind(value);
View Full Code Here


    @Test
    public void testBrowsableNoFiles() throws Exception {
        // make sure starting directory exists
        createDirectory(FTP_ROOT_DIR + "/browse");

        BrowsableEndpoint browse = context.getEndpoint(getFtpUrl(), BrowsableEndpoint.class);
        assertNotNull(browse);

        List<Exchange> list = browse.getExchanges();
        assertNotNull(list);
        assertEquals(0, list.size());
    }
View Full Code Here

        template.sendBody("direct:start", "Hello World");
        template.sendBody("direct:start", "Bye World");

        assertMockEndpointsSatisfied();

        BrowsableEndpoint list = context.getEndpoint("browse:foo", BrowsableEndpoint.class);

        mock.getExchanges().get(0).equals(list.getExchanges().get(0));
        mock.getExchanges().get(1).equals(list.getExchanges().get(1));
    }
View Full Code Here

    @Test
    public void testBrowsableNoFiles() throws Exception {
        // make sure starting directory exists
        createDirectory(FTP_ROOT_DIR + "browse");

        BrowsableEndpoint browse = context.getEndpoint(getFtpUrl(), BrowsableEndpoint.class);
        assertNotNull(browse);

        List<Exchange> list = browse.getExchanges();
        assertNotNull(list);
        assertEquals(0, list.size());
    }
View Full Code Here

        template.sendBody("direct:start", "Hello World");
        template.sendBody("direct:start", "Bye World");

        assertMockEndpointsSatisfied();

        BrowsableEndpoint list = context.getEndpoint("browse:foo", BrowsableEndpoint.class);

        mock.getExchanges().get(0).equals(list.getExchanges().get(0));
        mock.getExchanges().get(1).equals(list.getExchanges().get(1));
    }
View Full Code Here

        template.sendBody("direct:start", "Hello World");
        template.sendBody("direct:start", "Bye World");

        assertMockEndpointsSatisfied();

        BrowsableEndpoint list = context.getEndpoint("browse:foo", BrowsableEndpoint.class);

        mock.getExchanges().get(0).equals(list.getExchanges().get(0));
        mock.getExchanges().get(1).equals(list.getExchanges().get(1));
    }
View Full Code Here

        template.sendBody("direct:start", "Hello World");
        template.sendBody("direct:start", "Bye World");

        assertMockEndpointsSatisfied();

        BrowsableEndpoint list = context.getEndpoint("browse:foo", BrowsableEndpoint.class);

        mock.getExchanges().get(0).equals(list.getExchanges().get(0));
        mock.getExchanges().get(1).equals(list.getExchanges().get(1));
    }
View Full Code Here

     * <a href="http://camel.apache.org/browsableendpoint.html">being browsed</a>
     */
    @Path("messages/{id}")
    public ExchangeResource getExchange(@PathParam("id") String exchangeId) {
        if (endpoint instanceof BrowsableEndpoint) {
            BrowsableEndpoint browsableEndpoint = (BrowsableEndpoint) endpoint;
            Exchange exchange = ExchangeHelper.getExchangeById(browsableEndpoint.getExchanges(), exchangeId);
            if (exchange != null) {
                return new ExchangeResource(this, exchange);
            }
        }
        // should return 404
View Full Code Here

    public boolean isUseRouteBuilder() {
        return false;
    }

    public void testBrowsableNoFiles() throws Exception {
        BrowsableEndpoint browse = context.getEndpoint("file:target/browse", BrowsableEndpoint.class);
        assertNotNull(browse);

        List<Exchange> list = browse.getExchanges();
        assertNotNull(list);
        assertEquals(0, list.size());
    }
View Full Code Here

     * <a href="http://camel.apache.org/browsableendpoint.html">being browsed</a>
     */
    @Path("messages/{id}")
    public ExchangeResource getExchange(@PathParam("id") String exchangeId) {
        if (endpoint instanceof BrowsableEndpoint) {
            BrowsableEndpoint browsableEndpoint = (BrowsableEndpoint) endpoint;
            Exchange exchange = ExchangeHelper.getExchangeById(browsableEndpoint.getExchanges(), exchangeId);
            if (exchange != null) {
                return new ExchangeResource(this, exchange);
            }
        }
        // should return 404
View Full Code Here

TOP

Related Classes of org.apache.camel.spi.BrowsableEndpoint

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.