|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.jxta.document.Advertisement
|
+--net.jxta.protocol.EndpointAdvertisement
This abstract class defines an EndpointService advertisement. Enpoint advertisements are used to represent each peer Platform endpoints. A peer can have many available endpoints. One endpoints for each configured network interfaces or protocol (IP, HTTP). The endpoint advertisement is a tag field in the peer group advertisement (see PeerGroupAdvertisement) to describe the endpoints available on the member peer of the peer group.
<?xml version="1.0"?> <EndpointAdvertisement> <Name>string</Name> <Keywords>string</Keywords> <Address>endpoint address</Address> <TransportAdvertisement>transport</TransportAdvertisement> </EndpointAdvertisement>
PeerAdvertisement,
PeerGroupAdvertisement,
TransportAdvertisement| Constructor Summary | |
EndpointAdvertisement()
|
|
| Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
java.lang.String |
getEndpointAddress()
returns the endpointaddress |
java.lang.String |
getKeywords()
returns the keywords associated with the endpoint |
java.lang.String |
getName()
returns the name of the endpoint |
TransportAdvertisement |
getTransportAdvertisement()
returns the transport advertisement associated with the endpoint |
boolean |
isEnabled()
Tells whether specific endpoint is enabled or not. |
void |
setEnabled(boolean enabled)
enable or disable this specific endpoint. |
void |
setEndpointAddress(java.lang.String add)
set the endpointaddress |
void |
setKeywords(java.lang.String keywords)
sets the keywords associated with the endpoint |
void |
setName(java.lang.String name)
sets the name of the endpoint |
void |
setTransportAdvertisement(TransportAdvertisement transport)
sets the transport advertisement |
| Methods inherited from class net.jxta.document.Advertisement |
clone, getDocument, getID |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EndpointAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public java.lang.String getName()
public void setName(java.lang.String name)
name - of the endpointpublic java.lang.String getKeywords()
public void setKeywords(java.lang.String keywords)
keywords - associated with endpointpublic TransportAdvertisement getTransportAdvertisement()
public void setTransportAdvertisement(TransportAdvertisement transport)
transport - Transport Advertisementpublic java.lang.String getEndpointAddress()
public void setEndpointAddress(java.lang.String add)
add - endpoint addresspublic void setEnabled(boolean enabled)
enabled - whether it is enabled or disabled.public boolean isEnabled()
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||