com.opencloud.slee.resources.mm7
Class UserAgentInfo

java.lang.Object
  extended by com.opencloud.slee.resources.mm7.MM7Address
      extended by com.opencloud.slee.resources.mm7.UserAgentInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class UserAgentInfo
extends MM7Address

Represents User Agent Info. Consists of a MM7Address plus a sequence positive integer which indicates sequence of User Agents that previously forwarded the MM.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.opencloud.slee.resources.mm7.MM7Address
MM7Address.AddressCoding
 
Constructor Summary
UserAgentInfo(javax.slee.Address address)
          Construct a new instance of UserAgentInfo.
UserAgentInfo(javax.slee.Address address, boolean displayOnly, MM7Address.AddressCoding addressCoding, java.lang.String id, java.lang.Integer sequence)
          Construct a new instance of UserAgentInfo.
UserAgentInfo(MM7Address address)
          Construct a new instance of UserAgentInfo.
UserAgentInfo(MM7Address address, java.lang.Integer sequence)
          Construct a new instance of UserAgentInfo.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 void fromStream(java.io.DataInput in)
           
 java.lang.Integer getSequence()
          Get the sequence number of this User Agent in forwarding chain of User Agents
 void toStream(java.io.DataOutput out)
           
 java.lang.String toString()
           
 
Methods inherited from class com.opencloud.slee.resources.mm7.MM7Address
getAddress, getAddressCoding, getID, hashCode, isDisplayOnly
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAgentInfo

public UserAgentInfo(javax.slee.Address address)
Construct a new instance of UserAgentInfo.

Parameters:
address - the underling Address

UserAgentInfo

public UserAgentInfo(MM7Address address)
Construct a new instance of UserAgentInfo.

Parameters:
address - the underling MM7Address

UserAgentInfo

public UserAgentInfo(MM7Address address,
                     java.lang.Integer sequence)
Construct a new instance of UserAgentInfo.

Parameters:
address - the underling MM7Address
sequence - the sequence number of this User Agent in forwarding chain of User Agents
Throws:
java.lang.IllegalArgumentException - if sequence number is not a positive integer (positive integer is > 0)

UserAgentInfo

public UserAgentInfo(javax.slee.Address address,
                     boolean displayOnly,
                     MM7Address.AddressCoding addressCoding,
                     java.lang.String id,
                     java.lang.Integer sequence)
Construct a new instance of UserAgentInfo.

Parameters:
address - the underling MM7Address
displayOnly - the value of the display-only flag
addressCoding - the value of the address coding, or null if inapplicable
id - the value of id of the address, or null if inapplicable
sequence - the sequence number of this User Agent in forwarding chain of User Agents
Throws:
java.lang.IllegalArgumentException - if sequence number is not a positive integer (positive integer is > 0)
Method Detail

getSequence

public java.lang.Integer getSequence()
Get the sequence number of this User Agent in forwarding chain of User Agents

Returns:
the sequence number

toStream

public void toStream(java.io.DataOutput out)
              throws java.io.IOException
Overrides:
toStream in class MM7Address
Throws:
java.io.IOException

fromStream

public void fromStream(java.io.DataInput in)
                throws java.io.IOException
Overrides:
fromStream in class MM7Address
Throws:
java.io.IOException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class MM7Address

toString

public java.lang.String toString()
Overrides:
toString in class MM7Address

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class MM7Address
Throws:
java.lang.CloneNotSupportedException