Package fish.payara.ejb.http.protocol.rs
Class JsonbLookupMessageBodyReader
- java.lang.Object
-
- fish.payara.ejb.http.protocol.rs.JsonbLookupMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<LookupRequest>
@Provider @Consumes("application/json") public class JsonbLookupMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<LookupRequest>
Reads theLookupRequest
in case of JSONB serialisation.- Author:
- Jan Bernitt
-
-
Constructor Summary
Constructors Constructor Description JsonbLookupMessageBodyReader()
-
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)
LookupRequest
readFrom(Class<LookupRequest> 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<LookupRequest>
-
readFrom
public LookupRequest readFrom(Class<LookupRequest> 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<LookupRequest>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-