HttpURLConnection (Java Platform SE 6)
java.net
Class HttpURLConnection
java.lang.Objectjava.net.URLConnection
java.net.HttpURLConnection
- Direct Known Subclasses:
- HttpsURLConnection
public abstract class HttpURLConnection- extends URLConnection
A URLConnection with support for HTTP-specific features. See
the spec for
details.Each HttpURLConnection instance is used to make a single request
but the underlying network connection to the HTTP server may be
transparently shared by other instances. Calling the close() methods
on the InputStream or OutputStream of an HttpURLConnection
after a request may free network resources associated with this
instance but has no effect on any shared persistent connection.
Calling the disconnect() method may close the underlying socket
if a persistent connection is otherwise idle at that time.
HttpURLConnection (Java Platform SE 6)
chunkLength
protected int chunkLength
- The chunk-length when using chunked encoding streaming mode for output.
A value of-1
means chunked encoding is disabled for output.
- Since:
- 1.5
fixedContentLength
protected int fixedContentLength
- The fixed content-length when using fixed-length streaming mode.
A value of-1
means fixed-length streaming mode is disabled
for output.
- Since:
- 1.5