/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }
/** * Starts the interceptor chain execution. * * @return an entity read from the stream. */ @Override @SuppressWarnings("unchecked") public Object proceed() throws IOException { if (!interceptors.hasNext()) { throw new ProcessingException(LocalizationMessages.ERROR_INTERCEPTOR_READER_PROCEED()); } final ReaderInterceptor interceptor = interceptors.next(); traceBefore(interceptor, MsgTraceEvent.RI_BEFORE); try { return interceptor.aroundReadFrom(this); } finally { processedCount++; traceAfter(interceptor, MsgTraceEvent.RI_AFTER); } }