| com.noelios.restlet.http.HttpClientHelper com.noelios.restlet.ext.net.HttpClientHelper
HttpClientHelper | public class HttpClientHelper extends com.noelios.restlet.http.HttpClientHelper (Code) | | HTTP client connector using the HttpUrlConnectionCall. Here is the list of
parameters that are supported:
Parameter name |
Value type |
Default value |
Description |
chunkLength |
int |
0 (uses HttpURLConnection's default) |
The chunk-length when using chunked encoding streaming mode for response
entities. A value of -1 means chunked encoding is disabled for response
entities. |
followRedirects |
boolean |
false |
If true, the protocol will automatically follow redirects. If false, the
protocol will not automatically follow redirects. |
allowUserInteraction |
boolean |
false |
If true, this URL is being examined in a context in which it makes sense
to allow user interactions such as popping up an authentication dialog. |
useCaches |
boolean |
false |
If true, the protocol is allowed to use caching whenever it can. |
connectTimeout |
int |
0 |
Sets a specified timeout value, in milliseconds, to be used when opening
a communications link to the resource referenced. 0 means infinite timeout. |
readTimeout |
int |
0 |
Sets the read timeout to a specified timeout, in milliseconds. A timeout
of zero is interpreted as an infinite timeout. |
See Also: Networking
* Features author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public HttpClientCall | create(Request request) Creates a low-level HTTP client call from a high-level uniform call.
Parameters: request - The high-level request. | public int | getChunkLength() Returns the chunk-length when using chunked encoding streaming mode for
response entities. | public int | getConnectTimeout() Returns the timeout value, in milliseconds, to be used when opening a
communications link to the resource referenced. | public int | getReadTimeout() Returns the read timeout value. | public boolean | isAllowUserInteraction() Indicates if this URL is being examined in a context in which it makes
sense to allow user interactions such as popping up an authentication
dialog. | public boolean | isFollowRedirects() Indicates if the protocol will automatically follow redirects. | public boolean | isUseCaches() Indicates if the protocol is allowed to use caching whenever it can. |
HttpClientHelper | public HttpClientHelper(Client client)(Code) | | Constructor.
Parameters: client - The client to help. |
create | public HttpClientCall create(Request request)(Code) | | Creates a low-level HTTP client call from a high-level uniform call.
Parameters: request - The high-level request. A low-level HTTP client call. |
getChunkLength | public int getChunkLength()(Code) | | Returns the chunk-length when using chunked encoding streaming mode for
response entities. A value of -1 means chunked encoding is disabled for
response entities.
The chunk-length when using chunked encoding streaming mode forresponse entities. |
getConnectTimeout | public int getConnectTimeout()(Code) | | Returns the timeout value, in milliseconds, to be used when opening a
communications link to the resource referenced. 0 means infinite timeout.
The connection timeout value. |
getReadTimeout | public int getReadTimeout()(Code) | | Returns the read timeout value. A timeout of zero is interpreted as an
infinite timeout.
The read timeout value. |
isAllowUserInteraction | public boolean isAllowUserInteraction()(Code) | | Indicates if this URL is being examined in a context in which it makes
sense to allow user interactions such as popping up an authentication
dialog.
True if it makes sense to allow user interactions. |
isFollowRedirects | public boolean isFollowRedirects()(Code) | | Indicates if the protocol will automatically follow redirects.
True if the protocol will automatically follow redirects. |
isUseCaches | public boolean isUseCaches()(Code) | | Indicates if the protocol is allowed to use caching whenever it can.
True if the protocol is allowed to use caching whenever it can. |
|
|