Class DefaultBooleanWriter
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.DefaultBooleanWriter
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Boolean>,AsyncMessageBodyWriter<Boolean>
@Provider @Produces("text/plain") public class DefaultBooleanWriter extends Object implements AsyncMessageBodyWriter<Boolean>- Author:
- Jim Ma
-
-
Constructor Summary
Constructors Constructor Description DefaultBooleanWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Void>asyncWriteTo(Boolean t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, AsyncOutputStream entityStream)longgetSize(Boolean o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)voidwriteTo(Boolean t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Boolean>
-
writeTo
public void writeTo(Boolean t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Boolean>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
getSize
public long getSize(Boolean o, Class type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Boolean>
-
asyncWriteTo
public CompletionStage<Void> asyncWriteTo(Boolean t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, AsyncOutputStream entityStream)
- Specified by:
asyncWriteToin interfaceAsyncMessageBodyWriter<Boolean>
-
-