Package org.restlet.engine.adapter
Class ServerAdapter
java.lang.Object
org.restlet.engine.adapter.Adapter
org.restlet.engine.adapter.ServerAdapter
Converter of low-level HTTP server calls into high-level uniform calls.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEntityHeaders(HttpResponse response) Adds the entity headers for the handled uniform call.protected voidaddResponseHeaders(HttpResponse response) Adds the response headers for the handled uniform call.voidcommit(HttpResponse response) Commits the changes to a handled uniform call back into the original HTTP call.toRequest(ServerCall httpCall) Converts a low-level HTTP call into a high-level uniform request.Methods inherited from class org.restlet.engine.adapter.Adapter
getContext, getLogger
-
Constructor Details
-
ServerAdapter
Constructor.- Parameters:
context- The client context.
-
-
Method Details
-
addEntityHeaders
Adds the entity headers for the handled uniform call.- Parameters:
response- The response returned.
-
addResponseHeaders
Adds the response headers for the handled uniform call.- Parameters:
response- The response returned.
-
commit
Commits the changes to a handled uniform call back into the original HTTP call. The default implementation first invokes the "addResponseHeaders" then asks the "htppCall" to send the response back to the client.- Parameters:
response- The high-level response.
-
toRequest
Converts a low-level HTTP call into a high-level uniform request.- Parameters:
httpCall- The low-level HTTP call.- Returns:
- A new high-level uniform request.
-