@Provider @Consumes(value="application/x-java-object") public class ObjectStreamInvokeMethodMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
InvokeMethodRequest in case of java serialisation.
In that case the InvokeMethodRequest.argValues are java serialised byte[] representation of the
original Object[] for the method arguments so that the argument Object are not attempted to be
de-serialised already during readFrom(Class, Type, Annotation[], MediaType, MultivaluedMap, InputStream).| Constructor and Description |
|---|
ObjectStreamInvokeMethodMessageBodyReader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
InvokeMethodRequest |
readFrom(Class<InvokeMethodRequest> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
public ObjectStreamInvokeMethodMessageBodyReader()
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>public InvokeMethodRequest readFrom(Class<InvokeMethodRequest> 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<InvokeMethodRequest>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2019. All rights reserved.