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, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public 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.Exception
public int getSocketConnectTimeoutMs()
public void handle(Request request, Response response)
RestletHelper
handle
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.