Re: Invocation condition of ErrorReportValve

2012-11-28 Thread Michael-O
Am 2012-11-28 18:26, schrieb Mark Thomas: Michael-O <1983-01...@gmx.net> wrote: Hi, why does the ErrorReportValve trigger the report on this condition only? if ((statusCode < 400) || (response.getContentCount() > 0)) return; So, even if I do a reponse.setStatus(404), this valve is executed

Re: Invocation condition of ErrorReportValve

2012-11-28 Thread Mark Thomas
Michael-O <1983-01...@gmx.net> wrote: >Hi, > >why does the ErrorReportValve trigger the report on this condition >only? > > if ((statusCode < 400) || (response.getContentCount() > 0)) >return; > >So, even if I do a reponse.setStatus(404), this valve is executed. >According to the Jav

Invocation condition of ErrorReportValve

2012-11-28 Thread Michael-O
Hi, why does the ErrorReportValve trigger the report on this condition only? if ((statusCode < 400) || (response.getContentCount() > 0)) return; So, even if I do a reponse.setStatus(404), this valve is executed. According to the Javadoc: if setStatus is invoked [1], the response sh