jist.runtime
Class ProxyPoint.ProxyClientSocket

java.lang.Object
  extended by java.net.Socket
      extended by jist.runtime.ProxyPoint.ProxyClientSocket
Enclosing class:
ProxyPoint

public static class ProxyPoint.ProxyClientSocket
extends java.net.Socket

A Socket on the client-side that operates via the ProxyPoint proxy.


Field Summary
private  java.net.InetSocketAddress remote
          proxied socket end-point.
 
Constructor Summary
ProxyPoint.ProxyClientSocket(java.net.InetAddress proxyhost, int proxyport, java.net.InetAddress host, int port)
          Create an new proxy socket on the client side.
 
Method Summary
 java.net.InetAddress getInetAddress()
          
 int getPort()
          
 java.net.SocketAddress getRemoteSocketAddress()
          
 
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

remote

private java.net.InetSocketAddress remote
proxied socket end-point.

Constructor Detail

ProxyPoint.ProxyClientSocket

public ProxyPoint.ProxyClientSocket(java.net.InetAddress proxyhost,
                                    int proxyport,
                                    java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Create an new proxy socket on the client side.

Parameters:
proxyhost - proxy server host
proxyport - proxy server port
host - proxied endpoint host
port - proxied endpoint port
Throws:
java.io.IOException - when i/o fails
Method Detail

getRemoteSocketAddress

public java.net.SocketAddress getRemoteSocketAddress()

Overrides:
getRemoteSocketAddress in class java.net.Socket

getInetAddress

public java.net.InetAddress getInetAddress()

Overrides:
getInetAddress in class java.net.Socket

getPort

public int getPort()

Overrides:
getPort in class java.net.Socket