Project JXTA

net.jxta.protocol
Class TransportAdvertisement

java.lang.Object
  |
  +--net.jxta.document.Advertisement
        |
        +--net.jxta.protocol.TransportAdvertisement

public abstract class TransportAdvertisement
extends Advertisement

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 :

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>

Since:
JXTA 1.0
Version:
$Revision: 1.11 $
See Also:
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

protocol

protected java.lang.String protocol
Constructor Detail

TransportAdvertisement

public TransportAdvertisement()
Method Detail

getAdvertisementType

public static java.lang.String getAdvertisementType()
returns the advertisement type
Returns:
String type of the advertisement
Since:
JXTA 1.0

getID

public ID getID()
Return ID for indexing. We dont have one so return the nullID.
Overrides:
getID in class Advertisement
Returns:
jxta id associated with this advertisement.

getProtocol

public java.lang.String getProtocol()
returns the protocol supported by this transport
Returns:
string protocol
Since:
JXTA 1.0

setProtocol

public void setProtocol(java.lang.String protocol)
set the protocol to be used for this transport
Returns:
string protocol
Since:
JXTA 1.0

Project JXTA