Is there a place or a way to better get a full understanding of how to leverage the Restlet API? Specifically....
What is the difference between stating a Server such as:
new Server(Protocol.HTTP, 8800, SimplerTest.class).start();
And this way:
Server helloServer = new Server(Protocol.HTTP, 8111, MySeverStuff.class);
helloServer.start();
// where MyServerStuff has a plain @Get that returns a string
And this way:
Server nServer = new Server(Protocol.HTTP, 8110);
nServer.setNext(new MyTestServer()); // where MyTestServer is the class referenced
nServer.start();
And finally this:
Component component = new Component(); //creating a new component
component.getServers().add(Protocol.HTTP, 8200);
component.getDefaultHost().attach(new SimpleApplication());
component.start();
So I guess I seem to lack the true understanding of how certain methods are being leveraged. Now the book does not really and truly or fully explain such nuances, nor does it really enlighten about how to leverage: Directory, Routing, Context, Application, Filter, Message Headers, etc.
Would love to see a more indepth demo and code. Any idea where one can find such resources ?
Thanks