Nuxeo Enterprise Platform 5.4

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

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.io.URLWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<java.net.URL>

@Provider
public class URLWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<java.net.URL>

Author:
Bogdan Stefanescu

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

Constructor Detail

URLWriter

public URLWriter()
Method Detail

writeTo

public void writeTo(java.net.URL t,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<java.net.URL>
Throws:
java.io.IOException

getSize

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

isWriteable

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.