Class JsonStructureProvider
- java.lang.Object
 - 
- org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
 - 
- org.jboss.resteasy.plugins.providers.jsonp.JsonStructureProvider
 
 
 
- 
- All Implemented Interfaces:
 javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>,javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>,AsyncBufferedMessageBodyWriter<javax.json.JsonStructure>,AsyncMessageBodyWriter<javax.json.JsonStructure>
@Consumes({"application/json","application/*+json","text/json"}) @Produces({"application/json","application/*+json","text/json"}) public class JsonStructureProvider extends AbstractJsonpProvider implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>, AsyncBufferedMessageBodyWriter<javax.json.JsonStructure>- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
 
- 
- 
Constructor Summary
Constructors Constructor Description JsonStructureProvider() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(javax.json.JsonStructure jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)javax.json.JsonStructurereadFrom(Class<javax.json.JsonStructure> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(javax.json.JsonStructure jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)- 
Methods inherited from class org.jboss.resteasy.plugins.providers.jsonp.AbstractJsonpProvider
findReader, findWriter, getCharset 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriter
asyncWriteTo 
 - 
 
 - 
 
- 
- 
Method Detail
- 
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
 isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>
 
- 
readFrom
public javax.json.JsonStructure readFrom(Class<javax.json.JsonStructure> 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:
 readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>- Throws:
 IOExceptionjavax.ws.rs.WebApplicationException
 
- 
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
 isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
 
- 
getSize
public long getSize(javax.json.JsonStructure jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
 getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
 
- 
writeTo
public void writeTo(javax.json.JsonStructure jsonStructure, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
 writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>- Throws:
 IOExceptionjavax.ws.rs.WebApplicationException
 
 - 
 
 -