com.atlassian.bamboo.agent.elastic.tunnel.httpt
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by sun.net.www.protocol.http.Handler
          extended by com.atlassian.bamboo.agent.elastic.tunnel.httpt.Handler

public class Handler
extends sun.net.www.protocol.http.Handler

A URL scheme handler for "httpst", HTTP over SSL with no certificate or host name verification, and using the tunnel proxy.

Should only be used in cases where the authenticity of the remote host is assured through other means, e.g. other SSL tunnelling.


Field Summary
 
Fields inherited from class sun.net.www.protocol.http.Handler
proxy, proxyPort
 
Constructor Summary
Handler()
           
 
Method Summary
protected  java.net.HttpURLConnection openConnection(java.net.URL url)
           
protected  java.net.HttpURLConnection openConnection(java.net.URL url, java.net.Proxy proxy)
           
static void setHost(java.net.HttpURLConnection connection)
           
static void setHostName(java.lang.String hostName)
           
 
Methods inherited from class sun.net.www.protocol.http.Handler
getDefaultPort
 
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

setHostName

public static void setHostName(java.lang.String hostName)

setHost

public static void setHost(java.net.HttpURLConnection connection)

openConnection

protected java.net.HttpURLConnection openConnection(java.net.URL url)
                                             throws java.io.IOException
Overrides:
openConnection in class sun.net.www.protocol.http.Handler
Throws:
java.io.IOException

openConnection

protected java.net.HttpURLConnection openConnection(java.net.URL url,
                                                    java.net.Proxy proxy)
                                             throws java.io.IOException
Overrides:
openConnection in class sun.net.www.protocol.http.Handler
Throws:
java.io.IOException


Copyright © 2010 Atlassian. All Rights Reserved.