com.atlassian.bamboo.utils
Class HttpUtils

java.lang.Object
  extended by com.atlassian.bamboo.utils.HttpUtils

public class HttpUtils
extends java.lang.Object


Nested Class Summary
static class HttpUtils.EndpointSpec
           
 
Method Summary
static HttpUtils.EndpointSpec getProxyForScheme(java.lang.String scheme)
           
static boolean isDefaultPort(java.lang.String scheme, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDefaultPort

public static boolean isDefaultPort(@NotNull
                                    java.lang.String scheme,
                                    int port)
Parameters:
scheme - http or https
port - the port ot check
Returns:
true if the port is the default port for given scheme

getProxyForScheme

@Nullable
public static HttpUtils.EndpointSpec getProxyForScheme(@Nullable
                                                                java.lang.String scheme)
Parameters:
scheme - for which proxy data should be returned, null if any available data should be returned (then, HTTPS has preference over HTTP)
Returns:
Throws:
URIException


Copyright © 2012 Atlassian. All Rights Reserved.