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


     * <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

        // wait a sec
        Thread.sleep(1000);

        // it should end up in the valid and finally queue
        BrowsableEndpoint bev = context.getEndpoint("jms:queue:valid", BrowsableEndpoint.class);
        assertEquals(1, bev.getExchanges().size());

        BrowsableEndpoint beiv = context.getEndpoint("jms:queue:invalid", BrowsableEndpoint.class);
        assertEquals(0, beiv.getExchanges().size());

        BrowsableEndpoint bef = context.getEndpoint("jms:queue:finally", BrowsableEndpoint.class);
        assertEquals(1, bef.getExchanges().size());
    }
View Full Code Here

        // wait a sec
        Thread.sleep(1000);

        // it should end up in the invalid and finally queue
        BrowsableEndpoint bev = context.getEndpoint("jms:queue:valid", BrowsableEndpoint.class);
        assertEquals(0, bev.getExchanges().size());

        BrowsableEndpoint beiv = context.getEndpoint("jms:queue:invalid", BrowsableEndpoint.class);
        assertEquals(1, beiv.getExchanges().size());

        BrowsableEndpoint bef = context.getEndpoint("jms:queue:finally", BrowsableEndpoint.class);
        assertEquals(1, bef.getExchanges().size());
    }
View Full Code Here

        // wait a sec
        Thread.sleep(1000);

        // it should end up in the valid and finally queue
        BrowsableEndpoint bev = context.getEndpoint("jms:queue:valid", BrowsableEndpoint.class);
        assertEquals(1, bev.getExchanges().size());

        BrowsableEndpoint beiv = context.getEndpoint("jms:queue:invalid", BrowsableEndpoint.class);
        assertEquals(0, beiv.getExchanges().size());

        BrowsableEndpoint bef = context.getEndpoint("jms:queue:finally", BrowsableEndpoint.class);
        assertEquals(1, bef.getExchanges().size());
    }
View Full Code Here

        // wait a sec
        Thread.sleep(1000);

        // it should end up in the invalid and finally queue
        BrowsableEndpoint bev = context.getEndpoint("jms:queue:valid", BrowsableEndpoint.class);
        assertEquals(0, bev.getExchanges().size());

        BrowsableEndpoint beiv = context.getEndpoint("jms:queue:invalid", BrowsableEndpoint.class);
        assertEquals(1, beiv.getExchanges().size());

        BrowsableEndpoint bef = context.getEndpoint("jms:queue:finally", BrowsableEndpoint.class);
        assertEquals(1, bef.getExchanges().size());
    }
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.