public interface HttpConnection
| Modifier and Type | Method and Description |
|---|---|
void |
connect(HttpRequestBody body,
HttpCredentials cred) |
void |
disconnect() |
HeaderSet |
getResponseHeaders() |
java.lang.String |
getResponseMessage() |
int |
getResponseStatus() |
java.io.InputStream |
getResponseStream() |
void |
setChunked(boolean chunked) |
void |
setFollowRedirect(boolean follow) |
void |
setGzip(boolean gzip) |
void |
setHttpVersion(java.lang.String ver) |
void |
setPreemptiveAuthentication(boolean preemptiveAuthentication) |
void |
setRequestHeaders(HeaderSet headers) |
void |
setRequestMethod(java.lang.String method,
boolean with_content) |
void |
setTimeout(int seconds) |
void connect(HttpRequestBody body, HttpCredentials cred) throws HttpClientException
HttpClientExceptionvoid disconnect()
throws HttpClientException
HttpClientExceptionvoid setHttpVersion(java.lang.String ver)
throws HttpClientException
HttpClientExceptionvoid setRequestHeaders(HeaderSet headers) throws HttpClientException
HttpClientExceptionvoid setRequestMethod(java.lang.String method,
boolean with_content)
throws HttpClientException
HttpClientExceptionvoid setFollowRedirect(boolean follow)
void setTimeout(int seconds)
void setGzip(boolean gzip)
void setChunked(boolean chunked)
void setPreemptiveAuthentication(boolean preemptiveAuthentication)
int getResponseStatus()
throws HttpClientException
HttpClientExceptionjava.lang.String getResponseMessage()
throws HttpClientException
HttpClientExceptionHeaderSet getResponseHeaders() throws HttpClientException
HttpClientExceptionjava.io.InputStream getResponseStream()
throws HttpClientException
HttpClientExceptionCopyright © 2015-2020 EXPath. All Rights Reserved