org.jboss.resteasy.cdi.interceptors
Class BookReaderInterceptor

java.lang.Object
  extended by org.jboss.resteasy.cdi.interceptors.BookReaderInterceptor
All Implemented Interfaces:
ReaderInterceptor

@Provider
public class BookReaderInterceptor
extends Object
implements ReaderInterceptor

Version:
$Revision: 1.1 $ Copyright Jul 23, 2012
Author:
Ron Sigal

Constructor Summary
BookReaderInterceptor()
           
 
Method Summary
 Object aroundReadFrom(ReaderInterceptorContext context)
          Interceptor method wrapping calls to MessageBodyReader.readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookReaderInterceptor

public BookReaderInterceptor()
Method Detail

aroundReadFrom

public Object aroundReadFrom(ReaderInterceptorContext context)
                      throws IOException,
                             WebApplicationException
Description copied from interface: ReaderInterceptor
Interceptor method wrapping calls to MessageBodyReader.readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream). The parameters of the wrapped method called are available from context. Implementations of this method SHOULD explicitly call ReaderInterceptorContext.proceed() to invoke the next interceptor in the chain, and ultimately the wrapped method.

Specified by:
aroundReadFrom in interface ReaderInterceptor
Parameters:
context - invocation context.
Returns:
result of next interceptor invoked or the wrapped method if last interceptor in chain.
Throws:
IOException - if an IO error arises.
WebApplicationException - thrown by wrapped method.


Copyright © 2013. All Rights Reserved.