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 Constructor Description LinkFormatProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(LinkFormatStream links, 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(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 Detail
-
LinkFormatProvider
public LinkFormatProvider()
-
-
Method Detail
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in 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:
getSize
in 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:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<LinkFormatStream>
- Throws:
javax.ws.rs.WebApplicationException
-
-