public <T> T doRead(Class<T> type, Type genericType, MediaType mediaType, Annotation[] annotations, MultivaluedMap<String, String> requestHeaders, InputStream inputStream) throws IOException { try { final Map<String, Object> attributes = new HashMap<String, Object>(); AbstractReaderInterceptorContext messageBodyReaderContext = new ClientReaderInterceptorContext(interceptors, factory, type, genericType, annotations, mediaType, requestHeaders, inputStream, attributes); return (T) messageBodyReaderContext .proceed(); } catch (Exception e) { if (e instanceof ReaderException) { throw (ReaderException) e; } else { throw new ReaderException(e); } } }
obj = messageBodyReaderContext.proceed(); } finally { tracingLogger.logDuration("RI_SUMMARY", timestamp, messageBodyReaderContext.getProcessedInterceptorCount());
useGeneric, annotations, media, getStringHeaders(), is, properties); try { finalObj = context.proceed(); obj = finalObj; } finally {
public <T> T doRead(Class<T> type, Type genericType, MediaType mediaType, Annotation[] annotations, MultivaluedMap<String, String> requestHeaders, InputStream inputStream) throws IOException { try { final Map<String, Object> attributes = new HashMap<String, Object>(); AbstractReaderInterceptorContext messageBodyReaderContext = new ClientReaderInterceptorContext(interceptors, factory, type, genericType, annotations, mediaType, requestHeaders, inputStream, attributes); return (T) messageBodyReaderContext .proceed(); } catch (Exception e) { if (e instanceof ReaderException) { throw (ReaderException) e; } else { throw new ReaderException(e); } } }
obj = messageBodyReaderContext.proceed(); } finally { tracingLogger.logDuration("RI_SUMMARY", timestamp, messageBodyReaderContext.getProcessedInterceptorCount());