Class PropertiesReader
- java.lang.Object
-
- org.glassfish.jersey.examples.sysprops.PropertiesReader
-
- All Implemented Interfaces:
MessageBodyReader<Set<String>>
@Consumes("text/plain") public class PropertiesReader extends Object implements MessageBodyReader<Set<String>>
- Author:
- Martin Matula
-
-
Constructor Summary
Constructors Constructor Description PropertiesReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisReadable(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)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadablein interfaceMessageBodyReader<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:
readFromin interfaceMessageBodyReader<Set<String>>- Throws:
IOExceptionWebApplicationException
-
-