Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Test for equality of all attributes.
if (obj == null) return false;
if (obj instanceof JmsMCFProperties)
{
JmsMCFProperties you = (JmsMCFProperties) obj;
return (Strings.compare(userName, you.getUserName()) &&
Strings.compare(password, you.getPassword()) &&
Strings.compare(providerJNDI, you.getProviderJNDI()) &&
this.type == you.type);
}
return false;
|
public java.lang.String | getClientID()Get client id, may be null.
return clientID;
|
public java.lang.String | getPassword()Get password, may be null.
return password;
|
public java.lang.String | getProviderJNDI()Get providerJNDI. May not be null.
return providerJNDI;
|
public java.lang.String | getSessionDefaultType()
if (type == JmsConnectionFactory.BOTH)
return "both";
else if (type == JmsConnectionFactory.QUEUE)
return TOPIC_TYPE;
else
return QUEUE_TYPE;
|
public int | getType()Type of the JMS Session.
return type;
|
public java.lang.String | getUserName()Get userName, may be null.
return userName;
|
public int | hashCode()Simple hashCode of all attributes.
// FIXME
String result = "" + userName + password + providerJNDI + type;
return result.hashCode();
|
public void | setClientID(java.lang.String clientID)Set client id, null by default.
this.clientID = clientID;
|
public void | setPassword(java.lang.String password)Set password, null by default.
this.password = password;
|
public void | setProviderJNDI(java.lang.String providerJNDI)Set providerJNDI, the JMS provider adapter to use.
Defaults to java:DefaultJMSProvider.
this.providerJNDI = providerJNDI;
|
public void | setSessionDefaultType(java.lang.String type)Helper method to set the default session type.
if (type.equals(QUEUE_TYPE))
this.type = JmsConnectionFactory.QUEUE;
else if(type.equals(TOPIC_TYPE))
this.type = JmsConnectionFactory.TOPIC;
else
this.type = JmsConnectionFactory.BOTH;
|
public void | setType(int type)Set the default session type.
this.type = type;
|
public void | setUserName(java.lang.String userName)Set userName, null by default.
this.userName = userName;
|