org.apache.qpid.client
Class AMQAnyDestination

java.lang.Object
  extended by org.apache.qpid.client.AMQDestination
      extended by org.apache.qpid.client.AMQAnyDestination
All Implemented Interfaces:
Destination, Queue, Topic, Referenceable

public class AMQAnyDestination
extends AMQDestination
implements Queue, Topic

In order to support JMS 1.0 the Qpid implementation maps the direct exchange to JMS Queue and topic exchange to JMS Topic. The JMS 1.1 spec provides a javax.Destination as an abstraction to represent any type of destination. The abstract class AMQDestination has most of the functionality to support any destination defined in AMQP 0-10 spec.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.client.AMQDestination
AMQDestination.AddressOption, AMQDestination.Binding, AMQDestination.DestSyntax
 
Field Summary
 
Fields inherited from class org.apache.qpid.client.AMQDestination
_address, _addressType, _addrHelper, _assert, _create, _delete, _destSyntax, _exchangeClass, _exchangeName, _isAutoDelete, _isDurable, _isExclusive, _link, _name, _sourceNode, _subject, _targetLink, _targetNode, defaultDestSyntax, QUEUE_TYPE, TOPIC_TYPE, UNKNOWN_TYPE
 
Constructor Summary
AMQAnyDestination(org.apache.qpid.messaging.Address addr)
           
AMQAnyDestination(org.apache.qpid.framing.AMQShortString exchangeName, org.apache.qpid.framing.AMQShortString exchangeClass, org.apache.qpid.framing.AMQShortString routingKey, boolean isExclusive, boolean isAutoDelete, org.apache.qpid.framing.AMQShortString queueName, boolean isDurable, org.apache.qpid.framing.AMQShortString[] bindingKeys)
           
AMQAnyDestination(org.apache.qpid.url.BindingURL binding)
           
AMQAnyDestination(String str)
           
 
Method Summary
 String getTopicName()
           
 boolean isNameRequired()
           
 
Methods inherited from class org.apache.qpid.client.AMQDestination
copyDestination, createDestination, createDestination, createDestination, equals, getAddress, getAddressName, getAddressType, getAMQQueueName, getAssert, getBindingKeys, getCreate, getDefaultDestSyntax, getDelete, getDestSyntax, getDestType, getEncodedName, getExchangeClass, getExchangeName, getInfoFromBindingURL, getLink, getQueueName, getReference, getRoutingKey, getSourceNode, getSubject, getTargetNode, hashCode, isAddressResolved, isAutoDelete, isBrowseOnly, isCheckedForQueueBinding, isDurable, isExchangeExistsChecked, isExclusive, isQueue, isTopic, rebuildTargetAndSourceNodes, setAddress, setAddressName, setAddressResolved, setAddressType, setAssert, setAutoDelete, setBrowseOnly, setCheckedForQueueBinding, setCreate, setDelete, setDestSyntax, setDurable, setExchangeClass, setExchangeExistsChecked, setExchangeName, setLink, setQueueName, setRoutingKey, setSourceNode, setSubject, setTargetNode, stripSyntaxPrefix, toByteEncoding, toString, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Queue
getQueueName, toString
 
Methods inherited from interface javax.jms.Topic
toString
 

Constructor Detail

AMQAnyDestination

public AMQAnyDestination(org.apache.qpid.url.BindingURL binding)

AMQAnyDestination

public AMQAnyDestination(String str)
                  throws URISyntaxException
Throws:
URISyntaxException

AMQAnyDestination

public AMQAnyDestination(org.apache.qpid.messaging.Address addr)
                  throws Exception
Throws:
Exception

AMQAnyDestination

public AMQAnyDestination(org.apache.qpid.framing.AMQShortString exchangeName,
                         org.apache.qpid.framing.AMQShortString exchangeClass,
                         org.apache.qpid.framing.AMQShortString routingKey,
                         boolean isExclusive,
                         boolean isAutoDelete,
                         org.apache.qpid.framing.AMQShortString queueName,
                         boolean isDurable,
                         org.apache.qpid.framing.AMQShortString[] bindingKeys)
Method Detail

isNameRequired

public boolean isNameRequired()
Specified by:
isNameRequired in class AMQDestination

getTopicName

public String getTopicName()
                    throws JMSException
Specified by:
getTopicName in interface Topic
Throws:
JMSException


Licensed to the Apache Software Foundation