com.sun.enterprise.connectors.jms.system
Class MQUrl

java.lang.Object
  extended by com.sun.enterprise.connectors.jms.system.MQUrl

public class MQUrl
extends java.lang.Object

Represents one of the MQ address list elements.

Author:
Binod P.G

Constructor Summary
MQUrl(java.lang.String id)
          Constructs the MQUrl with the id.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Two MQUrls are identified by their id (name).
 int hashCode()
          Hashcode of MQurl is the same as the Hashcode of its name.
 void setHost(java.lang.String host)
          Sets the host name of the Url.
 void setPort(java.lang.String port)
          Sets the port number of the Url.
 void setScheme(java.lang.String scheme)
          Sets the Scheme of MQ connection for this Url.
 void setService(java.lang.String service)
          Sets the type of service offered by MQ broker.
 java.lang.String toString()
          String representation of the Url.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MQUrl

public MQUrl(java.lang.String id)
Constructs the MQUrl with the id. Id is actually the name of JmsHost element in the domain.xml.

Parameters:
id - Logical name of the MQUrl
Method Detail

setHost

public void setHost(java.lang.String host)
Sets the host name of the Url.

Parameters:
host - Host Name of the Url.

setPort

public void setPort(java.lang.String port)
Sets the port number of the Url.

Parameters:
port - Port number of the Url.

setScheme

public void setScheme(java.lang.String scheme)
Sets the Scheme of MQ connection for this Url. Eg> mq, mtcp, mqssl ...

Parameters:
scheme - scheme of the connection.

setService

public void setService(java.lang.String service)
Sets the type of service offered by MQ broker. Eg> jms, jmsssl etc.

Parameters:
service - Name of service.

toString

public java.lang.String toString()
String representation of the Url. i.e> scheme://host:port/service Eg> mq://javasoft12:7676/jmsssl

Overrides:
toString in class java.lang.Object
Returns:
String representation of Url.

equals

public boolean equals(java.lang.Object obj)
Two MQUrls are identified by their id (name).

Overrides:
equals in class java.lang.Object
Parameters:
obj - another MQUrl object.
Returns:
a boolean indicating whether MQUrls are equal.

hashCode

public int hashCode()
Hashcode of MQurl is the same as the Hashcode of its name.

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode of MQUrl


Copyright © 2012 GlassFish Community. All Rights Reserved.