ie.nuigalway.ecrg.jade.jmsmtp.common
Class JMSAddress

java.lang.Object
  |
  +--ie.nuigalway.ecrg.jade.jmsmtp.common.JMSAddress
All Implemented Interfaces:
jade.mtp.TransportAddress

public class JMSAddress
extends java.lang.Object
implements jade.mtp.TransportAddress


Field Summary
private  java.lang.String brokerURL
           
private static char DELIM
           
private static org.apache.log4j.Category log
           
private  java.lang.String msgPersistence
           
private  java.lang.String msgType
           
private  java.lang.String password
           
private  java.lang.String protocol
           
private  java.lang.String providerType
           
private  java.lang.String queueName
           
private  java.lang.String username
           
 
Constructor Summary
JMSAddress()
          Creates a new JMSAddress object.
JMSAddress(java.lang.String addy)
          Creates a new JMSAddress object.
 
Method Summary
 java.lang.String getAnchor()
          Not used in Address
 java.lang.String getBrokerURL()
          URL Connection information of Broker
 java.lang.String getFile()
          Not used in Address
 java.lang.String getHost()
          Hostname of the broker for this address
 java.lang.String getMsgPersistence()
          Message Persistence setting of this address
 java.lang.String getMsgType()
          Message Type used by this address XML or MapMessage
 java.lang.String getPassword()
          Password used to access broker/queue (Optional)
 java.lang.String getPort()
          Not used in Address
 java.lang.String getProto()
          Protocol used by this Address
 java.lang.String getProviderType()
          Returns the JMS Provider used by this address
 java.lang.String getQueueName()
          Queue releated to this Address
 java.lang.String getString()
          Return a String repsentation of this JMSAddress
 java.lang.String getUsername()
          Username to access the boker/queue (Optional)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protocol

private java.lang.String protocol

providerType

private java.lang.String providerType

msgType

private java.lang.String msgType

msgPersistence

private java.lang.String msgPersistence

username

private java.lang.String username

password

private java.lang.String password

brokerURL

private java.lang.String brokerURL

queueName

private java.lang.String queueName

log

private static org.apache.log4j.Category log

DELIM

private static char DELIM
Constructor Detail

JMSAddress

public JMSAddress(java.lang.String addy)
           throws jade.mtp.MTPException
Creates a new JMSAddress object.

Parameters:
addy - A specific Address
Throws:
jade.mtp.MTPException - Description of the Exception

JMSAddress

public JMSAddress()
           throws jade.mtp.MTPException
Creates a new JMSAddress object.

Throws:
jade.mtp.MTPException - Description of the Exception
Method Detail

getString

public java.lang.String getString()
Return a String repsentation of this JMSAddress

Returns:
String representation of a JMSAddress

getProviderType

public java.lang.String getProviderType()
Returns the JMS Provider used by this address

Returns:
JMS Provider for this Address

getMsgType

public java.lang.String getMsgType()
Message Type used by this address XML or MapMessage

Returns:
Message Type used by this Address

getMsgPersistence

public java.lang.String getMsgPersistence()
Message Persistence setting of this address

Returns:
Setting of this Address

getUsername

public java.lang.String getUsername()
Username to access the boker/queue (Optional)

Returns:
Usename of this Address

getPassword

public java.lang.String getPassword()
Password used to access broker/queue (Optional)

Returns:
Password of this Address

getBrokerURL

public java.lang.String getBrokerURL()
URL Connection information of Broker

Returns:
BrokerURL for this Address

getQueueName

public java.lang.String getQueueName()
Queue releated to this Address

Returns:
queue to listen or send to

getProto

public java.lang.String getProto()
Protocol used by this Address

Specified by:
getProto in interface jade.mtp.TransportAddress
Returns:
protocol of this address

getHost

public java.lang.String getHost()
Hostname of the broker for this address

Specified by:
getHost in interface jade.mtp.TransportAddress
Returns:
Brokers host name

getPort

public java.lang.String getPort()
Not used in Address

Specified by:
getPort in interface jade.mtp.TransportAddress
Returns:
null

getFile

public java.lang.String getFile()
Not used in Address

Specified by:
getFile in interface jade.mtp.TransportAddress
Returns:
null

getAnchor

public java.lang.String getAnchor()
Not used in Address

Specified by:
getAnchor in interface jade.mtp.TransportAddress
Returns:
null