Class SchemasWriter
java.lang.Object
org.nuxeo.ecm.restapi.jaxrs.io.types.AbstractTypeDefWriter
org.nuxeo.ecm.restapi.jaxrs.io.types.SchemasWriter
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Schemas>
@Provider
public class SchemasWriter
extends AbstractTypeDefWriter
implements javax.ws.rs.ext.MessageBodyWriter<Schemas>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Schemas 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
(Schemas schemas, 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 org.nuxeo.ecm.restapi.jaxrs.io.types.AbstractTypeDefWriter
buildComplexFields, getGenerator, writeDocType, writeFacet, writeField, writeSchema, writeSchemaObject
-
Constructor Details
-
SchemasWriter
public SchemasWriter()
-
-
Method Details
-
writeTo
public void writeTo(Schemas schemas, 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 interfacejavax.ws.rs.ext.MessageBodyWriter<Schemas>
- Throws:
IOException
-
getSize
public long getSize(Schemas arg0, Class<?> arg1, Type arg2, Annotation[] arg3, javax.ws.rs.core.MediaType arg4) - Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<Schemas>
-
isWriteable
public boolean isWriteable(Class<?> arg0, Type type, Annotation[] arg2, javax.ws.rs.core.MediaType arg3) - Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<Schemas>
-