Class LinkFormatProvider
java.lang.Object
org.fcrepo.http.commons.responses.LinkFormatProvider
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>
@Provider
@Produces("application/link-format")
public class LinkFormatProvider
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>
Writer for application/link-format bodies.
- Since:
- 2017-10-25
- Author:
- whikloj
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(LinkFormatStream links, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) voidwriteTo(LinkFormatStream links, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
LinkFormatProvider
public LinkFormatProvider()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>
-
getSize
public long getSize(LinkFormatStream links, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>
-
writeTo
public void writeTo(LinkFormatStream links, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws javax.ws.rs.WebApplicationException- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>- Throws:
javax.ws.rs.WebApplicationException
-