Package org.nuxeo.ecm.webengine.model.io
Class ScriptFileWriter
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.io.ScriptFileWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<ScriptFile>
@Provider public class ScriptFileWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<ScriptFile>
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description ScriptFileWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(ScriptFile arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)booleanisWriteable(Class<?> arg0, Type type, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)voidwriteTo(ScriptFile t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
writeTo
public void writeTo(ScriptFile t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<ScriptFile>- Throws:
IOException
-
getSize
public long getSize(ScriptFile arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<ScriptFile>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, javax.ws.rs.core.MediaType arg3)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<ScriptFile>
-
-