@Consumes(value="text/plain") public class PropertiesReader extends Object implements MessageBodyReader<Set<String>>
| Constructor and Description |
|---|
PropertiesReader() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable in interface MessageBodyReader<Set<String>>public Set<String> readFrom(Class<Set<String>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
readFrom in interface MessageBodyReader<Set<String>>IOExceptionWebApplicationExceptionCopyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.