Package com.atlassian.bamboo.utils
Class HttpUtils
java.lang.Object
com.atlassian.bamboo.utils.HttpUtils
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canMethodMutateState
(@NotNull String method) static @Nullable HttpUtils.EndpointSpec
getProxyForScheme
(@Nullable String scheme) static boolean
isDefaultPort
(@NotNull String scheme, int port)
-
Field Details
-
KEY_HTTP_PROXY_HOST
- See Also:
-
KEY_HTTP_PROXY_PORT
- See Also:
-
KEY_HTTPS_PROXY_HOST
- See Also:
-
KEY_HTTPS_PROXY_PORT
- See Also:
-
HTTPS_SCHEME
- See Also:
-
HTTP_SCHEME
- See Also:
-
HEADER_CONTENT_DISPOSITION
- See Also:
-
HEADER_CONTENT_ENCODING
- See Also:
-
HEADER_ACCEPT_ENCODING
- See Also:
-
HEADER_CONTENT_LENGTH
- See Also:
-
HEADER_CONTENT_RANGE
- See Also:
-
HEADER_ACCEPT_RANGES
- See Also:
-
HEADER_RANGE
- See Also:
-
HEADER_IF_MODIFIED_SINCE
- See Also:
-
HEADER_IF_NONE_MATCH
- See Also:
-
HEADER_IF_RANGE
- See Also:
-
HEADER_LAST_MODIFIED
- See Also:
-
HEADER_VARY
- See Also:
-
HEADER_TRANSFER_ENCODING
- See Also:
-
HEADER_ETAG
- See Also:
-
CONTENT_ACCEPT_RANGES_BYTES
- See Also:
-
CONTENT_ENCODING_GZIP
- See Also:
-
CONTENT_ENCODING_X_GZIP
- See Also:
-
CONTENT_ENCODING_COMPRESS
- See Also:
-
CONTENT_ENCODING_X_COMPRESS
- See Also:
-
CONTENT_ENCODING_DEFLATE
- See Also:
-
-
Method Details
-
isDefaultPort
- 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 @Nullable HttpUtils.EndpointSpec getProxyForScheme(@Nullable @Nullable 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:
-
canMethodMutateState
- Parameters:
method
- the request to check- Returns:
- true iff the HTTP method is a non-mutative method.
-