浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

HttpURLConnection (Java Platform SE 6)

java.net

 

Class HttpURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by 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
posted on 2012-03-12 07:29  lexus  阅读(1133)  评论(0)    收藏  举报