|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.msg.Address
public class Address
This object is used to specify/determine the source/destination address of a message. The Address object is quite generic and contains a primary string and a set of address attributes. The address can be anything, such as an email address or a mobile number. The underlying connection must however support the address types passed to it. For example, if the address is a mobile number then the underlying connection used to send messages must support mobile telephone numbers as source/destination addresses. An example of such would be an SMS connection. The address object contains an address String, (eg +353801234567), and attributes. The attributes vary from one messaging application to another. SMS specific attributes are discused in the Developers Guide.
Message
,
Sender
,
Receiver
,
Serialized FormConstructor Summary | |
---|---|
Address(java.lang.String addr)
The simplest form of an address is a string. |
|
Address(java.lang.String address,
Attributes attributes)
Create an address specifying its string value and address attributes. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone this address. |
Address |
copy()
|
boolean |
equals(Address a)
Compare with another address. |
boolean |
equals(java.lang.String a)
Compare with string representation. |
java.lang.String |
getAddress()
|
java.lang.Object |
getAttribute(java.lang.String name)
Get a single attribute given the attribute name. |
Attributes |
getAttributes()
Get the attributes of the address. |
void |
putAttribute(java.lang.String name,
java.lang.Object value)
Set the value of an attribute. |
java.lang.Object |
removeAttribute(java.lang.String name)
Remove an attribute as specified by the attribute name. |
void |
setAddress(java.lang.String addr)
|
java.lang.String |
toString()
Convert this address to a string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Address(java.lang.String addr)
Message
,
Sender
,
Receiver
public Address(java.lang.String address, Attributes attributes)
Message
,
Sender
,
Receiver
Method Detail |
---|
public void setAddress(java.lang.String addr)
public java.lang.String getAddress()
public java.lang.String toString()
toString
in class java.lang.Object
public Attributes getAttributes()
public java.lang.Object getAttribute(java.lang.String name)
public void putAttribute(java.lang.String name, java.lang.Object value)
public java.lang.Object removeAttribute(java.lang.String name)
public boolean equals(Address a)
public boolean equals(java.lang.String a)
public java.lang.Object clone()
clone
in class java.lang.Object
public Address copy()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |