|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.adapter.Adapter
org.restlet.engine.adapter.ClientAdapter
public class ClientAdapter
Converter of high-level uniform calls into low-level HTTP client calls.
Constructor Summary | |
---|---|
ClientAdapter(Context context)
Constructor. |
Method Summary | |
---|---|
void |
commit(ClientCall httpCall,
Request request,
Response response)
Commits the changes to a handled HTTP client call back into the original uniform call. |
protected void |
readResponseHeaders(ClientCall httpCall,
Response response)
Reads the response headers of a handled HTTP client call to update the original uniform call. |
ClientCall |
toSpecific(HttpClientHelper client,
Request request)
Converts a low-level HTTP call into a high-level uniform call. |
void |
updateResponse(Response response,
Status status,
ClientCall httpCall)
Updates the response with information from the lower-level HTTP client call. |
Methods inherited from class org.restlet.engine.adapter.Adapter |
---|
getContext, getLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientAdapter(Context context)
context
- The context to use.Method Detail |
---|
public void commit(ClientCall httpCall, Request request, Response response) throws Exception
httpCall
- The original HTTP call.request
- The high-level request.response
- The high-level response.
Exception
protected void readResponseHeaders(ClientCall httpCall, Response response)
httpCall
- The handled HTTP client call.response
- The high-level response to update.public ClientCall toSpecific(HttpClientHelper client, Request request)
client
- The HTTP client that will handle the call.request
- The high-level request.
public void updateResponse(Response response, Status status, ClientCall httpCall)
response
- The response to update.status
- The response status to apply.httpCall
- The source HTTP client call.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |