Package org.apache.qpid.messaging

Examples of org.apache.qpid.messaging.Address


         {         
             return createDestination(new AMQBindingURL(str));        
         }
         else
         {
             Address address = createAddressFromString(str);
             return new AMQAnyDestination(address);
         }
    }
View Full Code Here


     
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.topic",
                    dest.getAddressName(),"a.#", null));
       
        Address a = Address.parse(headersBinding);
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.match",
                    dest.getAddressName(),null, a.getOptions()));
    }
View Full Code Here

    private Destination createDestination() throws Exception
    {
        if (config.isUseUniqueDests())
        {
            _logger.debug("Prefix : " + prefix);
            Address addr = Address.parse(config.getAddress());
            AMQDestination temp = (AMQDestination) AMQDestination.createDestination(config.getAddress());
            int type = ((AMQSession_0_10)session).resolveAddressType(temp);

            if ( type == AMQDestination.TOPIC_TYPE)
            {
                addr = new Address(addr.getName(),addr.getSubject() + "." + prefix,addr.getOptions());
                System.out.println("Setting subject : " + addr);
            }
            else
            {
                addr = new Address(addr.getName() + "_" + prefix,addr.getSubject(),addr.getOptions());
                System.out.println("Setting name : " + addr);
            }

            return AMQDestination.createDestination(addr.toString());
        }
        else
        {
            return AMQDestination.createDestination(config.getAddress());
        }
View Full Code Here

public class AddressHelperTest extends QpidTestCase
{
    public void testAddressOptions() throws Exception
    {
        Address addr = Address.parse("queue/test;{create:sender, assert:always, delete:receiver, mode:browse}");
        AddressHelper helper = new AddressHelper(addr);
        assertEquals(AddressOption.SENDER,AddressOption.getOption(helper.getCreate()));
        assertEquals(AddressOption.ALWAYS,AddressOption.getOption(helper.getAssert()));
        assertEquals(AddressOption.RECEIVER,AddressOption.getOption(helper.getDelete()));
        assertTrue("'mode' option wasn't read properly",helper.isBrowseOnly());
View Full Code Here

        assertTrue("'mode' option wasn't read properly",helper.isBrowseOnly());
    }

    public void testNodeProperties() throws Exception
    {
        Address addr = Address.parse("my-queue;{" +
                "node: " +
                "{" +
                     "type: queue ," +
                     "durable: true ," +
                     "x-declare: " +
View Full Code Here

        }
    }

    public void testLinkProperties() throws Exception
    {
        Address addr = Address.parse("my-queue;{" +
                "link: " +
                "{" +
                     "name: my-queue ," +
                     "durable: true ," +
                     "reliability: at-least-once," +
View Full Code Here

     
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.topic",
                    dest.getAddressName(),"a.#", null));
       
        Address a = Address.parse(headersBinding);
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.match",
                    dest.getAddressName(),null, a.getOptions()));
    }
View Full Code Here

     
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.topic",
                    dest.getAddressName(),"a.#", null));
       
        Address a = Address.parse(headersBinding);
        assertTrue("Queue not bound as expected",(
                (AMQSession_0_10)jmsSession).isQueueBound("amq.match",
                    dest.getAddressName(),null, a.getOptions()));
    }
View Full Code Here

         {
             return createDestination(new AMQBindingURL(str));
         }
         else
         {
             Address address = createAddressFromString(str);
             return new AMQAnyDestination(address);
         }
    }
View Full Code Here

         {         
             return createDestination(new AMQBindingURL(str));        
         }
         else
         {
             Address address = createAddressFromString(str);
             return new AMQAnyDestination(address);
         }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.messaging.Address

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.