@Provider public class OslcRdfJsonCollectionProvider extends AbstractOslcRdfJsonProvider implements javax.ws.rs.ext.MessageBodyReader<Collection<Object>>, javax.ws.rs.ext.MessageBodyWriter<Collection<Object>>
httpServletRequest| Constructor and Description |
|---|
OslcRdfJsonCollectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Collection<Object> collection,
Class<?> type,
Type genericType,
Annotation[] annotation,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isReadable(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) |
Collection<Object> |
readFrom(Class<Collection<Object>> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,String> map,
InputStream inputStream) |
void |
writeTo(Collection<Object> collection,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<String,Object> map,
OutputStream outputStream) |
buildBadRequestResponse, isOslcQuery, isReadable, isWriteable, readFrom, writeTo, writeTopublic long getSize(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotation, javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<Collection<Object>>public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Collection<Object>>public void writeTo(Collection<Object> collection, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> map, OutputStream outputStream) throws IOException, javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Collection<Object>>IOExceptionjavax.ws.rs.WebApplicationExceptionpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<Collection<Object>>public Collection<Object> readFrom(Class<Collection<Object>> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> map, InputStream inputStream) throws IOException, javax.ws.rs.WebApplicationException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<Collection<Object>>IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2016. All rights reserved.