Package org.nuxeo.ecm.webengine.model.io
Class URLWriter
java.lang.Object
org.nuxeo.ecm.webengine.model.io.URLWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<URL>
- Author:
- Bogdan Stefanescu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize(URL 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(URL t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
URLWriter
public URLWriter()
-
-
Method Details
-
writeTo
public void writeTo(URL 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<URL>- Throws:
IOException
-
getSize
public long getSize(URL arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<URL>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<URL>
-