com.atlassian.bamboo.agent.elastic.tunnel.http
Class HttpTunnelSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by com.atlassian.bamboo.agent.elastic.tunnel.http.HttpTunnelSocketFactory

public class HttpTunnelSocketFactory
extends javax.net.SocketFactory

Tunnels over a CONNECT-capable HTTP proxy. SSL-enables the created socket if the SSLSocketFactory is passed in.


Constructor Summary
HttpTunnelSocketFactory(java.net.InetSocketAddress httpProxyAddress)
           
HttpTunnelSocketFactory(java.net.InetSocketAddress httpProxyAddress, javax.net.ssl.SSLSocketFactory secureSocketFactory)
           
 
Method Summary
 java.net.Socket createSocket()
           
 java.net.Socket createSocket(java.net.InetAddress host, int port)
           
 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)
           
 
Methods inherited from class javax.net.SocketFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpTunnelSocketFactory

public HttpTunnelSocketFactory(java.net.InetSocketAddress httpProxyAddress)

HttpTunnelSocketFactory

public HttpTunnelSocketFactory(java.net.InetSocketAddress httpProxyAddress,
                               javax.net.ssl.SSLSocketFactory secureSocketFactory)
Method Detail

createSocket

public java.net.Socket createSocket()
                             throws java.io.IOException
Overrides:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.net.InetAddress host,
                                    int port)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localHost,
                                    int localPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.net.InetAddress address,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort)
                             throws java.io.IOException
Specified by:
createSocket in class javax.net.SocketFactory
Throws:
java.io.IOException


Copyright © 2012 Atlassian. All Rights Reserved.