@Priority(value=4000) @Provider @Produces(value="application/json") @Consumes(value="application/json") public class JacksonJsonPropertyBoxProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<com.holonplatform.core.property.PropertyBox>, javax.ws.rs.ext.MessageBodyReader<com.holonplatform.core.property.PropertyBox>
PropertyBox type using Jackson as JSON serializer/deserializer.| Constructor and Description |
|---|
JacksonJsonPropertyBoxProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(com.holonplatform.core.property.PropertyBox 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) |
com.holonplatform.core.property.PropertyBox |
readFrom(Class<com.holonplatform.core.property.PropertyBox> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(com.holonplatform.core.property.PropertyBox t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<com.holonplatform.core.property.PropertyBox>public com.holonplatform.core.property.PropertyBox readFrom(Class<com.holonplatform.core.property.PropertyBox> 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
readFrom in interface javax.ws.rs.ext.MessageBodyReader<com.holonplatform.core.property.PropertyBox>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<com.holonplatform.core.property.PropertyBox>public long getSize(com.holonplatform.core.property.PropertyBox t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<com.holonplatform.core.property.PropertyBox>public void writeTo(com.holonplatform.core.property.PropertyBox 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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<com.holonplatform.core.property.PropertyBox>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2019 The Holon Platform. All rights reserved.