public class HttpClientConnection extends Object
| 构造器和说明 |
|---|
HttpClientConnection(HttpClient httpClient,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHeader(String key,
String value) |
void |
close() |
void |
destroy() |
String |
getContentEncoding() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
getStatusCode() |
String |
getStatusMessage() |
void |
sendRequest() |
public HttpClientConnection(HttpClient httpClient,
URL url)
public OutputStream getOutputStream() throws IOException
IOExceptionpublic void sendRequest()
throws IOException
IOExceptionpublic int getStatusCode()
public String getStatusMessage()
public String getContentEncoding()
public InputStream getInputStream() throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void destroy()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.