Возьмите следующий пример.
У меня есть ресурс
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 в параметре arg в методе restlet заполнялся параметр restlet?