Project JXTA

net.jxta.impl.config
Class HttpConfig

java.lang.Object
  |
  +--net.jxta.impl.config.HttpConfig

public class HttpConfig
extends java.lang.Object

Sub-configuration for HTTP-specific settings. Instances of this class are normally contained within a Config instance.


Constructor Summary
HttpConfig()
           
 
Method Summary
static HttpConfig createDefaultConfig()
          Creates a default config instance.
 java.lang.String getImplClassname()
          Returns the implementation classname for the transport.
 net.jxta.endpoint.EndpointAddress getProxyAddress()
          Gets the hostadress of the proxy server that the peer is using.
 net.jxta.endpoint.EndpointAddress getPublicAddress()
          Gets the public address to expose for HTTP-based communications
 net.jxta.endpoint.EndpointAddress getRouterAddress()
          Gets the hostname of the router that the peer is using.
 net.jxta.endpoint.EndpointAddress getServerAddress()
          Gets the port on which the HTTP server will listen.
 boolean getUseProxy()
          Returns whether to use the defined proxy server
 boolean getUsePublicAddress()
          Tells whether to use the specified public address
static HttpConfig newFromXML(net.jxta.document.TextElement parent)
          Creates a new HttpConfig instance given a parent "Http" element
 void setImplClassname(java.lang.String aImplClassname)
          Sets the implementation classname for the transport.
 void setProxyAddress(net.jxta.endpoint.EndpointAddress aProxyAddress)
          Sets the hostname of the proxy that the peer is using
 void setPublicAddress(net.jxta.endpoint.EndpointAddress aPublicAddress)
          Sets the public address to expose for HTTP-based communications
 void setRouterAddress(net.jxta.endpoint.EndpointAddress aRouterAddress)
          Sets the hostname of the router that the peer is using.
 void setServerAddress(net.jxta.endpoint.EndpointAddress aAddress)
          Sets the port on which the HTTP server will listen.
 void setUseProxy(boolean aUseProxy)
          Sets whether to use the defined proxy server
 void setUsePublicAddress(boolean aUsePublicAddress)
          Sets whether to use the specified public address
 void writeToXML(net.jxta.document.StructuredTextDocument doc)
          Writes self to doc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConfig

public HttpConfig()
Method Detail

createDefaultConfig

public static HttpConfig createDefaultConfig()
Creates a default config instance. The default is such that there is no proxy used, no router used, and that the peer is not a rendezvous server.

newFromXML

public static HttpConfig newFromXML(net.jxta.document.TextElement parent)
Creates a new HttpConfig instance given a parent "Http" element

writeToXML

public void writeToXML(net.jxta.document.StructuredTextDocument doc)
Writes self to doc.

getServerAddress

public net.jxta.endpoint.EndpointAddress getServerAddress()
Gets the port on which the HTTP server will listen.

setServerAddress

public void setServerAddress(net.jxta.endpoint.EndpointAddress aAddress)
Sets the port on which the HTTP server will listen.

getImplClassname

public java.lang.String getImplClassname()
Returns the implementation classname for the transport.

setImplClassname

public void setImplClassname(java.lang.String aImplClassname)
Sets the implementation classname for the transport.

getRouterAddress

public net.jxta.endpoint.EndpointAddress getRouterAddress()
Gets the hostname of the router that the peer is using.

setRouterAddress

public void setRouterAddress(net.jxta.endpoint.EndpointAddress aRouterAddress)
Sets the hostname of the router that the peer is using.

getProxyAddress

public net.jxta.endpoint.EndpointAddress getProxyAddress()
Gets the hostadress of the proxy server that the peer is using. Returns null if I am not using a proxy server

setProxyAddress

public void setProxyAddress(net.jxta.endpoint.EndpointAddress aProxyAddress)
Sets the hostname of the proxy that the peer is using

getUseProxy

public boolean getUseProxy()
Returns whether to use the defined proxy server

setUseProxy

public void setUseProxy(boolean aUseProxy)
Sets whether to use the defined proxy server

getPublicAddress

public net.jxta.endpoint.EndpointAddress getPublicAddress()
Gets the public address to expose for HTTP-based communications

setPublicAddress

public void setPublicAddress(net.jxta.endpoint.EndpointAddress aPublicAddress)
Sets the public address to expose for HTTP-based communications

getUsePublicAddress

public boolean getUsePublicAddress()
Tells whether to use the specified public address

setUsePublicAddress

public void setUsePublicAddress(boolean aUsePublicAddress)
Sets whether to use the specified public address

Project JXTA