Package fish.payara.ejb.http.protocol.rs
Class JsonbInvokeMethodMessageBodyReader
- java.lang.Object
-
- fish.payara.ejb.http.protocol.rs.JsonbInvokeMethodMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
@Provider @Consumes("application/json") public class JsonbInvokeMethodMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<InvokeMethodRequest>
Reads theInvokeMethodRequest
in case of JSONB serialisation. In that case theInvokeMethodRequest.argValues
are JSON representation of the originalObject[]
for the method arguments.- Author:
- Jan Bernitt
-
-
Constructor Summary
Constructors Constructor Description JsonbInvokeMethodMessageBodyReader()
-
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
-
-