public abstract class HttpClientHelper extends ClientHelper
| Parameter name | Value type | Default value | Description | 
|---|---|---|---|
| adapter | String | org.restlet.engine.adapter.ClientAdapter | Class name of the adapter of low-level HTTP calls into high level requests and responses. | 
| Constructor and Description | 
|---|
HttpClientHelper(Client client)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract ClientCall | 
create(Request request)
Creates a low-level HTTP client call from a high-level request. 
 | 
ClientAdapter | 
getAdapter()
Returns the adapter from uniform calls to HTTP calls. 
 | 
int | 
getSocketConnectTimeoutMs()
Returns the connection timeout. 
 | 
void | 
handle(Request request,
      Response response)
Handles a call. 
 | 
void | 
setAdapter(ClientAdapter adapter)
Sets the adapter from uniform calls to HTTP calls. 
 | 
getConnectorService, getContext, getProtocols, start, stop, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic HttpClientHelper(Client client)
client - The client to help.public abstract ClientCall create(Request request)
request - The high-level request.public ClientAdapter getAdapter() throws java.lang.Exception
java.lang.Exceptionpublic int getSocketConnectTimeoutMs()
public void handle(Request request, Response response)
RestletHelperhandle in class RestletHelper<Client>request - The request to handle.response - The response to update.public void setAdapter(ClientAdapter adapter)
adapter - The adapter to set.Copyright © 2005-2024 Restlet.