@Provider
@Produces(value="application/x-java-serialized-object")
@Consumes(value="application/x-java-serialized-object")
@Deprecated
public class SerializableProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyReader<java.io.Serializable>, javax.ws.rs.ext.MessageBodyWriter<java.io.Serializable>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APPLICATION_SERIALIZABLE
Deprecated.
|
static javax.ws.rs.core.MediaType |
APPLICATION_SERIALIZABLE_TYPE
Deprecated.
|
| Constructor and Description |
|---|
SerializableProvider()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(java.io.Serializable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
Deprecated.
|
java.io.Serializable |
readFrom(java.lang.Class<java.io.Serializable> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
Deprecated.
|
void |
writeTo(java.io.Serializable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
Deprecated.
|
public static final javax.ws.rs.core.MediaType APPLICATION_SERIALIZABLE_TYPE
public static final java.lang.String APPLICATION_SERIALIZABLE
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.io.Serializable>public long getSize(java.io.Serializable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.io.Serializable>public void writeTo(java.io.Serializable t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.io.Serializable>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<java.io.Serializable>public java.io.Serializable readFrom(java.lang.Class<java.io.Serializable> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<java.io.Serializable>java.io.IOExceptionjavax.ws.rs.WebApplicationException