|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.cics.core.connections.ConnectionParameters
public class ConnectionParameters
Immutable class representing a set of parameters to be used when establishing a connection
Nested Class Summary | |
---|---|
static class |
ConnectionParameters.AttributeValue
Utility class representing a pair of an attribute and its value. |
Constructor Summary | |
---|---|
ConnectionParameters(java.lang.String id,
java.lang.String name,
java.lang.String connectionTypeId,
ConnectionParameters.AttributeValue... avs)
Constructor |
|
ConnectionParameters(java.lang.String id,
java.lang.String name,
java.lang.String connectionTypeId,
java.util.Map<java.lang.String,java.lang.String> avs)
Constructor |
Method Summary | |
---|---|
static ConnectionParameters.AttributeValue |
av(java.lang.String attribute,
java.lang.String value)
Utility method to create an attribute value |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAttribute(java.lang.String attribute)
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
|
java.lang.String |
getConnectionTypeId()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
int |
hashCode()
|
ConnectionParameters |
setAttribute(java.lang.String attribute,
java.lang.String value)
Updates or adds one attribute leaving others unchanged |
ConnectionParameters |
setAttributes(ConnectionParameters.AttributeValue... avs)
Overwrites the set of attributes with a brand new set, and returns a new instance |
ConnectionParameters |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Overwrites the set of attributes with a brand new set, returning a new instance |
ConnectionParameters |
setId(java.lang.String id)
Returns a new ConnectionParameters instance with a new ID |
ConnectionParameters |
setName(java.lang.String name)
Sets the name of these connection parameters, returning a new instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionParameters(java.lang.String id, java.lang.String name, java.lang.String connectionTypeId, ConnectionParameters.AttributeValue... avs)
id
- system-wide unique IDname
- nameconnectionTypeId
- connection type ID the parameters are foravs
- pairs of extended attributes and valuespublic ConnectionParameters(java.lang.String id, java.lang.String name, java.lang.String connectionTypeId, java.util.Map<java.lang.String,java.lang.String> avs)
id
- system-wide unique IDname
- nameconnectionTypeId
- connection type ID the parameters are foravs
- map of extended attributes and valuesMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getId()
public ConnectionParameters setId(java.lang.String id)
id
- the new ID
public java.lang.String getConnectionTypeId()
public java.lang.String getAttribute(java.lang.String attribute)
public ConnectionParameters setAttribute(java.lang.String attribute, java.lang.String value)
attribute
- value
-
public ConnectionParameters setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
-
public ConnectionParameters setAttributes(ConnectionParameters.AttributeValue... avs)
attributes
-
public static ConnectionParameters.AttributeValue av(java.lang.String attribute, java.lang.String value)
attribute
- value
-
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ConnectionParameters setName(java.lang.String name)
name
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |