org.nuxeo.ecm.webengine.jaxrs.views
Class TemplateViewMessageBodyWriter
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.views.TemplateViewMessageBodyWriter
- All Implemented Interfaces:
- MessageBodyWriter<TemplateView>
@Provider
public class TemplateViewMessageBodyWriter
- extends Object
- implements MessageBodyWriter<TemplateView>
- Author:
- Bogdan Stefanescu
Method Summary |
long |
getSize(TemplateView arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
|
boolean |
isWriteable(Class<?> arg0,
Type type,
Annotation[] arg2,
MediaType arg3)
|
void |
writeTo(TemplateView t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
TemplateViewMessageBodyWriter
public TemplateViewMessageBodyWriter()
writeTo
public void writeTo(TemplateView t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
throws IOException
- Specified by:
writeTo
in interface MessageBodyWriter<TemplateView>
- Throws:
IOException
getSize
public long getSize(TemplateView arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4)
- Specified by:
getSize
in interface MessageBodyWriter<TemplateView>
isWriteable
public boolean isWriteable(Class<?> arg0,
Type type,
Annotation[] arg2,
MediaType arg3)
- Specified by:
isWriteable
in interface MessageBodyWriter<TemplateView>
Copyright © 2011 Nuxeo SAS. All Rights Reserved.