|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.noelios.restlet.http.HttpConverter
com.noelios.restlet.http.HttpClientConverter
public class HttpClientConverter
Converter of high-level uniform calls into low-level HTTP client calls.
| Constructor Summary | |
|---|---|
HttpClientConverter(Context context)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addRequestHeaders(HttpClientCall httpCall,
Request request)
Adds the request headers of a uniform call to a HTTP client call. |
void |
commit(HttpClientCall httpCall,
Request request,
Response response)
Commits the changes to a handled HTTP client call back into the original uniform call. |
static void |
copyResponseTransportHeaders(Iterable<Parameter> headers,
Response response)
Copies headers into a response. |
protected void |
readResponseHeaders(HttpClientCall httpCall,
Response response)
Reads the response headers of a handled HTTP client call to update the original uniform call. |
HttpClientCall |
toSpecific(HttpClientHelper client,
Request request)
Converts a low-level HTTP call into a high-level uniform call. |
| Methods inherited from class com.noelios.restlet.http.HttpConverter |
|---|
addAdditionalHeaders, getContext, getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientConverter(Context context)
context - The context to use.| Method Detail |
|---|
public static void copyResponseTransportHeaders(Iterable<Parameter> headers,
Response response)
headers - The headers to copy.response - The response to update.Engine.copyResponseHeaders(Iterable, Response),
HttpClientCall.copyResponseEntityHeaders(Iterable,
org.restlet.resource.Representation)
protected void addRequestHeaders(HttpClientCall httpCall,
Request request)
httpCall - The HTTP client call.request - The high-level request.
public void commit(HttpClientCall httpCall,
Request request,
Response response)
httpCall - The original HTTP call.request - The high-level request.response - The high-level response.
protected void readResponseHeaders(HttpClientCall httpCall,
Response response)
httpCall - The handled HTTP client call.response - The high-level response to update.
public HttpClientCall toSpecific(HttpClientHelper client,
Request request)
client - The HTTP client that will handle the call.request - The high-level request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||