Name
EndpointAdvertisement
Synopsis
An endpoint advertisement represents a network connection available to a peer. The peer may contain a number of endpoints, each of which corresponds to a different network protocol that the peer can use (e.g., IP, HTTP, Bluetooth, etc.). Endpoint advertisements are embedded within peer advertisements (with an element name of “Endpoint”); they are normally created transparently from the user’s perspective. They contain the following fields:
-
Name The name of the endpoint
-
Keywords An optional set of keywords describing the endpoint
-
TransportAdvertisement The transport advertisement describing the endpoint
-
EndpointAddress The network address of the endpoint (e.g., IP address and port number)
-
Enabled A boolean indicating whether the endpoint is enabled
public abstract class EndpointAdvertisement extends net.jxta.document.Advertisement { // Public Constructors public EndpointAdvertisement(); // Public Class Methods public static String getAdvertisementType(); // Property Accessor Methods (by property name) public boolean isEnabled(); public void setEnabled(boolean enabled); public String getEndpointAddress(); public void setEndpointAddress(String add); public String getKeywords(); public void setKeywords(String keywords); public String getName(); public void setName(String name); public TransportAdvertisement getTransportAdvertisement(); public void setTransportAdvertisement(TransportAdvertisement transport); }
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access