| Modifier and Type | Field and Description |
|---|---|
| pack-priv HttpClient | |
| private SSLContext | |
| private TemporaryBufferEntity | |
| private Boolean | |
| private HostnameVerifier | |
| private boolean | |
| pack-priv String | |
| private Proxy | |
| private Integer | |
| pack-priv HttpUriRequest | |
| pack-priv HttpResponse | |
| private SSLConnectionSocketFactory | |
| private Integer | |
| pack-priv URL | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpClientConnection(String
url string urlStr, Proxy proxy proxy)Constructor for HttpClientConnection. |
| public | HttpClientConnection(String
url string urlStr, Proxy proxy proxy, HttpClient client cl)Constructor for HttpClientConnection. |
| Modifier and Type | Method and Description |
|---|---|
| public void | configure(KeyManager[]
the keymanager managing the key material used to authenticate
the local SSLSocket to its peer km, TrustManager[] the trustmanager responsible for managing the trust material
that is used when making trust decisions, and for deciding
whether credentials presented by a peer should be accepted. tm, SecureRandom the source of randomness for this generator or null. See
random)javax.Implements org. Configure the connection so that it can be used for https communication. |
| public void | |
| private void | |
| private HttpClient | |
| public int | getContentLength()
Implements org. Get content length |
| public String | getContentType()
Implements org. Get content type |
| public String | getHeaderField(String
the name of a header field. name)Implements org. Get header field. |
| public Map | getHeaderFields()
Implements org. Get map of header fields |
| public List | getHeaderFields(String
the name of a header field. name)Implements org. Get all values of given header field. |
| public InputStream | getInputStream()
Implements org. Get input stream |
| public OutputStream | getOutputStream()
Implements org. Get output stream |
| public String | getRequestMethod()
Implements org. Get request method |
| public int | getResponseCode()
Implements org. Get response code |
| public String | getResponseMessage()
Implements org. Get response message |
| private SSLContext | |
| private SSLConnectionSocketFactory | |
| public URL | |
| public void | |
| public void | setChunkedStreamingMode(int
The number of bytes to write in each chunk. If chunklen is
less than or equal to zero, a default value will be used. chunklen)Implements org. Set chunked streaming mode |
| public void | setConnectTimeout(int
an timeout)int that specifies the connect timeout value
in millisecondsImplements org. Set connect timeout |
| public void | setDoOutput(boolean
the new value. dooutput)Implements org. Set if to do output |
| public void | setFixedLengthStreamingMode(int
The number of bytes which will be written to the OutputStream. contentLength)Implements org. Set fixed length streaming mode |
| public void | setHostnameVerifier(HostnameVerifier
a hostnameverifier)javax. object.Implements org. Set the |
| public void | setInstanceFollowRedirects(boolean
a followRedirects)boolean indicating whether or not to follow
HTTP redirects.Implements org. Set whether or not to follow HTTP redirects. |
| public void | setReadTimeout(int
an readTimeout)int that specifies the timeout value to be
used in millisecondsImplements org. Set read timeout |
| public void | setRequestMethod(String
the HTTP method method)Implements org. Set request method |
| public void | setRequestProperty(String
the keyword by which the request is known (e.g., "
name, String Accept").the value associated with it. value)Implements org. Set request property |
| pack-priv void | |
| public void | setUseCaches(boolean
a usecaches)boolean indicating whether or not to allow
cachingImplements org. Set if to use caches |
| public boolean | usingProxy()
Implements org. Whether we use a proxy |
| client | back to summary |
|---|---|
| pack-priv HttpClient client | |
| ctx | back to summary |
|---|---|
| private SSLContext ctx | |
| entity | back to summary |
|---|---|
| private TemporaryBufferEntity entity | |
| followRedirects | back to summary |
|---|---|
| private Boolean followRedirects | |
| hostnameverifier | back to summary |
|---|---|
| private HostnameVerifier hostnameverifier | |
| isUsingProxy | back to summary |
|---|---|
| private boolean isUsingProxy | |
| method | back to summary |
|---|---|
| pack-priv String method | |
| proxy | back to summary |
|---|---|
| private Proxy proxy | |
| readTimeout | back to summary |
|---|---|
| private Integer readTimeout | |
| req | back to summary |
|---|---|
| pack-priv HttpUriRequest req | |
| resp | back to summary |
|---|---|
| pack-priv HttpResponse resp | |
| socketFactory | back to summary |
|---|---|
| private SSLConnectionSocketFactory socketFactory | |
| timeout | back to summary |
|---|---|
| private Integer timeout | |
| url | back to summary |
|---|---|
| pack-priv URL url | |
| usePooling | back to summary |
|---|---|
| private boolean usePooling | |
| HttpClientConnection | back to summary |
|---|---|
| public HttpClientConnection(String urlStr) throws MalformedURLException Constructor for HttpClientConnection.
| |
| HttpClientConnection | back to summary |
|---|---|
| public HttpClientConnection(String urlStr, Proxy proxy) throws MalformedURLException Constructor for HttpClientConnection.
| |
| HttpClientConnection | back to summary |
|---|---|
| public HttpClientConnection(String urlStr, Proxy proxy, HttpClient cl) throws MalformedURLException Constructor for HttpClientConnection.
| |
| configure | back to summary |
|---|---|
| public void configure(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException Implements org. Doc from org. Configure the connection so that it can be used for https communication.
| |
| connect | back to summary |
|---|---|
| public void connect() throws IOException Implements org. Doc from org. Connect
| |
| execute | back to summary |
|---|---|
| private void execute() throws IOException, ClientProtocolException | |
| getClient | back to summary |
|---|---|
| private HttpClient getClient() | |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() Implements org. Doc from org. Get content length
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements org. Doc from org. Get content type | |
| getHeaderField | back to summary |
|---|---|
| public String getHeaderField(String name) Implements org. Doc from org. Get header field. According to
RFC 2616
header field names are case insensitive. Header fields defined
as a comma separated list can have multiple header fields with the same
field name. This method only returns one of these header fields. If you
want the union of all values of all multiple header fields with the same
field name then use | |
| getHeaderFields | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get map of header fields | |
| getHeaderFields | back to summary |
|---|---|
| public List Implements org. Doc from org. Get all values of given header field. According to RFC 2616 header field names are case insensitive. Header fields defined as a comma separated list can have multiple header fields with the same field name. This method does not validate if the given header field is defined as a comma separated list. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements org. Doc from org. Get input stream
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Implements org. Doc from org. Get output stream
| |
| getRequestMethod | back to summary |
|---|---|
| public String getRequestMethod() Implements org. Doc from org. Get request method | |
| getResponseCode | back to summary |
|---|---|
| public int getResponseCode() throws IOException Implements org. Doc from org. Get response code
| |
| getResponseMessage | back to summary |
|---|---|
| public String getResponseMessage() throws IOException Implements org. Doc from org. Get response message
| |
| getSSLContext | back to summary |
|---|---|
| private SSLContext getSSLContext() | |
| getSSLSocketFactory | back to summary |
|---|---|
| private SSLConnectionSocketFactory getSSLSocketFactory() | |
| getURL | back to summary |
|---|---|
| public URL getURL() Implements org. Doc from org. Get URL | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(TemporaryBuffer buffer) Sets the buffer from which to take the request body
| |
| setChunkedStreamingMode | back to summary |
|---|---|
| public void setChunkedStreamingMode(int chunklen) Implements org. Doc from org. Set chunked streaming mode
| |
| setConnectTimeout | back to summary |
|---|---|
| public void setConnectTimeout(int timeout) Implements org. Doc from org. Set connect timeout
| |
| setDoOutput | back to summary |
|---|---|
| public void setDoOutput(boolean dooutput) Implements org. Doc from org. Set if to do output
| |
| setFixedLengthStreamingMode | back to summary |
|---|---|
| public void setFixedLengthStreamingMode(int contentLength) Implements org. Doc from org. Set fixed length streaming mode
| |
| setHostnameVerifier | back to summary |
|---|---|
| public void setHostnameVerifier(HostnameVerifier hostnameverifier) Implements org. Doc from org. Set the
| |
| setInstanceFollowRedirects | back to summary |
|---|---|
| public void setInstanceFollowRedirects(boolean followRedirects) Implements org. Doc from org. Set whether or not to follow HTTP redirects.
| |
| setReadTimeout | back to summary |
|---|---|
| public void setReadTimeout(int readTimeout) Implements org. Doc from org. Set read timeout
| |
| setRequestMethod | back to summary |
|---|---|
| public void setRequestMethod(String method) throws ProtocolException Implements org. Doc from org. Set request method
| |
| setRequestProperty | back to summary |
|---|---|
| public void setRequestProperty(String name, String value) Implements org. Doc from org. Set request property | |
| setSSLSocketFactory | back to summary |
|---|---|
| pack-priv void setSSLSocketFactory(SSLConnectionSocketFactory factory, boolean isDefault) | |
| setUseCaches | back to summary |
|---|---|
| public void setUseCaches(boolean usecaches) Implements org. Doc from org. Set if to use caches
| |
| usingProxy | back to summary |
|---|---|
| public boolean usingProxy() Implements org. Doc from org. Whether we use a proxy
| |