mixconfig.network.ConnectionData Class Reference

Inherits anon::util::IXMLEncodable, and Cloneable.

List of all members.

Public Member Functions

 ConnectionData (String a_strXMLNodeName, int a_iTransport, String a_strHostname)
 ConnectionData (String a_strXMLNodeName, int a_iTransport, String a_strHostname, int a_iFlags)
 ConnectionData (String a_strXMLNodeName, int a_iTransport, String a_strHostname, int a_iPort, int a_iFlags, boolean virtual, boolean hidden)
 ConnectionData (String a_strXMLNodeName, int a_iTransport, String a_strHostname, int a_iPort, String a_strVisibleAddress, int a_iFlags, boolean virtual, boolean hidden)
Object clone ()
int getFlags ()
int getTransport ()
void setHostname (String n)
String getHostname ()
void setVisibleAddress (String n)
String getVisibleAddress ()
int getPort ()
boolean isHidden ()
boolean isVirtual ()
String getVisibilityString ()
Element toXmlElement (Document docOwner)

Static Public Attributes

static final int TRANSPORT = 1
static final int TCP = 0
static final int UNIX = 1
static final int RAW = 0
static final int SSL = 2
static final int RAW_TCP = RAW | TCP
static final int RAW_UNIX = RAW | UNIX
static final int SSL_TCP = SSL | TCP
static final int SSL_UNIX = SSL | UNIX
static final int PROXY_MASK = 3
static final int NO_PROXY = 0
static final int HTTP_PROXY = 1
static final int SOCKS_PROXY = 2

Package Functions

void setFlags (int f)
void setType (String t)
String getType ()
void setTransport (int t)
void setPort (int p)
void setIsHidden (boolean b)
void setIsVirtual (boolean b)

Static Package Functions

static ConnectionData createFromElement (String tag, Element elemRoot)

Static Private Member Functions

static String getChildElementValue (Element elemParent, String childName)

Private Attributes

String m_strXMLNodeName
int m_iTransport
String m_strHostname
int m_iPort
String m_strVisibleAddress
int m_iFlags
boolean m_bIsVirtual = false
boolean m_bIsHidden = false


Detailed Description

Instances of this class represent previous or next mixes in a cascade or HTTP proxies
Author:
renner

Constructor & Destructor Documentation

mixconfig.network.ConnectionData.ConnectionData ( String  a_strXMLNodeName,
int  a_iTransport,
String  a_strHostname 
)

Incredible enchainment of constructors ;-)

Referenced by mixconfig.network.ConnectionData.clone(), and mixconfig.network.ConnectionData.createFromElement().

mixconfig.network.ConnectionData.ConnectionData ( String  a_strXMLNodeName,
int  a_iTransport,
String  a_strHostname,
int  a_iFlags 
)

mixconfig.network.ConnectionData.ConnectionData ( String  a_strXMLNodeName,
int  a_iTransport,
String  a_strHostname,
int  a_iPort,
int  a_iFlags,
boolean  virtual,
boolean  hidden 
)

mixconfig.network.ConnectionData.ConnectionData ( String  a_strXMLNodeName,
int  a_iTransport,
String  a_strHostname,
int  a_iPort,
String  a_strVisibleAddress,
int  a_iFlags,
boolean  virtual,
boolean  hidden 
)


Member Function Documentation

Object mixconfig.network.ConnectionData.clone (  ) 

void mixconfig.network.ConnectionData.setFlags ( int  f  )  [package]

int mixconfig.network.ConnectionData.getFlags (  ) 

void mixconfig.network.ConnectionData.setType ( String  t  )  [package]

String mixconfig.network.ConnectionData.getType (  )  [package]

void mixconfig.network.ConnectionData.setTransport ( int  t  )  [package]

int mixconfig.network.ConnectionData.getTransport (  ) 

void mixconfig.network.ConnectionData.setHostname ( String  n  ) 

String mixconfig.network.ConnectionData.getHostname (  ) 

void mixconfig.network.ConnectionData.setVisibleAddress ( String  n  ) 

String mixconfig.network.ConnectionData.getVisibleAddress (  ) 

void mixconfig.network.ConnectionData.setPort ( int  p  )  [package]

int mixconfig.network.ConnectionData.getPort (  ) 

void mixconfig.network.ConnectionData.setIsHidden ( boolean  b  )  [package]

boolean mixconfig.network.ConnectionData.isHidden (  ) 

void mixconfig.network.ConnectionData.setIsVirtual ( boolean  b  )  [package]

boolean mixconfig.network.ConnectionData.isVirtual (  ) 

String mixconfig.network.ConnectionData.getVisibilityString (  ) 

Element mixconfig.network.ConnectionData.toXmlElement ( Document  docOwner  ) 

static ConnectionData mixconfig.network.ConnectionData.createFromElement ( String  tag,
Element  elemRoot 
) [static, package]

static String mixconfig.network.ConnectionData.getChildElementValue ( Element  elemParent,
String  childName 
) [static, private]

Return the value of a XML element

Parameters:
elemParent 
childName 
Returns:

Referenced by mixconfig.network.ConnectionData.createFromElement().


Member Data Documentation

final int mixconfig.network.ConnectionData.TCP = 0 [static]

final int mixconfig.network.ConnectionData.UNIX = 1 [static]

final int mixconfig.network.ConnectionData.RAW = 0 [static]

final int mixconfig.network.ConnectionData.SSL = 2 [static]


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:47 2009 for MixConfig by  doxygen 1.5.6