@Provider @Consumes(value="*/*") public class JsrMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>
Constructor and Description |
---|
JsrMessageBodyReader() |
JsrMessageBodyReader(javax.json.JsonReaderFactory factory,
boolean closeStream) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadable(Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
javax.json.JsonStructure |
readFrom(Class<javax.json.JsonStructure> jsonStructureClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap,
InputStream inputStream) |
public JsrMessageBodyReader()
public JsrMessageBodyReader(javax.json.JsonReaderFactory factory, boolean closeStream)
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable
in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>
public javax.json.JsonStructure readFrom(Class<javax.json.JsonStructure> jsonStructureClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2014 The Apache Software Foundation. All rights reserved.