@Provider
@Produces(value="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 and Description |
|---|
UnhealthySubscriptionListPlainTextBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
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) |
public UnhealthySubscriptionListPlainTextBodyWriter()
public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>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)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>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
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.util.List<pl.allegro.tech.hermes.api.UnhealthySubscription>>java.io.IOExceptionjavax.ws.rs.WebApplicationException