public class HttpRequestImpl extends java.lang.Object implements HttpRequest
| Constructor and Description |
|---|
HttpRequestImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHref() |
java.lang.String |
getHttpVersion() |
java.lang.String |
getMethod() |
boolean |
isChunked() |
boolean |
isPreemptiveAuthentication() |
HttpResponse |
send(Result result,
HttpConnection conn,
HttpCredentials cred) |
void |
setBody(HttpRequestBody body) |
void |
setChunked(boolean chunked) |
void |
setDefaultCharset(java.lang.String charset) |
void |
setFollowRedirect(boolean follow) |
void |
setGzip(boolean gzip) |
void |
setHeaders(HeaderSet headers) |
void |
setHref(java.lang.String href) |
void |
setHttpVersion(java.lang.String ver) |
void |
setMethod(java.lang.String method) |
void |
setOverrideType(java.lang.String type) |
void |
setPreemptiveAuthentication(boolean preemptiveAuthentication) |
void |
setStatusOnly(boolean only) |
void |
setTimeout(java.lang.Integer seconds) |
public HttpResponse send(Result result, HttpConnection conn, HttpCredentials cred) throws HttpClientException
send in interface HttpRequestHttpClientExceptionpublic java.lang.String getMethod()
getMethod in interface HttpRequestpublic void setMethod(java.lang.String method)
setMethod in interface HttpRequestpublic java.lang.String getHref()
getHref in interface HttpRequestpublic void setHref(java.lang.String href)
setHref in interface HttpRequestpublic java.lang.String getHttpVersion()
getHttpVersion in interface HttpRequestpublic void setHttpVersion(java.lang.String ver)
throws HttpClientException
setHttpVersion in interface HttpRequestHttpClientExceptionpublic void setDefaultCharset(java.lang.String charset)
setDefaultCharset in interface HttpRequestpublic void setOverrideType(java.lang.String type)
setOverrideType in interface HttpRequestpublic void setHeaders(HeaderSet headers)
setHeaders in interface HttpRequestpublic void setBody(HttpRequestBody body) throws HttpClientException
setBody in interface HttpRequestHttpClientExceptionpublic void setStatusOnly(boolean only)
setStatusOnly in interface HttpRequestpublic void setFollowRedirect(boolean follow)
setFollowRedirect in interface HttpRequestpublic void setTimeout(java.lang.Integer seconds)
setTimeout in interface HttpRequestpublic void setGzip(boolean gzip)
setGzip in interface HttpRequestpublic boolean isChunked()
isChunked in interface HttpRequestpublic void setChunked(boolean chunked)
setChunked in interface HttpRequestpublic boolean isPreemptiveAuthentication()
isPreemptiveAuthentication in interface HttpRequestpublic void setPreemptiveAuthentication(boolean preemptiveAuthentication)
setPreemptiveAuthentication in interface HttpRequestCopyright © 2015-2020 EXPath. All Rights Reserved