Hello Byron,
from what I notice in the source code, the Validator does not stop the handling
of the request, and just sets the status of the Response to "bad request". The
javadocs mention that the beforeHandle method returns the continuation status,
and the validate* methods mention that the "bad request" status is set to the
response in case of failure. I'm not sure the javadocs are clear enough. I'll
ask Jérôme.
For the moment, you can override the current behaviour as follow:
Validator validator = new Validator(){
@Override
protected int beforeHandle(Request request, Response response) {
int i = super.beforeHandle(request, response);
if(response.getStatus().isError()){
return Filter.STOP;
}
return i;
}
};
Best regards,
Thierry Boileau
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2703725