org.glassfish.jersey.examples.sysprops
Class PropertiesReader
java.lang.Object
org.glassfish.jersey.examples.sysprops.PropertiesReader
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<Set<String>>
@Consumes(value="text/plain")
public class PropertiesReader
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<Set<String>>
- Author:
- Martin Matula (martin.matula at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesReader
public PropertiesReader()
isReadable
public boolean isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Set<String>>
readFrom
public Set<String> readFrom(Class<Set<String>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
throws IOException,
javax.ws.rs.WebApplicationException
- Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Set<String>>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.