Package io.narayana.lra.provider
Class ParticipantStatusOctetStreamProvider
java.lang.Object
io.narayana.lra.provider.ParticipantStatusOctetStreamProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.lra.annotation.ParticipantStatus>
@Provider
@Produces("application/octet-stream")
public class ParticipantStatusOctetStreamProvider
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.lra.annotation.ParticipantStatus>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(org.eclipse.microprofile.lra.annotation.ParticipantStatus participantStatus, 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(org.eclipse.microprofile.lra.annotation.ParticipantStatus participantStatus, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
ParticipantStatusOctetStreamProvider
public ParticipantStatusOctetStreamProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.lra.annotation.ParticipantStatus>
-
getSize
public long getSize(org.eclipse.microprofile.lra.annotation.ParticipantStatus participantStatus, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<org.eclipse.microprofile.lra.annotation.ParticipantStatus>
-
writeTo
public void writeTo(org.eclipse.microprofile.lra.annotation.ParticipantStatus participantStatus, 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<org.eclipse.microprofile.lra.annotation.ParticipantStatus>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-