| java.lang.Object com.noelios.restlet.http.HttpConverter com.noelios.restlet.http.HttpClientConverter
HttpClientConverter | public class HttpClientConverter extends HttpConverter (Code) | | Converter of high-level uniform calls into low-level HTTP client calls.
author: Jerome Louvel (contact@noelios.com) |
HttpClientConverter | public HttpClientConverter(Context context)(Code) | | Constructor.
Parameters: context - The context to use. |
addRequestHeaders | protected void addRequestHeaders(HttpClientCall httpCall, Request request)(Code) | | Adds the request headers of a uniform call to a HTTP client call.
Parameters: httpCall - The HTTP client call. Parameters: request - The high-level request. |
commit | public void commit(HttpClientCall httpCall, Request request, Response response)(Code) | | Commits the changes to a handled HTTP client call back into the original
uniform call. The default implementation first invokes the
"addResponseHeaders" then asks the "htppCall" to send the response back
to the client.
Parameters: httpCall - The original HTTP call. Parameters: request - The high-level request. Parameters: response - The high-level response. |
readResponseHeaders | protected void readResponseHeaders(HttpClientCall httpCall, Response response)(Code) | | Reads the response headers of a handled HTTP client call to update the
original uniform call.
Parameters: httpCall - The handled HTTP client call. Parameters: response - The high-level response to update. |
toSpecific | public HttpClientCall toSpecific(HttpClientHelper client, Request request)(Code) | | Converts a low-level HTTP call into a high-level uniform call.
Parameters: client - The HTTP client that will handle the call. Parameters: request - The high-level request. A new high-level uniform call. |
|
|