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
           
 
Field Summary
static java.lang.String CONTENT_ENCODING_COMPRESS
           
static java.lang.String CONTENT_ENCODING_DEFLATE
           
static java.lang.String CONTENT_ENCODING_GZIP
           
static java.lang.String CONTENT_ENCODING_X_COMPRESS
           
static java.lang.String CONTENT_ENCODING_X_GZIP
           
static java.lang.String HEADER_ACCEPT_ENCODING
           
static java.lang.String HEADER_CONTENT_ENCODING
           
static java.lang.String HEADER_VARY
           
static java.lang.String TRANSFER_ENCODING
           
 
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
 

Field Detail

HEADER_CONTENT_ENCODING

public static final java.lang.String HEADER_CONTENT_ENCODING
See Also:
Constant Field Values

HEADER_ACCEPT_ENCODING

public static final java.lang.String HEADER_ACCEPT_ENCODING
See Also:
Constant Field Values

HEADER_VARY

public static final java.lang.String HEADER_VARY
See Also:
Constant Field Values

TRANSFER_ENCODING

public static final java.lang.String TRANSFER_ENCODING
See Also:
Constant Field Values

CONTENT_ENCODING_GZIP

public static final java.lang.String CONTENT_ENCODING_GZIP
See Also:
Constant Field Values

CONTENT_ENCODING_X_GZIP

public static final java.lang.String CONTENT_ENCODING_X_GZIP
See Also:
Constant Field Values

CONTENT_ENCODING_COMPRESS

public static final java.lang.String CONTENT_ENCODING_COMPRESS
See Also:
Constant Field Values

CONTENT_ENCODING_X_COMPRESS

public static final java.lang.String CONTENT_ENCODING_X_COMPRESS
See Also:
Constant Field Values

CONTENT_ENCODING_DEFLATE

public static final java.lang.String CONTENT_ENCODING_DEFLATE
See Also:
Constant Field Values
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.