org.starhope.appius.via
Class ViaHost

java.lang.Object
  extended by org.starhope.appius.via.ViaHost
All Implemented Interfaces:
Comparable<ViaHost>

public class ViaHost
extends Object
implements Comparable<ViaHost>

Author:
brpocock@star-hope.org

Field Summary
private  String hostname
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) hostname (ViaHost)
private  InputStream in
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) in (ViaHost)
private  OutputStream out
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) out (ViaHost)
private  Socket peerChannel
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) peerChannel (ViaHost)
private  int port
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) port (ViaHost)
 
Constructor Summary
ViaHost(String host, int portNumber)
           
 
Method Summary
 int compareTo(ViaHost arg0)
          This is an overriding method.
 String getHostname()
           
 InputStream getInput()
           
 OutputStream getOutput()
           
 Socket getPeerChannel()
           
 int getPort()
           
 String toString()
          This is an overriding method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hostname

private final String hostname
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) hostname (ViaHost)


in

private final InputStream in
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) in (ViaHost)


out

private final OutputStream out
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) out (ViaHost)


peerChannel

private final Socket peerChannel
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) peerChannel (ViaHost)


port

private final int port
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) port (ViaHost)

Constructor Detail

ViaHost

public ViaHost(String host,
               int portNumber)
        throws UnknownHostException,
               IOException
Parameters:
host - WRITEME
portNumber - WRITEME
Throws:
UnknownHostException - WRITEME
IOException - WRITEME
Method Detail

compareTo

public int compareTo(ViaHost arg0)
This is an overriding method.

Specified by:
compareTo in interface Comparable<ViaHost>
See Also:
Comparable.compareTo(java.lang.Object)

getHostname

public String getHostname()
Returns:
the hostname

getInput

public InputStream getInput()
Returns:
the in

getOutput

public OutputStream getOutput()
Returns:
the out

getPeerChannel

public Socket getPeerChannel()
Returns:
the peerChannel

getPort

public int getPort()
Returns:
the port

toString

public String toString()
This is an overriding method.

Overrides:
toString in class Object
See Also:
Object.toString()