| Modifier and Type | Field and Description |
|---|---|
| private static Set | |
| public static final String | ENCODING_GZIP
The |
| public static final String | ENCODING_X_GZIP
The |
| public static final String | HDR_ACCEPT
The |
| public static final String | HDR_ACCEPT_ENCODING
The |
| public static final String | HDR_ACCEPT_RANGES
The |
| public static final String | HDR_AUTHORIZATION
The |
| public static final String | HDR_CACHE_CONTROL
The |
| public static final String | HDR_CONTENT_ENCODING
The |
| public static final String | HDR_CONTENT_LENGTH
The |
| public static final String | HDR_CONTENT_RANGE
The |
| public static final String | HDR_CONTENT_TYPE
The |
| public static final String | HDR_COOKIE
The |
| public static final String | HDR_DATE
The |
| public static final String | HDR_ETAG
The |
| public static final String | HDR_EXPIRES
The |
| public static final String | HDR_IF_MODIFIED_SINCE
The |
| public static final String | HDR_IF_NONE_MATCH
The |
| public static final String | HDR_IF_RANGE
The |
| public static final String | HDR_LAST_MODIFIED
The |
| public static final String | HDR_LOCATION
The |
| public static final String | HDR_PRAGMA
The |
| public static final String | HDR_RANGE
The |
| public static final String | HDR_SERVER
The |
| public static final String | HDR_SET_COOKIE
The |
| public static final String | HDR_SET_COOKIE2
The |
| public static final String | HDR_USER_AGENT
The |
| public static final String | HDR_WWW_AUTHENTICATE
The |
| private static final Logger | |
| public static final String | METHOD_GET
The |
| public static final String | METHOD_HEAD
The |
| public static final String | METHOD_POST
The |
| public static final String | METHOD_PUT
The |
| public static final String | TEXT_PLAIN
The standard |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | configureTLS(SSLSocket
to configure socket)Enables all supported TLS protocol versions on the socket given. |
| public static void | disableSslVerify(HttpConnection conn)
Disable SSL and hostname verification for given HTTP connection |
| public static void | encode(StringBuilder
the output buffer. urlstr, String value which must be encoded to protected special characters. key)URL encode a value string into an output buffer. |
| private static Set | |
| private static String | |
| public static Proxy | Returns: proxy to communicate with the supplied URL.proxy support for the caller. proxySelector, URL location of the server caller wants to talk to. u)Determine the proxy server (if any) needed to obtain a URL. |
| public static int | Returns: r HTTP status code, usually 200 to indicate success. Seeorg. for other
defined constants.connection the code should be obtained from. c)Get the HTTP response code from the request. |
| public static int | Returns: r HTTP status code, usually 200 to indicate success. Seeorg. for other
defined constants.connection the code should be obtained from. c)Get the HTTP response code from the request. |
| public static String | Returns: the header valueconnection the header should be obtained from. c, final String the header name headerName)Extract a HTTP header from the response. |
| public static int | |
| public static String |
| configuredHttpsProtocols | back to summary |
|---|---|
| private static Set<String> configuredHttpsProtocols | |
| ENCODING_GZIP | back to summary |
|---|---|
| public static final String ENCODING_GZIP The | |
| ENCODING_X_GZIP | back to summary |
|---|---|
| public static final String ENCODING_X_GZIP The
| |
| HDR_ACCEPT | back to summary |
|---|---|
| public static final String HDR_ACCEPT The | |
| HDR_ACCEPT_ENCODING | back to summary |
|---|---|
| public static final String HDR_ACCEPT_ENCODING The | |
| HDR_ACCEPT_RANGES | back to summary |
|---|---|
| public static final String HDR_ACCEPT_RANGES The | |
| HDR_AUTHORIZATION | back to summary |
|---|---|
| public static final String HDR_AUTHORIZATION The | |
| HDR_CACHE_CONTROL | back to summary |
|---|---|
| public static final String HDR_CACHE_CONTROL The | |
| HDR_CONTENT_ENCODING | back to summary |
|---|---|
| public static final String HDR_CONTENT_ENCODING The | |
| HDR_CONTENT_LENGTH | back to summary |
|---|---|
| public static final String HDR_CONTENT_LENGTH The | |
| HDR_CONTENT_RANGE | back to summary |
|---|---|
| public static final String HDR_CONTENT_RANGE The | |
| HDR_CONTENT_TYPE | back to summary |
|---|---|
| public static final String HDR_CONTENT_TYPE The | |
| HDR_COOKIE | back to summary |
|---|---|
| public static final String HDR_COOKIE The
| |
| HDR_DATE | back to summary |
|---|---|
| public static final String HDR_DATE The | |
| HDR_ETAG | back to summary |
|---|---|
| public static final String HDR_ETAG The | |
| HDR_EXPIRES | back to summary |
|---|---|
| public static final String HDR_EXPIRES The | |
| HDR_IF_MODIFIED_SINCE | back to summary |
|---|---|
| public static final String HDR_IF_MODIFIED_SINCE The | |
| HDR_IF_NONE_MATCH | back to summary |
|---|---|
| public static final String HDR_IF_NONE_MATCH The | |
| HDR_IF_RANGE | back to summary |
|---|---|
| public static final String HDR_IF_RANGE The | |
| HDR_LAST_MODIFIED | back to summary |
|---|---|
| public static final String HDR_LAST_MODIFIED The | |
| HDR_LOCATION | back to summary |
|---|---|
| public static final String HDR_LOCATION The
| |
| HDR_PRAGMA | back to summary |
|---|---|
| public static final String HDR_PRAGMA The | |
| HDR_RANGE | back to summary |
|---|---|
| public static final String HDR_RANGE The | |
| HDR_SERVER | back to summary |
|---|---|
| public static final String HDR_SERVER The
| |
| HDR_SET_COOKIE | back to summary |
|---|---|
| public static final String HDR_SET_COOKIE The
| |
| HDR_SET_COOKIE2 | back to summary |
|---|---|
| public static final String HDR_SET_COOKIE2 The
| |
| HDR_USER_AGENT | back to summary |
|---|---|
| public static final String HDR_USER_AGENT The | |
| HDR_WWW_AUTHENTICATE | back to summary |
|---|---|
| public static final String HDR_WWW_AUTHENTICATE The | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| METHOD_GET | back to summary |
|---|---|
| public static final String METHOD_GET The | |
| METHOD_HEAD | back to summary |
|---|---|
| public static final String METHOD_HEAD The
| |
| METHOD_POST | back to summary |
|---|---|
| public static final String METHOD_POST The | |
| METHOD_PUT | back to summary |
|---|---|
| public static final String METHOD_PUT The
| |
| TEXT_PLAIN | back to summary |
|---|---|
| public static final String TEXT_PLAIN The standard | |
| HttpSupport | back to summary |
|---|---|
| private HttpSupport() | |
| configureTLS | back to summary | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public static void configureTLS(SSLSocket socket) Enables all supported TLS protocol versions on the socket given. If system property "https.protocols" is set, only protocols specified there are enabled. This is primarily a mechanism to deal with using TLS on IBM JDK. IBM JDK returns sockets that support all TLS protocol versions but have only the one specified in the context enabled. Oracle or OpenJDK return sockets that have all available protocols enabled already, up to the one specified.
| ||||||||||
| disableSslVerify | back to summary |
|---|---|
| public static void disableSslVerify(HttpConnection conn) throws IOException Disable SSL and hostname verification for given HTTP connection
| |
| encode | back to summary |
|---|---|
| public static void encode(StringBuilder urlstr, String key) URL encode a value string into an output buffer.
| |
| getConfiguredProtocols | back to summary |
|---|---|
| private static Set | |
| getProperty | back to summary |
|---|---|
| private static String getProperty(String property) | |
| proxyFor | back to summary |
|---|---|
| public static Proxy proxyFor(ProxySelector proxySelector, URL u) throws ConnectException Determine the proxy server (if any) needed to obtain a URL.
| |
| response | back to summary |
|---|---|
| public static int response(HttpConnection c) throws IOException Get the HTTP response code from the request.
Roughly the same as
| |
| response | back to summary |
|---|---|
| public static int response(HttpURLConnection c) throws IOException Get the HTTP response code from the request.
Roughly the same as
| |
| responseHeader | back to summary |
|---|---|
| public static String responseHeader(final HttpConnection c, final String headerName) throws IOException Extract a HTTP header from the response.
| |
| scanToken | back to summary |
|---|---|
| public static int scanToken(String header, int from) Scan a RFC 7230 token as it appears in HTTP headers.
| |
| urlEncode | back to summary |
|---|---|
| public static String urlEncode(String url, boolean keepPathSlash) Translates the provided URL into application/x-www-form-urlencoded format. | |