Project JXTA

net.jxta.impl.config
Class TcpConfig

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

public class TcpConfig
extends java.lang.Object

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


Constructor Summary
TcpConfig()
           
 
Method Summary
static TcpConfig createDefaultConfig()
          Creates a TcpConfig with the default settings
 java.lang.String getImplClassname()
          Sets the classname for the Tcp transport implementation class
 net.jxta.endpoint.EndpointAddress getMulticastAddress()
          Gets the EndpointAddress for the multicast channel
 int getMulticastBufferLen()
          Gets the buffer length for multicast datagrams
 net.jxta.endpoint.EndpointAddress getPublicAddress()
          Gets the EndpointAddress for the public TCP address I want to expose.
 net.jxta.endpoint.EndpointAddress getServerAddress()
          Gets the EndpointAddress for the local TCP server
 boolean getUsePublicAddress()
          Tells whether to use the PublicAddress settings.
static TcpConfig newFromXML(net.jxta.document.TextElement parent)
          Creates a new HttpConfig instance given a parent "Http" element
 void setImplClassname(java.lang.String aImplClassname)
          Sets the classname for the Tcp transport implementation class
 void setMulticastAddress(net.jxta.endpoint.EndpointAddress aMulticastAddress)
          Sets the EndpointAddress for the multicast channel
 void setMulticastBufferLen(int aBufferLen)
          Sets the buffer length for multicast datagrams
 void setPublicAddress(net.jxta.endpoint.EndpointAddress aPublicAddress)
          Sets the EndpointAddress for the public TCP address I want to expose.
 void setServerAddress(net.jxta.endpoint.EndpointAddress aAddress)
          Sets the EndpointAddress for the local TCP server
 void setUsePublicAddress(boolean aUsePublicAddress)
          Sets whether to use the PublicAddress settings.
 void writeToXML(net.jxta.document.StructuredTextDocument doc)
          Writes the configuration to XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpConfig

public TcpConfig()
Method Detail

writeToXML

public void writeToXML(net.jxta.document.StructuredTextDocument doc)
Writes the configuration to XML

createDefaultConfig

public static TcpConfig createDefaultConfig()
Creates a TcpConfig with the default settings

newFromXML

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

getServerAddress

public net.jxta.endpoint.EndpointAddress getServerAddress()
Gets the EndpointAddress for the local TCP server

setServerAddress

public void setServerAddress(net.jxta.endpoint.EndpointAddress aAddress)
Sets the EndpointAddress for the local TCP server

getMulticastAddress

public net.jxta.endpoint.EndpointAddress getMulticastAddress()
Gets the EndpointAddress for the multicast channel

setMulticastAddress

public void setMulticastAddress(net.jxta.endpoint.EndpointAddress aMulticastAddress)
Sets the EndpointAddress for the multicast channel

getMulticastBufferLen

public int getMulticastBufferLen()
Gets the buffer length for multicast datagrams

setMulticastBufferLen

public void setMulticastBufferLen(int aBufferLen)
Sets the buffer length for multicast datagrams

getPublicAddress

public net.jxta.endpoint.EndpointAddress getPublicAddress()
Gets the EndpointAddress for the public TCP address I want to expose. May be null, unless getUsePublicAddres()==true.

setPublicAddress

public void setPublicAddress(net.jxta.endpoint.EndpointAddress aPublicAddress)
Sets the EndpointAddress for the public TCP address I want to expose. This must be set if getUsePublicAddres()==true

getUsePublicAddress

public boolean getUsePublicAddress()
Tells whether to use the PublicAddress settings.

setUsePublicAddress

public void setUsePublicAddress(boolean aUsePublicAddress)
Sets whether to use the PublicAddress settings.

getImplClassname

public java.lang.String getImplClassname()
Sets the classname for the Tcp transport implementation class

setImplClassname

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

Project JXTA