Hey, If my understanding is correct, Request.abort() allows server resources to not read a request entity that they know won't be accepted - unacceptable MIME type, too large...
I have however been incapable of getting this to work. Attached is a sample case, which should be compiled and run against Restlet 2.0m7. What it does is: - create a simple server resource that only accepts POST and immediately calls getRequest().abort(); - submit a "counting" input stream to that resource: the stream will count the number of bytes that it returns. - print the number of bytes that the server resource has read. This number is always the size of the submitted stream, which seems to defeat the purpose of Request.abort(). I might very well have misunderstood the purpose of the abort() method, or be doing something wrong. Can anyone point me in the right direction ? For reference, I'm running these tests: - with Restlet 2.0m7. - using org.restlet.ext.simple for the server connector. Oh, and as a side note, Restlet 2.0m7 isn't yet available in the issue tracker's versions. Cheers, Nicolas
Test.java
Description: Binary data

