@Provider @Consumes(value="application/x-kryo") @Produces(value="application/x-kryo") public class KryoMessageBodyProvider extends Object implements MessageBodyWriter<Object>, MessageBodyReader<Object>
ContextResolver<Kryo> registered.| Constructor and Description |
|---|
KryoMessageBodyProvider(Providers providers) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Object object,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
Object |
readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
writeTo(Object object,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public long getSize(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize in interface MessageBodyWriter<Object>public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable in interface MessageBodyWriter<Object>public void writeTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo in interface MessageBodyWriter<Object>IOExceptionWebApplicationExceptionpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isReadable in interface MessageBodyReader<Object>public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException
readFrom in interface MessageBodyReader<Object>IOExceptionWebApplicationExceptionCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.