|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.document.Advertisement
net.jxta.document.ExtendableAdvertisement
net.jxta.protocol.AccessPointAdvertisement
public abstract class AccessPointAdvertisement
A short representation of the physical endpoint addresses available for a specific peer. A peer can have many physical endpoint addresses. One endpoint addresses for each configured network interfaces or protocol (IP, HTTP). The AccessPoint advertisement is a tag field in the route advertisement (see RouteAdvertisement) to describe the endpoints available on the member peer of the peer group.
PeerAdvertisement
,
PeerGroupAdvertisement
,
RouteAdvertisement
Constructor Summary | |
---|---|
AccessPointAdvertisement()
|
Method Summary | |
---|---|
void |
addEndpointAddress(String address)
add a new EndpointAddresses to the access point |
void |
addEndpointAddresses(Vector addresses)
Add a new list of EndpointAddresses to the access point |
Object |
clone()
Make a deep copy. |
boolean |
contains(EndpointAddress addr)
Check if the EndpointAddresses is already in the access point |
String |
display()
Generate a string that displays an access point information for logging or debugging purpose |
boolean |
equals(Object target)
compare if two access points are equals. |
String |
getAdvBaseType()
|
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
Enumeration |
getEndpointAddresses()
returns the list of endpoint addresses associated with this access point |
PeerID |
getPeerID()
Returns the PeerId of the associated access point. |
Vector |
getVectorEndpointAddresses()
Returns the vector of endpoint addresses associated with this access point. |
void |
removeEndpointAddresses(Vector addresses)
remove a list of EndpointAddresses from the access point |
void |
setEndpointAddresses(Vector addresses)
Sets the list of endpoint addresses associated with this access point |
void |
setPeerID(PeerID pid)
Sets the peerId of the associated access point. |
int |
size()
return number of endpoint addresses |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
getBaseAdvType, getDocument, handleElement |
Methods inherited from class net.jxta.document.Advertisement |
---|
getAdvType, getID, getIndexFields, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AccessPointAdvertisement()
Method Detail |
---|
public Object clone()
clone
in class Advertisement
public static String getAdvertisementType()
public final String getAdvBaseType()
public PeerID getPeerID()
public void setPeerID(PeerID pid)
pid
- The id of the peer.public Enumeration getEndpointAddresses()
public Vector getVectorEndpointAddresses()
String
.public void setEndpointAddresses(Vector addresses)
addresses
- vector of endpoint addresses. Warning: The vector is
specified as a vector of endpoint addresses represented as String
objects.public void addEndpointAddresses(Vector addresses)
addresses
- vector of endpoint addresses to add to the access
point. Warning: The vector is specified as a vector of endpoint
addresses represented as String objects.public void addEndpointAddress(String address)
addresses
- endpoint addresses to add to the access
point.public void removeEndpointAddresses(Vector addresses)
addresses
- vector of endpoint addresses to remove from the
access point. Warning: The vector is specified as a vector of
endpoint addresses represented as String objects.public boolean contains(EndpointAddress addr)
addr
- endpoint address to checkpublic String display()
public boolean equals(Object target)
equals
in class Object
ap
- AccessPoint advertisement
public int size()
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |