@Provider @Produces(value={"text/plain; charset=utf-8","text/csv"}) public class ErrorEntityMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<ErrorEntity>
Constructor and Description |
---|
ErrorEntityMessageBodyWriter() |
Modifier and Type | Method and Description |
---|---|
long |
getSize(ErrorEntity errorEntity,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(ErrorEntity errorEntity,
Class<?> aClass,
Type type,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> multivaluedMap,
OutputStream entityStream) |
public boolean isWriteable(Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable
in interface javax.ws.rs.ext.MessageBodyWriter<ErrorEntity>
public long getSize(@Nullable ErrorEntity errorEntity, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<ErrorEntity>
public void writeTo(@Nullable ErrorEntity errorEntity, Class<?> aClass, Type type, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> multivaluedMap, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<ErrorEntity>
IOException
javax.ws.rs.WebApplicationException
Copyright © 2021 Atlassian. All rights reserved.