|
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.TransportAdvertisement
public abstract class TransportAdvertisement
This abstract class defines a Transport advertisement. Each peer endpoint protocol is associated with a transport advertisement that describes the protocol and network interface associated with the endpoint transport. For example for TCP endpoint. the following transport information needs to be maintained for this endpoint:
Transport :
Protocol : TCP
Port : 6001
MulticastAddr : 224.0.1.85
MulticastPort : 1234
MulticastSize : 8192
This class is an abstract class that needs to be extended by implementation to support the different types of transport advertisements (TCP, HTTP, etc)
<?xml version="1.0"?> <TransportAdvertisement type="HTTPAdvertisement"> .......... </TransportAdvertisement>
AccessPointAdvertisement
Field Summary | |
---|---|
protected String |
protocol
|
Constructor Summary | |
---|---|
TransportAdvertisement()
|
Method Summary | |
---|---|
static String |
getAdvertisementType()
Returns the identifying type of this Advertisement. |
String |
getBaseAdvType()
Returns the base type of this advertisement hierarchy. |
ID |
getID()
Return ID for indexing. |
String |
getProtocol()
Sets the URI scheme to be used for EndpointAddresses of this Message Transport. |
void |
setProtocol(String protocol)
Returns the URI scheme to be used for EndpointAddresses of this Message Transport. |
Methods inherited from class net.jxta.document.ExtendableAdvertisement |
---|
getDocument, handleAttribute, handleElement |
Methods inherited from class net.jxta.document.Advertisement |
---|
clone, getAdvType, getIndexFields, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String protocol
Constructor Detail |
---|
public TransportAdvertisement()
Method Detail |
---|
public static String getAdvertisementType()
public final String getBaseAdvType()
final
.
getBaseAdvType
in class ExtendableAdvertisement
public ID getID()
getID
in class Advertisement
public String getProtocol()
public void setProtocol(String protocol)
protocol
- The URI scheme used for EndpointAddresses of this Message Transport.
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |