Examples of BindingImpl


Examples of org.apache.axis2.jaxws.binding.BindingImpl

     * Gets the right handlers for the port/service/bindings and performs injection.
     */
    protected void configureHandlers() throws Exception {
        EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(this.service);
        if (desc == null) {
            this.binding = new BindingImpl("");
        } else {
            String xml = this.portInfo.getHandlersAsXML();
            HandlerChainsType handlerChains = null;
            if (xml != null) {
                ByteArrayInputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
View Full Code Here

Examples of org.apache.axis2.jaxws.binding.BindingImpl

     * Gets the right handlers for the port/service/bindings and performs injection.
     */
    protected void configureHandlers() throws Exception {
        EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(this.service);
        if (desc == null) {
            this.binding = new BindingImpl("");
        } else {
            String xml = this.portInfo.getHandlersAsXML();
            HandlerChainsType handlerChains = null;
            if (xml != null) {
                ByteArrayInputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
View Full Code Here

Examples of org.apache.cxf.jaxws.binding.BindingImpl

        if (getBinding() instanceof SoapBinding) {
            binding = new SOAPBindingImpl(getEndpointInfo().getBinding());
        } else if (getBinding() instanceof XMLBinding) {
            binding = new HTTPBindingImpl(getEndpointInfo().getBinding());
        } else {
            binding = new BindingImpl();
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl

                        _exchange.isBound(_routingKey));
        assertTrue("Queue was not bound to key",
                    _exchange.isBound(_routingKey,_queue));
        assertEquals("Exchange binding count", 1,
                     _queue.getBindings().size());
        final BindingImpl firstBinding = _queue.getBindings().iterator().next();
        assertEquals("Wrong exchange bound", _routingKey,
                     firstBinding.getBindingKey());
        assertEquals("Wrong exchange bound", _exchange,
                     firstBinding.getExchange());

        _exchange.deleteBinding(_routingKey, _queue);
        assertFalse("Routing key was still bound",
                _exchange.isBound(_routingKey));
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl

    }

    public void testNoRoute() throws Exception
    {
        AMQQueue<?> queue = createQueue("a*#b");
        _exchange.registerQueue(new BindingImpl(null, "a.*.#.b",queue, _exchange, null));


        routeMessage("a.b", 0l);

        Assert.assertEquals(0, queue.getQueueDepthMessages());
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl

    }

    public void testDirectMatch() throws Exception
    {
        AMQQueue<?> queue = createQueue("ab");
        _exchange.registerQueue(new BindingImpl(null, "a.b",queue, _exchange, null));


        routeMessage("a.b",0l);

        Assert.assertEquals(1, queue.getQueueDepthMessages());
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl


    public void testStarMatch() throws Exception
    {
        AMQQueue<?> queue = createQueue("a*");
        _exchange.registerQueue(new BindingImpl(null, "a.*",queue, _exchange, null));


        routeMessage("a.b",0l);

        Assert.assertEquals(1, queue.getQueueDepthMessages());
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl

    }

    public void testHashMatch() throws Exception
    {
        AMQQueue<?> queue = createQueue("a#");
        _exchange.registerQueue(new BindingImpl(null, "a.#",queue, _exchange, null));


        routeMessage("a.b.c",0l);

        Assert.assertEquals(1, queue.getQueueDepthMessages());
View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl


    public void testMidHash() throws Exception
    {
        AMQQueue<?> queue = createQueue("a");
        _exchange.registerQueue(new BindingImpl(null, "a.*.#.b",queue, _exchange, null));

        routeMessage("a.c.d.b",0l);

        Assert.assertEquals(1, queue.getQueueDepthMessages());

View Full Code Here

Examples of org.apache.qpid.server.binding.BindingImpl

    }

    public void testMatchAfterHash() throws Exception
    {
        AMQQueue<?> queue = createQueue("a#");
        _exchange.registerQueue(new BindingImpl(null, "a.*.#.b.c",queue, _exchange, null));


        int queueCount = routeMessage("a.c.b.b",0l);
        Assert.assertEquals("Message should not route to any queues", 0, queueCount);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.