资 源 简 介
Restly is a simple framework for building RESTful webservices in Java.
Features
Resources are represented by Classes identified with a @Resource("...") annotation and automatically discovered from the WEB-INF/classes directory.
Parameter to @Resource is the path that the resource is bound to, supporting templating with {...}.
HTTP methods map to methods on the resource class and MAY return an instance of a Representation, which will get returned to the client.
So far, includes 2 representations:
StringRepresentation: returns the given String as the entity body and sets the content type to text/plain
SerializedRepresentation: takes an object and serializes it with XStream as text/xml or application/json, depending on the provided Accept request header.
Automatically conver