Class UnhealthySubscriptionListPlainTextBodyWriter

java.lang.Object
pl.allegro.tech.hermes.management.api.writer.UnhealthySubscriptionListPlainTextBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<List<pl.allegro.tech.hermes.api.UnhealthySubscription>>

@Provider @Produces("text/plain") public class UnhealthySubscriptionListPlainTextBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
  • Constructor Details

    • UnhealthySubscriptionListPlainTextBodyWriter

      public UnhealthySubscriptionListPlainTextBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
    • getSize

      public long getSize(List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
    • writeTo

      public void writeTo(List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, 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:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException