public class RestSession
extends HTTPSession
It loops over server active request handler to find the first one capable of handling the request and return its response.
| Modifier and Type | Class and Description |
|---|---|
static class |
RestSession.Factory
This class makes the creation of HTTPServer easier.
|
| Constructor and Description |
|---|
RestSession(RestServer server)
Creates a new REST session for given server.
|
| Modifier and Type | Method and Description |
|---|---|
protected HTTPResponse |
answer(HTTPRequest request)
Answers to the given request.
|
public RestSession(RestServer server)
server - the underlying REST server.