Package com.tibco.tibjms
Class TibjmsTopic
- java.lang.Object
- 
- com.tibco.tibjms.TibjmsDestination
- 
- com.tibco.tibjms.TibjmsTopic
 
 
- 
- All Implemented Interfaces:
- com.tibco.tibjms.TibjmsXMLConst,- java.io.Serializable,- java.lang.Cloneable,- Destination,- Topic,- javax.naming.Referenceable
 
 public class TibjmsTopic extends com.tibco.tibjms.TibjmsDestination implements Topic, java.io.Serializable, java.lang.Cloneable, javax.naming.Referenceable Implementation of javax.jms.Topic which can be used for administrative purposes.
 Normally EMS applications look up Topic objects via JNDI calls. This class can be used by the administrator application if it is required to store TibjmsTopic objects in the 3rd party JNDI store such as LDAP or similar.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.tibco.tibjms.TibjmsXMLConstTIBJMS_LDAP_ADMINOBJ, TIBJMS_LDAP_CN, TIBJMS_LDAP_OBJCLASS, TIBJMS_LDAP_TOP, TIBJMS_LDAP_XMLDATA, TIBJMS_XML_ADMINOBJ, TIBJMS_XML_AUTHONLY, TIBJMS_XML_AUTHORITIES, TIBJMS_XML_B64DATA, TIBJMS_XML_CERT, TIBJMS_XML_CERTS, TIBJMS_XML_CIDENTITY, TIBJMS_XML_CIPHERS, TIBJMS_XML_CLIENTID, TIBJMS_XML_CONFACT, TIBJMS_XML_CONNATTEMPTS, TIBJMS_XML_CONNATTEMPTTIMEOUT, TIBJMS_XML_CONNDELAY, TIBJMS_XML_DEBUG_TRACE, TIBJMS_XML_DESTTYPE, TIBJMS_XML_DISABLED, TIBJMS_XML_DTDURL, TIBJMS_XML_ENABLED, TIBJMS_XML_ENCODING, TIBJMS_XML_EXPECTHNAME, TIBJMS_XML_FILE, TIBJMS_XML_GENERIC, TIBJMS_XML_GENPARAMS, TIBJMS_XML_ISSUER, TIBJMS_XML_METRIC, TIBJMS_XML_MULTICAST, TIBJMS_XML_MULTICAST_DAEMON, TIBJMS_XML_NAME, TIBJMS_XML_OAUTH2_CLIENT_ID, TIBJMS_XML_OAUTH2_DISABLE_VERIFY_HOSTNAME, TIBJMS_XML_OAUTH2_EXPECTED_HOSTNAME, TIBJMS_XML_OAUTH2_SERVER_TRUST_FILE, TIBJMS_XML_OAUTH2_SERVER_URL, TIBJMS_XML_OAUTH2PARAMS, TIBJMS_XML_PARAMETER, TIBJMS_XML_PASSWORD, TIBJMS_XML_PKEY, TIBJMS_XML_QUEUE, TIBJMS_XML_RECONNATTEMPTS, TIBJMS_XML_RECONNATTEMPTTIMEOUT, TIBJMS_XML_RECONNDELAY, TIBJMS_XML_SECPARAMS, TIBJMS_XML_SSLPARAMS, TIBJMS_XML_TOPIC, TIBJMS_XML_TRACE, TIBJMS_XML_TRUSTED, TIBJMS_XML_URL, TIBJMS_XML_USERNAME, TIBJMS_XML_VALUE, TIBJMS_XML_VENDOR, TIBJMS_XML_VERIFYHNAME, TIBJMS_XML_VERIFYHOST, TIBJMS_XML_XA
 
- 
 - 
Constructor SummaryConstructors Constructor Description TibjmsTopic()Constructs a new TibjmsTopic object.TibjmsTopic(java.lang.String address)Constructs a new TibjmsTopic object with the given address.TibjmsTopic(java.lang.String address, java.lang.String jndiName)Internal constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanequals(java.lang.Object obj)java.lang.StringgetAddress()Gets the address of this topic.javax.naming.ReferencegetReference()java.lang.StringgetTopicName()Gets the name of this topic.voidsetAddress(java.lang.String address)Sets the address of this topic.java.lang.StringtoString()Returns a string representation of this object.
 
- 
- 
- 
Constructor Detail- 
TibjmsTopicpublic TibjmsTopic() Constructs a new TibjmsTopic object.
 - 
TibjmsTopicpublic TibjmsTopic(java.lang.String address) Constructs a new TibjmsTopic object with the given address.- Parameters:
- address- address of the topic
 
 - 
TibjmsTopicpublic TibjmsTopic(java.lang.String address, java.lang.String jndiName)Internal constructor.
 
- 
 - 
Method Detail- 
clonepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
- clonein class- com.tibco.tibjms.TibjmsDestination
- Throws:
- java.lang.CloneNotSupportedException
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- com.tibco.tibjms.TibjmsDestination
 
 - 
getTopicNamepublic java.lang.String getTopicName() throws JMSExceptionDescription copied from interface:TopicGets the name of this topic.Clients that depend upon the name are not portable. - Specified by:
- getTopicNamein interface- Topic
- Returns:
- the topic name
- Throws:
- JMSException- if the Jakarta Messaging provider implementation of- Topicfails to return the topic name due to some internal error.
 
 - 
toStringpublic java.lang.String toString() Description copied from interface:TopicReturns a string representation of this object.
 - 
getReferencepublic javax.naming.Reference getReference() throws javax.naming.NamingException- Specified by:
- getReferencein interface- javax.naming.Referenceable
- Throws:
- javax.naming.NamingException
 
 - 
getAddresspublic java.lang.String getAddress() Gets the address of this topic. Address and name are synonyms.- Overrides:
- getAddressin class- com.tibco.tibjms.TibjmsDestination
- Returns:
- the topic's address
 
 - 
setAddresspublic void setAddress(java.lang.String address) throws JMSExceptionSets the address of this topic. Address and name are synonyms.
 Example:
 TibjmsTopic topic = new TibjmsTopic();
 topic.setAddress("topic.sample");- Overrides:
- setAddressin class- com.tibco.tibjms.TibjmsDestination
- Parameters:
- address- the string representing the address, or name, of this topic
- Throws:
- JMSException- if the address has already been set
 
 
- 
 
-