org.glassfish.jersey.examples.sysprops
Class PropertiesReader

java.lang.Object
  extended by org.glassfish.jersey.examples.sysprops.PropertiesReader
All Implemented Interfaces:
MessageBodyReader<Set<String>>

public class PropertiesReader
extends Object
implements MessageBodyReader<Set<String>>

Author:
Martin Matula (martin.matula at oracle.com)

Constructor Summary
PropertiesReader()
           
 
Method Summary
 boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 Set<String> readFrom(Class<Set<String>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesReader

public PropertiesReader()
Method Detail

isReadable

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

readFrom

public Set<String> readFrom(Class<Set<String>> type,
                            Type genericType,
                            Annotation[] annotations,
                            MediaType mediaType,
                            MultivaluedMap<String,String> httpHeaders,
                            InputStream entityStream)
                     throws IOException,
                            WebApplicationException
Specified by:
readFrom in interface MessageBodyReader<Set<String>>
Throws:
IOException
WebApplicationException


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