|
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.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 implemenation to support the different types of transport advertisements (TCP, HTTP, etc)
<?xml version="1.0"?>
<TransportAdvertisement type="HTTPAdvertisement">
..........
</TransportAdvertisement>
EndpointAdvertisement| Field Summary | |
protected java.lang.String |
protocol
|
| Constructor Summary | |
TransportAdvertisement()
|
|
| Method Summary | |
static java.lang.String |
getAdvertisementType()
returns the advertisement type |
ID |
getID()
Return ID for indexing. |
java.lang.String |
getProtocol()
returns the protocol supported by this transport |
void |
setProtocol(java.lang.String protocol)
set the protocol to be used for this transport |
| Methods inherited from class net.jxta.document.Advertisement |
clone, getDocument |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String protocol
| Constructor Detail |
public TransportAdvertisement()
| Method Detail |
public static java.lang.String getAdvertisementType()
public ID getID()
getID in class Advertisementpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||