Project JXTA

net.jxta.impl.protocol
Class HTTPAdv

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

public class HTTPAdv
extends net.jxta.protocol.TransportAdvertisement

This class implements the HTTPAdvertisement. While being useful, application are not required to use it. However, applications that donot want to use it will still have to provide a class that extends net.jxta.HTTP.HTTPAdvertisement.


Constructor Summary
HTTPAdv()
           
HTTPAdv(net.jxta.document.Element root)
           
HTTPAdv(java.lang.String protocol, java.lang.String port, java.lang.String id)
           
 
Method Summary
static java.lang.String getAdvertisementType()
           
 net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType encodeAs)
           
 java.lang.String getPeerId()
          returns the peerId
 java.lang.String getPort()
          returns the port
 boolean getPropagateEnabled()
           
 java.lang.String getProtocol()
          returns the protocol
 java.lang.String getProxyName()
           
 int getProxyPort()
           
 java.lang.String getRouterName()
           
 int getRouterPort()
           
 java.lang.String getServerName()
           
 int getServerPort()
           
 void initialize(net.jxta.document.Element root)
           
 void setPeerId(java.lang.String id)
           
 void setPort(java.lang.String port)
          returns the port
 void setPropagateEnabled(boolean state)
           
 void setProtocol(java.lang.String protocol)
          returns the protocol
 void setProxyName(java.lang.String name)
           
 void setProxyPort(int port)
           
 void setRouterName(java.lang.String name)
           
 void setRouterPort(int port)
           
 void setServerName(java.lang.String name)
           
 void setServerPort(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPAdv

public HTTPAdv()

HTTPAdv

public HTTPAdv(java.lang.String protocol,
               java.lang.String port,
               java.lang.String id)

HTTPAdv

public HTTPAdv(net.jxta.document.Element root)
        throws java.lang.Exception
Method Detail

getAdvertisementType

public static java.lang.String getAdvertisementType()

initialize

public void initialize(net.jxta.document.Element root)

getDocument

public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType encodeAs)
                                       throws java.lang.Exception
Overrides:
getDocument in class net.jxta.document.Advertisement

getProtocol

public java.lang.String getProtocol()
returns the protocol
Returns:
string protocol

setProtocol

public void setProtocol(java.lang.String protocol)
returns the protocol
Returns:
string protocol

getPort

public java.lang.String getPort()
returns the port
Returns:
string port
Since:
JXTA 1.0

setPort

public void setPort(java.lang.String port)
returns the port
Parameters:
string - port
Since:
JXTA 1.0

getPeerId

public java.lang.String getPeerId()
returns the peerId
Returns:
string peerId
Since:
JXTA 1.0

setPeerId

public void setPeerId(java.lang.String id)

getProxyName

public java.lang.String getProxyName()

getRouterName

public java.lang.String getRouterName()

getServerName

public java.lang.String getServerName()

getProxyPort

public int getProxyPort()

getRouterPort

public int getRouterPort()

getServerPort

public int getServerPort()

getPropagateEnabled

public boolean getPropagateEnabled()

setProxyName

public void setProxyName(java.lang.String name)

setRouterName

public void setRouterName(java.lang.String name)

setServerName

public void setServerName(java.lang.String name)

setProxyPort

public void setProxyPort(int port)

setRouterPort

public void setRouterPort(int port)

setServerPort

public void setServerPort(int port)

setPropagateEnabled

public void setPropagateEnabled(boolean state)

Project JXTA