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 |
Methods inherited from class net.jxta.document.Advertisement |
getLocalExpirationTime,
setExpiration |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
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)