Hi Dustin,

I've reproduced the error with a minimal test:


public class ApiApplication extends Application{
        
        public static final String TEST_URL = "test";
        
        public ApiApplication(Context context){
                super(context);
        }
        
        @Override
        public Restlet createInboundRoot(){
                
                Router router = new Router(this.getContext());
        router.attach("/" + TEST_URL, TestResource.class);
                
                return router;
        }
}



public class TestResource extends ServerResource {

        @Get
        public String doGet() {
                return "hello, world";
        }
        
        @Put
        public void store(Representation representation) {
                System.out.println("PUT");
        }


The GET method works properly, but the PUT method does not.

I don't know if it is important but I've just tested with development server.

Best regards,

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2669317

Reply via email to