@Provider public class JSONEnabledCollectionProvider extends Object implements javax.ws.rs.ext.MessageBodyWriter<Collection<JSONEnabled>>
| Constructor and Description |
|---|
JSONEnabledCollectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Collection<JSONEnabled> objects,
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(Collection<JSONEnabled> objects,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public JSONEnabledCollectionProvider()
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Collection<JSONEnabled>>public long getSize(Collection<JSONEnabled> objects, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Collection<JSONEnabled>>public void writeTo(Collection<JSONEnabled> objects, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Collection<JSONEnabled>>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2018. All Rights Reserved.