Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.jaxrs.views
Class ViewMessageBodyWriter

java.lang.Object
  extended by org.nuxeo.ecm.webengine.jaxrs.views.ViewMessageBodyWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<View>

@Provider
public class ViewMessageBodyWriter
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<View>

Author:
Bogdan Stefanescu

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

Constructor Detail

ViewMessageBodyWriter

public ViewMessageBodyWriter()
Method Detail

writeTo

public void writeTo(View 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:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<View>
Throws:
IOException

getSize

public long getSize(View arg0,
                    Class<?> arg1,
                    Type arg2,
                    Annotation[] arg3,
                    javax.ws.rs.core.MediaType arg4)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<View>

isWriteable

public boolean isWriteable(Class<?> arg0,
                           Type type,
                           Annotation[] arg2,
                           javax.ws.rs.core.MediaType arg3)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<View>

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.