I’ve been looking at Restlet for a few hours and can’t seem to make head or tails out of it.
I was looking for a framework that I could use to approximate the behavior or CherryPy.
I see a previous StackOverflow post here which lists OOWeb and Strips as possible Java equivalents to CherryPy — it’s an old question and I’m not sure of the current state of these two frameworks.
What I really want to do is to implement this interface:
public interface ArithmaticResource {
@Get("json")
public int add (int n0, int n1);
@Get("json")
public int add (int n0, int n1, int n2);
}
And, allow it to be invoked using a cURL like interface — perhaps OOWeb would be a better fit?
Thanks in advance.
What you are trying to achieve looks like an RPC interface than a REST design, but you could try this with Restlet: