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 java.lang.Object
implements MessageBodyReader<EventProcessor>

MessageBodyWriter for EventProcessor.

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

Constructor Summary
EventProcessorReader()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> aClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
           
 EventProcessor readFrom(java.lang.Class<EventProcessor> eventProcessorClass, java.lang.reflect.Type type, java.lang.annotation.Annotation[] annotations, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.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(java.lang.Class<?> aClass,
                          java.lang.reflect.Type type,
                          java.lang.annotation.Annotation[] annotations,
                          MediaType mediaType)
Specified by:
isReadable in interface MessageBodyReader<EventProcessor>

readFrom

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


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