org.glassfish.jersey.media.sse
Class EventProcessorReader

java.lang.Object
  extended by org.glassfish.jersey.media.sse.EventProcessorReader
All Implemented Interfaces:
MessageBodyReader<EventProcessor>

public class EventProcessorReader
extends Object
implements MessageBodyReader<EventProcessor>

MessageBodyWriter for EventProcessor.

Author:
Pavel Bucek (pavel.bucek at oracle.com)

Constructor Summary
EventProcessorReader()
           
 
Method Summary
 boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, MediaType mediaType)
           
 EventProcessor readFrom(Class<EventProcessor> eventProcessorClass, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventProcessorReader

public EventProcessorReader()
Method Detail

isReadable

public boolean isReadable(Class<?> aClass,
                          Type type,
                          Annotation[] annotations,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<EventProcessor>

readFrom

public EventProcessor readFrom(Class<EventProcessor> eventProcessorClass,
                               Type type,
                               Annotation[] annotations,
                               MediaType mediaType,
                               MultivaluedMap<String,String> headers,
                               InputStream inputStream)
                        throws IOException,
                               WebApplicationException
Specified by:
readFrom in interface MessageBodyReader<EventProcessor>
Throws:
IOException
WebApplicationException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.