com.atlassian.bamboo.utils
Class HttpUtils
java.lang.Object
com.atlassian.bamboo.utils.HttpUtils
public class HttpUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
isDefaultPort
public static boolean isDefaultPort(@NotNull
java.lang.String scheme,
int port)
- Parameters:
scheme
- http or httpsport
- 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.