Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (obj == null) return false;
if (obj instanceof JmsConnectionRequestInfo)
{
JmsConnectionRequestInfo you = (JmsConnectionRequestInfo) obj;
return (this.transacted == you.isTransacted() &&
this.acknowledgeMode == you.getAcknowledgeMode() &&
this.type == you.getType() &&
Strings.compare(userName, you.getUserName()) &&
Strings.compare(password, you.getPassword()) &&
Strings.compare(clientID, you.getClientID()));
}
else
return false;
|
public int | getAcknowledgeMode()
return acknowledgeMode;
|
public java.lang.String | getClientID()
return clientID;
|
public java.lang.String | getPassword()
return password;
|
public int | getType()
return type;
|
public java.lang.String | getUserName()
return userName;
|
public int | hashCode()
int hashCode = 0;
if (transacted)
hashCode += 1;
if (type == JmsConnectionFactory.QUEUE)
hashCode += 3;
else if (type == JmsConnectionFactory.TOPIC)
hashCode += 5;
if (acknowledgeMode == Session.AUTO_ACKNOWLEDGE)
hashCode += 7;
else if (acknowledgeMode == Session.DUPS_OK_ACKNOWLEDGE)
hashCode += 11;
if (userName != null)
hashCode += userName.hashCode();
if (password != null)
hashCode += password.hashCode();
if (clientID != null)
hashCode += clientID.hashCode();
return hashCode;
|
public boolean | isTransacted()
return transacted;
|
public void | setClientID(java.lang.String clientID)
this.clientID = clientID;
|
public void | setDefaults(JmsMCFProperties prop)Fill in default values if missing. Only applies to user and password.
if (userName == null)
userName = prop.getUserName();//May be null there to
if (password == null)
password = prop.getPassword();//May be null there to
if (clientID == null)
clientID = prop.getClientID();//May be null there to
|
public void | setPassword(java.lang.String password)
this.password = password;
|
public void | setUserName(java.lang.String name)
userName = name;
|