org.apache.anteater.util
Class ProxySocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--org.apache.anteater.util.ProxySocket

public class ProxySocket
extends Socket

ProxySocket connects to a port on a machine through an HTTP Web proxy. Just set the http.proxyHost and http.proxyPort for the JVM and create an instance of this class instead of the normal Socket.

Since:
September 24, 2001
Version:
1.0 ($Revision: 1.2 $ $Date: 2002/01/14 02:28:49 $)
Author:
Ovidiu Predescu

Constructor Summary
ProxySocket(String host, int port)
          Creates a new ProxySocket instance.
 
Methods inherited from class java.net.Socket
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, 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
 

Constructor Detail

ProxySocket

public ProxySocket(String host,
                   int port)
            throws IOException,
                   UnknownHostException,
                   NumberFormatException
Creates a new ProxySocket instance.

Parameters:
host - a String value, representing the host machine to which you want to connect.
port - an int value, representing the port number on host to which you want to connect.


Ant Functional Tester -- see Project home page for details