Additional top-level class in compilation unit: EmptyInputStream.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv class | |
| pack-priv class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | |
| private static final boolean | |
| protected volatile AuthCacheImpl | |
| protected volatile Authenticator | |
| private Object | |
| private static final int | |
| private MessageHeader | |
| private InputStream | |
| protected CacheResponse | |
| private final ResponseCache | |
| pack-priv byte[] | |
| private boolean | |
| private final ReentrantLock | |
| private int | |
| private CookieHandler | |
| pack-priv AuthenticationInfo | |
| pack-priv AuthenticationInfo | |
| pack-priv static final int | |
| pack-priv DigestAuthentication. | |
| pack-priv static final Set | disabledProxyingSchemes
A, possibly empty, set of authentication schemes that are disabled when proxying plain HTTP ( not HTTPS ). |
| pack-priv static final Set | disabledTunnelingSchemes
A, possibly empty, set of authentication schemes that are disabled when setting up a tunnel for HTTPS ( HTTP CONNECT ). |
| private boolean | |
| private boolean | |
| pack-priv String | |
| private static final boolean | |
| private InputStream | |
| private static final String[] | |
| private static final String[] | |
| private boolean | |
| private Map | |
| protected Handler | |
| protected HttpClient | |
| pack-priv static final String | |
| pack-priv static final String | |
| private InputStream | |
| protected Proxy | |
| pack-priv boolean | |
| pack-priv boolean | |
| private Proxy | |
| private static final PlatformLogger | |
| private static final int | |
| pack-priv static final int | |
| pack-priv boolean | |
| private PosterOutputStream | |
| pack-priv String | |
| protected PrintStream | |
| private int | |
| private Exception | |
| private Exception | |
| private MessageHeader | |
| pack-priv String | |
| private MessageHeader | |
| private static final String[] | |
| private static final Set | |
| private static final String | |
| private static final String | |
| private static final String | |
| private HttpClient | |
| pack-priv String | |
| private static final String | |
| private static final String | |
| private boolean | |
| private boolean | |
| private HttpURLConnection. | |
| private static final int | |
| private boolean | |
| private boolean | |
| private HttpURLConnection. | |
| private boolean | |
| public static final String | |
| private String | |
| private String | |
| private final MessageHeader | |
| private volatile boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| pack-priv static final String |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | HttpURLConnection(URL u, Proxy p)
this constructor is used by other protocol handlers such as ftp that want to use http to fetch urls on their behalf. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addRequestProperty(String
the keyword by which the request is known
(e.g., " key, String accept").the value associated with it. value)Overrides java. Adds a general request property specified by a key-value pair. |
| public Object | |
| public void | |
| private static String | |
| private void | |
| private void | |
| private boolean | |
| private static URL | |
| public void | connect()
Implements abstract java. Opens a communications link to the resource referenced by this URL, if such a connection has not already been established. |
| pack-priv static String | |
| public void | disconnect()
Implements abstract java. Disconnect from the server (public API) |
| private void | |
| private void | |
| public void | |
| private void | |
| private void | |
| private String | |
| private boolean | |
| private boolean | |
| public AuthCacheImpl | |
| private IOException | |
| public int | Returns: anint that indicates the connect timeout
value in millisecondsOverrides java. Returns setting for connect timeout. |
| public CookieHandler | |
| public InputStream | getErrorStream()
Overrides java. Returns the error stream if the connection failed but the server sent useful data nonetheless. |
| private Map | |
| public String | getHeaderField(String
the name of the header field name)Overrides java. Gets a header field by name. |
| public String | getHeaderField(int
the index of the header field n)Overrides java. Gets a header field by index. |
| public String | getHeaderFieldKey(int
the index of the header field n)Overrides java. Gets a header field by index. |
| public Map | Returns: a Map of header fieldsOverrides java. Returns an unmodifiable Map of the header fields. |
| protected HttpCallerInfo | getHttpCallerInfo(URL url, String proxy, int port, Authenticator authenticator)
Overridden in https to also include the server certificate |
| protected HttpCallerInfo | getHttpCallerInfo(URL url, Authenticator authenticator)
Overridden in https to also include the server certificate |
| public static PlatformLogger | |
| private AuthenticationInfo | getHttpProxyAuthentication(AuthenticationHeader authhdr)
Gets the authentication for an HTTP proxy, and applies it to the connection. |
| public InputStream | getInputStream()
Overrides java. Returns an input stream that reads from this open connection. |
| private InputStream | |
| pack-priv String | |
| protected HttpClient | |
| protected HttpClient | |
| public OutputStream | getOutputStream()
Overrides java. Returns an output stream that writes to this connection. |
| private OutputStream | |
| public int | Returns: anint that indicates the read timeout
value in millisecondsOverrides java. Returns setting for read timeout. |
| public Map | Returns: a Map of the general request properties for this connection.Overrides java. Returns an unmodifiable Map of general request properties for this connection. |
| public String | getRequestProperty(String key)
Overrides java. Returns the value of the named general request property for this connection. |
| pack-priv String | |
| private AuthenticationInfo | getServerAuthentication(AuthenticationHeader
the AuthenticationHeader which tells what auth scheme is
preferred. authhdr)Gets the authentication for an HTTP server, and applies it to the connection. |
| pack-priv MessageHeader | |
| private boolean | |
| public final boolean | |
| private boolean | |
| private final void | |
| private MessageHeader | |
| private static URL | |
| private static URL | |
| protected void | noResponseBody()
This method is called when a response with no response body is received, and arrange for the http client to be returned to the pool (or released) immediately when possible. |
| private static int | |
| protected void | |
| protected void | |
| protected void | |
| private static PasswordAuthentication | requestPassword(final Authenticator authenticator, final String host, final InetAddress addr, final int port, final String protocol, final String prompt, final String scheme, final URL url, final Authenticator.
|
| private void | reset()
Reset (without disconnecting the TCP conn) in order to do another transaction with this instance |
| private AuthenticationInfo | resetProxyAuthentication(AuthenticationInfo proxyAuthentication, AuthenticationHeader auth)
set or reset proxy authentication info in request headers after receiving a 407 error. |
| private static boolean | |
| private static Set | |
| private void | |
| public void | |
| public void | setAuthenticator(Authenticator auth)
Overrides java. Supplies an |
| public void | setConnectTimeout(int timeout)
Overrides java. Sets a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by this URLConnection. |
| private void | |
| protected void | setNewClient(URL
the URL being accessed url)Create a new HttpClient object, bypassing the cache of HTTP client objects/connections. |
| protected void | setNewClient(URL
the URL being accessed url, boolean whether the cached connection should be used
if present useCache)Obtain a HttpsClient object. |
| private void | setPreemptiveProxyAuthentication(MessageHeader requests)
Sets pre-emptive proxy authentication in header |
| protected void | setProxiedClient(URL
the URL being accessed url, String the proxy host to use proxyHost, int the proxy port to use proxyPort)Create a new HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. |
| protected void | setProxiedClient(URL
the URL being accessed url, String the proxy host to use proxyHost, int the proxy port to use proxyPort, boolean whether the cached connection should be used
if present useCache)Obtain a HttpClient object, set up so that it uses per-instance proxying to the given HTTP proxy. |
| public void | setReadTimeout(int
an timeout)int that specifies the timeout
value to be used in millisecondsOverrides java. Sets the read timeout to a specified timeout, in milliseconds. |
| public void | setRequestMethod(String method)
Overrides java. Set the method for the URL request, one of:
|
| public void | setRequestProperty(String key, String
the value to be set value)Overrides java. Sets request property. |
| public void | |
| public boolean | |
| pack-priv static String | Returns: host address without Zone Idhost address (not null, not empty) host)Returns the given host, without the IPv6 Zone Id, if present. |
| pack-priv HttpURLConnection. | |
| private final void | |
| public boolean | usingProxy()
Implements abstract java. Returns true if the established connection is using a proxy or if a proxy is specified for the inactive connection |
| pack-priv boolean | |
| private static void | |
| private void |