Class QuarkusJsonbSerializer
- java.lang.Object
-
- javax.json.bind.spi.JsonbProvider
-
- org.eclipse.yasson.JsonBindingProvider
-
- org.jboss.resteasy.plugins.providers.jsonb.AbstractJsonBindingProvider
-
- org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
-
- io.quarkus.resteasy.common.runtime.jsonb.QuarkusJsonbSerializer
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Object>,javax.ws.rs.ext.MessageBodyWriter<Object>,org.jboss.resteasy.spi.AsyncMessageBodyWriter<Object>
@Provider @Produces("*/*") @Consumes("*/*") @Priority(4800) public class QuarkusJsonbSerializer extends org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProviderprovider that can produce JSON by default, removing the need for @Produces and @Consumes everywhere
-
-
Constructor Summary
Constructors Constructor Description QuarkusJsonbSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>asyncWriteTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)-
Methods inherited from class org.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
getSize, readFrom
-
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<Object>- Overrides:
isReadablein classorg.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<Object>- Overrides:
isWriteablein classorg.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
-
writeTo
public void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<Object>- Overrides:
writeToin classorg.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, org.jboss.resteasy.spi.AsyncOutputStream entityStream)
- Specified by:
asyncWriteToin interfaceorg.jboss.resteasy.spi.AsyncMessageBodyWriter<Object>- Overrides:
asyncWriteToin classorg.jboss.resteasy.plugins.providers.jsonb.JsonBindingProvider
-
-