Package org.jboss.resteasy.core.interception

Examples of org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl


      }

      try
      {
         final Map<String, Object> attributes = new HashMap<String, Object>();
         MessageBodyReaderContextImpl messageBodyReaderContext = new MessageBodyReaderContextImpl(interceptors, reader, type,
                 genericType, annotations, mediaType, requestHeaders, inputStream)
         {
            @Override
            public Object getAttribute(String attribute)
            {
               return attributes.get(attribute);
            }

            @Override
            public void setAttribute(String name, Object value)
            {
               attributes.put(name, value);
            }

            @Override
            public void removeAttribute(String name)
            {
               attributes.remove(name);
            }
         };
         return (T) messageBodyReaderContext
                 .proceed();
      }
      catch (Exception e)
      {
         if (e instanceof ReaderException)
View Full Code Here


         throw createReaderNotFound(genericType, mediaType);
      }

      try
      {
         return (T) new MessageBodyReaderContextImpl(interceptors, reader, type,
                 genericType, annotations, mediaType, requestHeaders, inputStream)
                 .proceed();
      }
      catch (Exception e)
      {
View Full Code Here

   {
      MessageBodyReader reader = factory.getMessageBodyReader(type,
            genericType, annotations, mediaType);
      if (reader == null)
         throw createReaderNotFound(genericType, mediaType);
      return (T) new MessageBodyReaderContextImpl(interceptors, reader, type,
            genericType, annotations, mediaType, requestHeaders, inputStream)
            .proceed();
   }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.