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)
          Deprecated. Please use the Advertisement factory and accessors
 
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 getProxy()
           
 boolean getProxyEnabled()
           
 boolean getRouterEnabled()
           
 java.util.Vector getRouters()
           
 java.lang.String getServer()
           
 boolean getServerEnabled()
           
 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 setProxy(java.lang.String name)
           
 void setProxyEnabled(boolean enabled)
           
 void setRouterEnabled(boolean enabled)
           
 void setRouters(java.util.Vector list)
           
 void setServer(java.lang.String name)
           
 void setServerEnabled(boolean enabled)
           
 
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)
Deprecated. Please use the Advertisement factory and accessors


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)

getProxy

public java.lang.String getProxy()

getRouters

public java.util.Vector getRouters()

getServer

public java.lang.String getServer()

getProxyEnabled

public boolean getProxyEnabled()

getRouterEnabled

public boolean getRouterEnabled()

getServerEnabled

public boolean getServerEnabled()

getPropagateEnabled

public boolean getPropagateEnabled()

setProxy

public void setProxy(java.lang.String name)

setRouters

public void setRouters(java.util.Vector list)

setServer

public void setServer(java.lang.String name)

setProxyEnabled

public void setProxyEnabled(boolean enabled)

setRouterEnabled

public void setRouterEnabled(boolean enabled)

setServerEnabled

public void setServerEnabled(boolean enabled)

setPropagateEnabled

public void setPropagateEnabled(boolean state)

Project JXTA