public class ServerAdapter extends Adapter
| Constructor and Description |
|---|
ServerAdapter(Context context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntityHeaders(HttpResponse response)
Adds the entity headers for the handled uniform call.
|
protected void |
addResponseHeaders(HttpResponse response)
Adds the response headers for the handled uniform call.
|
void |
commit(HttpResponse response)
Commits the changes to a handled uniform call back into the original HTTP
call.
|
HttpRequest |
toRequest(ServerCall httpCall)
Converts a low-level HTTP call into a high-level uniform request.
|
getContext, getLoggerpublic ServerAdapter(Context context)
context - The client context.protected void addEntityHeaders(HttpResponse response)
response - The response returned.protected void addResponseHeaders(HttpResponse response)
response - The response returned.public void commit(HttpResponse response)
response - The high-level response.public HttpRequest toRequest(ServerCall httpCall)
httpCall - The low-level HTTP call.Copyright © 2005–2025. All rights reserved.