|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.ont.fipa.fipaman.MTPDescription
Message Transport Protocol Description
TODO: there is at present to checking to see if the characters in the fields are valid as per the BNF definitions
Constructor Summary | |
MTPDescription()
Constructor |
|
MTPDescription(java.lang.String description)
Constructor - given a String representation of the Message Transport Description a mtpdescription will vce constructed from it. |
|
MTPDescription(java.lang.String profile,
java.lang.String mtp_name,
java.util.List addresses)
This constructor creates a MTPDescription with the specified profile, mtp-name and addresses. |
Method Summary | |
boolean |
addAddress(URL address)
add an address to the list of addresses |
java.util.List |
getAddresses()
Get the list of addresses |
java.lang.String |
getMTPName()
get the message transport name |
java.lang.String |
getProfile()
get the profile |
static void |
main(java.lang.String[] args)
This is for testing purposes. |
boolean |
removeAddress(URL address)
remove an address from the list of addresses |
void |
setAddresses(java.util.List addresses)
Set the list of addresses |
void |
setMTPName(java.lang.String mtp)
Sets the message transport name |
void |
setProfile(java.lang.String profile)
Sets the profile |
java.lang.String |
toString()
this object as a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MTPDescription(java.lang.String profile, java.lang.String mtp_name, java.util.List addresses)
profile
- name of the FIPA transport profilemtp_name
- FIPA name of the MTP being supportedaddresses
- a list of the transport addresses of this MTPpublic MTPDescription()
public MTPDescription(java.lang.String description) throws ParserException
description
- String representation of the Message Transport DescriptionParserException
- if the string is not validMethod Detail |
public void setProfile(java.lang.String profile)
profile
- the profilepublic void setMTPName(java.lang.String mtp)
mtp
- the message transport namepublic void setAddresses(java.util.List addresses)
addresses
- a list of addressespublic boolean addAddress(URL address)
address
- the address to be addedpublic java.lang.String getProfile()
public java.lang.String getMTPName()
public java.util.List getAddresses()
public boolean removeAddress(URL address)
address
- the address to be removedpublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |