@Provider @Produces(value="*/*") public class OptionalIntMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<OptionalInt>
| Constructor and Description |
|---|
OptionalIntMessageBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(OptionalInt entity,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(OptionalInt entity,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public long getSize(OptionalInt entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<OptionalInt>public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<OptionalInt>public void writeTo(OptionalInt entity, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<OptionalInt>IOExceptionCopyright © 2020. All rights reserved.