资 源 简 介
gwt-rest-client is a simple rest request client for GWT.
gwt-rest-client can send rest request which is compatible to Spring MVC.
for example, I create a gwt-rest-client interface when I send rest request to http://twitter.com/statuses/user_timeline/hatebu.json?count=10.
```
/**
* Base URL Mapping
*/
@URLMapping("http://twitter.com/")
public interface TwitterRequest {
/**
* Restful WebService URL Mapping
*/
@URLMapping("statuses/user_timeline/{user}.json")
JsonpRequestClient timeline(
@URLParam("user") String path,
@QueryParam("count") Long count);
}
/**
*TwitterRequest Factory
*/
public interface TwitterRequestFactory extends RestRequestFactory {
// create TitterRequest
TwitterRequest create();
}
```
And, I send rest request to twitter by following code.
```
public class Sample implements EntryPoint {
// create Factory
TwitterRequestFactory factory = GWT.creat