Class UnhealthySubscriptionListPlainTextBodyWriter
- java.lang.Object
-
- pl.allegro.tech.hermes.management.api.writer.UnhealthySubscriptionListPlainTextBodyWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
@Provider @Produces("text/plain") public class UnhealthySubscriptionListPlainTextBodyWriter extends java.lang.Object implements javax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
-
-
Constructor Summary
Constructors Constructor Description UnhealthySubscriptionListPlainTextBodyWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)voidwriteTo(java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
-
-
-
Method Detail
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
-
getSize
public long getSize(java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>
-
writeTo
public void writeTo(java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription> unhealthySubscriptionList, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-