Package org.nuxeo.ecm.webengine.model.io
Class ResourceWriter
java.lang.Object
org.nuxeo.ecm.webengine.model.io.ResourceWriter
- All Implemented Interfaces:
 jakarta.ws.rs.ext.MessageBodyWriter<Resource>
@Produces({"text/html","*/*"})
public class ResourceWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<Resource>
- Author:
 - Bogdan Stefanescu
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(Resource arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4) booleanisWriteable(Class<?> arg0, Type type, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3) voidwriteTo(Resource t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)  
- 
Constructor Details
- 
ResourceWriter
public ResourceWriter() 
 - 
 - 
Method Details
- 
writeTo
public void writeTo(Resource t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException- Specified by:
 writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Resource>- Throws:
 IOException
 - 
getSize
public long getSize(Resource arg0, Class<?> arg1, Type arg2, Annotation[] arg3, jakarta.ws.rs.core.MediaType arg4) - Specified by:
 getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Resource>
 - 
isWriteable
public boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, jakarta.ws.rs.core.MediaType arg3) - Specified by:
 isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Resource>
 
 -