|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opencloud.slee.resources.mm7.MM7Address com.opencloud.slee.resources.mm7.Recipient
public final class Recipient
Specialization of MM7Address that adds a recipient type.
Nested Class Summary | |
---|---|
static class |
Recipient.Type
Enum of recipient types. |
Nested classes/interfaces inherited from class com.opencloud.slee.resources.mm7.MM7Address |
---|
MM7Address.AddressCoding |
Constructor Summary | |
---|---|
Recipient(java.io.DataInput in)
Create a new recipient from a stream. |
|
Recipient(Recipient.Type type,
javax.slee.Address address)
Create a new recipient. |
|
Recipient(Recipient.Type type,
javax.slee.Address address,
boolean displayOnly)
Create a new recipient. |
|
Recipient(Recipient.Type type,
javax.slee.Address address,
boolean displayOnly,
MM7Address.AddressCoding addressCoding,
java.lang.String id)
Create a new recipient. |
|
Recipient(Recipient.Type type,
MM7Address address)
Create a new recipient. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
void |
fromStream(java.io.DataInput in)
|
Recipient.Type |
getType()
Get the recipient type of this recipient. |
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 |
---|
public Recipient(Recipient.Type type, javax.slee.Address address)
false
.
type
- the type of the recipient.address
- the address of the recipient.public Recipient(Recipient.Type type, MM7Address address)
type
- the type of the recipient.address
- the address of the recipient.public Recipient(Recipient.Type type, javax.slee.Address address, boolean displayOnly)
type
- the type of the recipient.address
- the address of the recipient.displayOnly
- flag indicating whether the recipient is only for
display purposes or is a routable address.public Recipient(Recipient.Type type, javax.slee.Address address, boolean displayOnly, MM7Address.AddressCoding addressCoding, java.lang.String id)
type
- the type of the recipient.address
- the address of the recipient.displayOnly
- the value of the display-only flagaddressCoding
- the value of the address coding, or null
if inapplicableid
- the value of id of the address, or null if inapplicabledisplayOnly
- flag indicating whether the recipient is only for
display purposes or is a routable address.
public Recipient(java.io.DataInput in) throws java.io.IOException
in
- the stream to read from
java.io.IOException
- if reading failsMethod Detail |
---|
public Recipient.Type getType()
Recipient.Type
singleton enumpublic void toStream(java.io.DataOutput out) throws java.io.IOException
toStream
in class MM7Address
java.io.IOException
public void fromStream(java.io.DataInput in) throws java.io.IOException
fromStream
in class MM7Address
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class MM7Address
public java.lang.String toString()
toString
in class MM7Address
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class MM7Address
java.lang.CloneNotSupportedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |