Package ej.restserver
Class RestSession
- java.lang.Object
-
- HTTPSession
-
- ej.restserver.RestSession
-
public class RestSession extends HTTPSessionA REST session handles HTTP requests.It loops over server active request handler to find the first one capable of handling the request and return its response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestSession.FactoryThis class makes the creation of HTTPServer easier.
-
Constructor Summary
Constructors Constructor Description RestSession(RestServer server)Creates a new REST session for given server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HTTPResponseanswer(HTTPRequest request)Answers to the given request.
-
-
-
Constructor Detail
-
RestSession
public RestSession(RestServer server)
Creates a new REST session for given server.- Parameters:
server- the underlying REST server.
-
-