举个例子。
我有资源
public class HelloWorldResource extends ServerResource {
@Get
public String represent(String arg) {
return "hello, world (from the cloud!)" + arg;
}
}
这是由
router.attach("/hi/{message}", HelloWorldResource.class);
是否可以配置路由,以便访问 /hi/somestuffhere 将使 restlet 在表示方法中填充 arg 参数?