Package fish.payara.ejb.http.protocol.rs
Class ObjectStreamInvokeMethodMessageBodyReader
- java.lang.Object
-
- fish.payara.ejb.http.protocol.rs.ObjectStreamInvokeMethodMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
@Provider @Consumes("application/x-java-object") public class ObjectStreamInvokeMethodMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
Reads theInvokeMethodRequest
in case of java serialisation. In that case theInvokeMethodRequest.argValues
are java serialisedbyte[]
representation of the originalObject[]
for the method arguments so that the argumentObject
are not attempted to be de-serialised already duringreadFrom(Class, Type, Annotation[], MediaType, MultivaluedMap, InputStream)
.- Author:
- Jan Bernitt
-
-
Constructor Summary
Constructors Constructor Description ObjectStreamInvokeMethodMessageBodyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
InvokeMethodRequest
readFrom(Class<InvokeMethodRequest> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
-
readFrom
public InvokeMethodRequest readFrom(Class<InvokeMethodRequest> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-