org.apache.cxf.jaxrs.provider.jsrjsonp
Class JsrJsonpProvider
java.lang.Object
org.apache.cxf.jaxrs.provider.jsrjsonp.JsrJsonpProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>, javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
@Produces(value={"application/json","application/*+json"})
@Consumes(value={"application/json","application/*+json"})
@Provider
public class JsrJsonpProvider- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>, javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
|
Method Summary |
long |
getSize(javax.json.JsonStructure t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
|
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)
|
void |
writeTo(javax.json.JsonStructure t,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsrJsonpProvider
public JsrJsonpProvider()
isWriteable
public boolean isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
getSize
public long getSize(javax.json.JsonStructure t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
writeTo
public void writeTo(javax.json.JsonStructure t,
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:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonStructure>
- Throws:
IOException
javax.ws.rs.WebApplicationException
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<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:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<javax.json.JsonStructure>
- Throws:
IOException
javax.ws.rs.WebApplicationException
Apache CXF