Hello
Sorry maybe question is obvious but was unable to find clear answer in
tutorials.
This code from tutorial
// Creating a minimal Restlet returning "Hello World"
Restlet restlet = new Restlet() {
@Override
public void handle(Request request, Response response) {
response.setEntity("Hello World!", MediaType.TEXT_PLAIN);
}
};
// Create the HTTP server and listen on port 8182
new Server(Protocol.HTTP, 8182, restlet).start();
The instance of of anonymous class is created per each client request ?
Or it is the same for all restlet server created ?
Thnx