Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webengine.model.io
Class ScriptFileWriter

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.io.ScriptFileWriter
All Implemented Interfaces:
MessageBodyWriter<ScriptFile>

@Provider
public class ScriptFileWriter
extends Object
implements MessageBodyWriter<ScriptFile>

Author:
Bogdan Stefanescu

Constructor Summary
ScriptFileWriter()
           
 
Method Summary
 long getSize(ScriptFile arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4)
           
 boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, MediaType arg3)
           
 void writeTo(ScriptFile t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptFileWriter

public ScriptFileWriter()
Method Detail

writeTo

public void writeTo(ScriptFile t,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<String,Object> httpHeaders,
                    OutputStream entityStream)
             throws IOException
Specified by:
writeTo in interface MessageBodyWriter<ScriptFile>
Throws:
IOException

getSize

public long getSize(ScriptFile arg0,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    MediaType arg4)
Specified by:
getSize in interface MessageBodyWriter<ScriptFile>

isWriteable

public boolean isWriteable(Class<?> arg0,
                           Type type,
                           Annotation[] arg2,
                           MediaType arg3)
Specified by:
isWriteable in interface MessageBodyWriter<ScriptFile>

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.