Modifier and Type | Field and Description |
---|---|
protected volatile AuthCacheImpl | |
protected boolean | |
private static final boolean | |
private CacheRequest | cacheRequest
whether the response is to be cached |
private static final boolean | |
private HttpCapture | |
private final ReentrantLock | |
pack-priv volatile boolean | |
pack-priv boolean | |
protected String | |
private static final int | |
pack-priv static final int | httpPortNumber
Default port number for http daemons. |
private boolean | ignoreContinue
Response code for CONTINUE |
protected boolean | |
protected static final KeepAliveCache | |
pack-priv int | |
private static final boolean | |
pack-priv int | |
pack-priv volatile boolean | |
private static final PlatformLogger | |
protected int | |
pack-priv PosterOutputStream | |
protected boolean | |
pack-priv MessageHeader | |
private static final boolean | |
public boolean | |
private static final String | |
pack-priv boolean | |
protected URL | url
Url being fetched. |
public boolean |
Access | Constructor and Description |
---|---|
protected | |
private | |
protected | |
public | |
protected | |
private | |
public |
Modifier and Type | Method and Description |
---|---|
public void | |
protected boolean | |
private void | |
public void | |
public void | |
public void | |
public final AuthCacheImpl | |
pack-priv CacheRequest | |
protected int | |
private static int | |
public boolean | Returns: true iff http keep alive is set (i.e. enabled). Defaults to true if the system property http.keepAlive isn't set.
|
public InputStream | |
pack-priv int | |
public OutputStream | |
public String | Returns: the proxy host being used for this client, or null if we're not going through a proxy
|
public int | Returns: the proxy port being used for this client. Meaningless if getProxyHostUsed() gives null.
|
pack-priv String | |
public String | |
public String | |
public boolean | |
public boolean | |
protected boolean | |
public final boolean | |
public final void | |
private static void | |
private static void | |
public boolean | |
public static HttpClient | |
public static HttpClient | |
public static HttpClient | |
public static HttpClient | |
public static HttpClient | |
public static HttpClient | |
protected static Proxy | |
pack-priv static String | |
public void | openServer(String server, int port)
Overrides sun. |
protected void | |
public boolean | parseHTTP(MessageHeader responses, HttpURLConnection httpuc)
Parse the first line of the HTTP request. |
private boolean | |
private void | |
protected void | |
public static synchronized void | resetProperties()
Deprecated
-- system properties are no longer cached.
A NOP method kept for backwards binary compatibility
|
public void | |
public void | |
public void | |
private void | |
public String | |
public final void | |
public void | |
public void | |
public void |
authcache | back to summary |
---|---|
protected volatile AuthCacheImpl authcache |
cachedHttpClient | back to summary |
---|---|
protected boolean cachedHttpClient |
cacheNTLMProp | back to summary |
---|---|
private static final boolean cacheNTLMProp |
cacheRequest | back to summary |
---|---|
private CacheRequest cacheRequest whether the response is to be cached |
cacheSPNEGOProp | back to summary |
---|---|
private static final boolean cacheSPNEGOProp |
capture | back to summary |
---|---|
private HttpCapture capture |
clientLock | back to summary |
---|---|
private final ReentrantLock clientLock |
disableKeepAlive | back to summary |
---|---|
pack-priv volatile boolean disableKeepAlive |
failedOnce | back to summary |
---|---|
pack-priv boolean failedOnce |
host | back to summary |
---|---|
protected String host |
HTTP_CONTINUE | back to summary |
---|---|
private static final int HTTP_CONTINUE |
httpPortNumber | back to summary |
---|---|
pack-priv static final int httpPortNumber Default port number for http daemons. REMIND: make these private |
ignoreContinue | back to summary |
---|---|
private boolean ignoreContinue Response code for CONTINUE |
inCache | back to summary |
---|---|
protected boolean inCache |
kac | back to summary |
---|---|
protected static final KeepAliveCache kac |
keepAliveConnections | back to summary |
---|---|
pack-priv int keepAliveConnections |
keepAliveProp | back to summary |
---|---|
private static final boolean keepAliveProp |
keepAliveTimeout | back to summary |
---|---|
pack-priv int keepAliveTimeout |
keepingAlive | back to summary |
---|---|
pack-priv volatile boolean keepingAlive |
logger | back to summary |
---|---|
private static final PlatformLogger logger |
port | back to summary |
---|---|
protected int port |
poster | back to summary |
---|---|
pack-priv PosterOutputStream poster |
proxyDisabled | back to summary |
---|---|
protected boolean proxyDisabled |
requests | back to summary |
---|---|
pack-priv MessageHeader requests |
retryPostProp | back to summary |
---|---|
private static final boolean retryPostProp |
reuse | back to summary |
---|---|
public boolean reuse |
spnegoCBT | back to summary |
---|---|
private static final String spnegoCBT |
streaming | back to summary |
---|---|
pack-priv boolean streaming |
url | back to summary |
---|---|
protected URL url Url being fetched. |
usingProxy | back to summary |
---|---|
public boolean usingProxy |
HttpClient | back to summary |
---|---|
protected HttpClient() |
HttpClient | back to summary |
---|---|
private HttpClient(URL url) throws IOException |
HttpClient | back to summary |
---|---|
protected HttpClient(URL url, boolean proxyDisabled) throws IOException |
HttpClient | back to summary |
---|---|
public HttpClient(URL url, String proxyHost, int proxyPort) throws IOException |
HttpClient | back to summary |
---|---|
protected HttpClient(URL url, Proxy p, int to) throws IOException |
HttpClient | back to summary |
---|---|
private HttpClient(URL url, String proxyHost, int proxyPort, boolean proxyDisabled) throws IOException |
HttpClient | back to summary |
---|---|
public HttpClient(URL url, String proxyHost, int proxyPort, boolean proxyDisabled, int to) throws IOException |
afterConnect | back to summary |
---|---|
public void afterConnect() throws IOException, UnknownHostException |
available | back to summary |
---|---|
protected boolean available() |
checkTunneling | back to summary |
---|---|
private void checkTunneling(HttpURLConnection httpuc) throws IOException |
closeIdleConnection | back to summary |
---|---|
public void closeIdleConnection() |
closeServer | back to summary |
---|---|
public void closeServer() Overrides sun. Doc from sun. Close an open connection to the server.
|
finished | back to summary |
---|---|
public void finished() |
getAuthCache | back to summary |
---|---|
public final AuthCacheImpl getAuthCache() |
getCacheRequest | back to summary |
---|---|
pack-priv CacheRequest getCacheRequest() |
getDefaultPort | back to summary |
---|---|
protected int getDefaultPort() return default port number (subclasses may override) |
getDefaultPort | back to summary |
---|---|
private static int getDefaultPort(String proto) |
getHttpKeepAliveSet | back to summary |
---|---|
public boolean getHttpKeepAliveSet()
|
getInputStream | back to summary |
---|---|
public InputStream getInputStream() |
getKeepAliveTimeout | back to summary |
---|---|
pack-priv int getKeepAliveTimeout() |
getOutputStream | back to summary |
---|---|
public OutputStream getOutputStream() |
getProxyHostUsed | back to summary |
---|---|
public String getProxyHostUsed()
|
getProxyPortUsed | back to summary |
---|---|
public int getProxyPortUsed()
|
getRequestMethod | back to summary |
---|---|
pack-priv String getRequestMethod() |
getSpnegoCBT | back to summary |
---|---|
public String getSpnegoCBT() |
getURLFile | back to summary |
---|---|
public String getURLFile() throws IOException |
getUsingProxy | back to summary |
---|---|
public boolean getUsingProxy() |
isCachedConnection | back to summary |
---|---|
public boolean isCachedConnection() |
isInKeepAliveCache | back to summary |
---|---|
protected boolean isInKeepAliveCache() |
isKeepingAlive | back to summary |
---|---|
public final boolean isKeepingAlive() |
lock | back to summary |
---|---|
public final void lock() |
logError | back to summary |
---|---|
private static void logError(String msg) |
logFinest | back to summary |
---|---|
private static void logFinest(String msg) |
needsTunneling | back to summary |
---|---|
public boolean needsTunneling() |
New | back to summary |
---|---|
public static HttpClient New(URL url) throws IOException |
New | back to summary |
---|---|
public static HttpClient New(URL url, boolean useCache) throws IOException |
New | back to summary |
---|---|
public static HttpClient New(URL url, Proxy p, int to, boolean useCache, HttpURLConnection httpuc) throws IOException |
New | back to summary |
---|---|
public static HttpClient New(URL url, Proxy p, int to, HttpURLConnection httpuc) throws IOException |
New | back to summary |
---|---|
public static HttpClient New(URL url, String proxyHost, int proxyPort, boolean useCache) throws IOException |
New | back to summary |
---|---|
public static HttpClient New(URL url, String proxyHost, int proxyPort, boolean useCache, int to, HttpURLConnection httpuc) throws IOException |
newHttpProxy | back to summary |
---|---|
protected static Proxy newHttpProxy(String proxyHost, int proxyPort, String proto) |
normalizeCBT | back to summary |
---|---|
pack-priv static String normalizeCBT(String s) |
openServer | back to summary |
---|---|
public void openServer(String server, int port) throws IOException Overrides sun. Doc from sun. Open a connection to the server.
|
openServer | back to summary |
---|---|
protected void openServer() throws IOException |
parseHTTP | back to summary |
---|---|
public boolean parseHTTP(MessageHeader responses, HttpURLConnection httpuc) throws IOException Parse the first line of the HTTP request. It usually looks something like: "HTTP/1.0 <number> comment\r\n". |
parseHTTPHeader | back to summary |
---|---|
private boolean parseHTTPHeader(MessageHeader responses, HttpURLConnection httpuc) throws IOException |
privilegedOpenServer | back to summary |
---|---|
private void privilegedOpenServer(final InetSocketAddress server) throws IOException
|
putInKeepAliveCache | back to summary |
---|---|
protected void putInKeepAliveCache() |
resetProperties | back to summary |
---|---|
public static synchronized void resetProperties()
Deprecated -- system properties are no longer cached. A NOP method kept for backwards binary compatibility
|
setCacheRequest | back to summary |
---|---|
public void setCacheRequest(CacheRequest cacheRequest) |
setDoNotRetry | back to summary |
---|---|
public void setDoNotRetry(boolean value) |
setIgnoreContinue | back to summary |
---|---|
public void setIgnoreContinue(boolean value) |
superOpenServer | back to summary |
---|---|
private void superOpenServer(final String proxyHost, final int proxyPort) throws IOException, UnknownHostException |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object. |
unlock | back to summary |
---|---|
public final void unlock() |
writeRequests | back to summary |
---|---|
public void writeRequests(MessageHeader head)
Deprecated
|
writeRequests | back to summary |
---|---|
public void writeRequests(MessageHeader head, PosterOutputStream pos) throws IOException |
writeRequests | back to summary |
---|---|
public void writeRequests(MessageHeader head, PosterOutputStream pos, boolean streaming) throws IOException |