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 | |
private static HttpAuthenticator | defaultAuth
Deprecated
|
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 static final PlatformLogger | |
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 SocketPermission | |
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. |
public Object | |
public void | |
private static String | |
private void | |
private void | |
private boolean | |
private boolean | |
private static URL | |
private void | |
public void | connect()
Implements abstract java. |
pack-priv static String | |
public void | disconnect()
Implements abstract java. |
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. |
public CookieHandler | |
public InputStream | getErrorStream()
Overrides java. |
private Map | |
public String | getHeaderField(String
the name of the header field name)Overrides java. |
public String | getHeaderField(int
the index of the header field n)Overrides java. |
public String | getHeaderFieldKey(int
the index of the header field n)Overrides java. |
public Map | Returns: a Map of header fieldsOverrides java. |
private String | |
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. |
private InputStream | |
pack-priv String | |
private static String | |
protected HttpClient | |
protected HttpClient | |
public OutputStream | getOutputStream()
Overrides java. |
private OutputStream | |
public int | Returns: anint that indicates the read timeout
value in millisecondsOverrides java. |
public Map | Returns: a Map of the general request properties for this connection.Overrides java. |
public String | getRequestProperty(String
the keyword by which the request is known (e.g., "Accept"). key)Overrides java. |
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 static boolean | |
private boolean | |
public final boolean | |
private boolean | |
private final void | |
private MessageHeader | |
private static URL | |
private static URL | |
public static InputStream | openConnectionCheckRedirects(URLConnection c)
opens a stream allowing redirects only to the same host. |
protected void | |
protected void | |
private static PasswordAuthentication | privilegedRequestPasswordAuthentication(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.
|
protected void | |
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
The auth)Authenticator that should be used by this
HttpURLConnection .Overrides java. Authenticator to be used
when authentication is requested through the HTTP protocol for
this HttpURLConnection .
|
public void | setConnectTimeout(int
an timeout)int that specifies the connect
timeout value in millisecondsOverrides java. |
private void | |
public static void | setDefaultAuthenticator(HttpAuthenticator a)
Deprecated
Use java.net.Authenticator.setDefault() instead.
|
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. |
public void | setRequestMethod(String
the HTTP method method)Overrides java.
|
public void | setRequestProperty(String
the keyword by which the request is known
(e.g., " key, String Accept ").the value to be set value)Overrides java. |
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 | |
pack-priv SocketPermission | URLtoSocketPermission(URL url)
if the caller has a URLPermission for connecting to the given URL, then return a SocketPermission which permits access to that destination. |
public boolean | usingProxy()
Implements abstract java. |
pack-priv boolean | |
private static void | |
private void |