@Produces(value={"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
public class WadlDocumentMessageBodyWriter
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>
| Modifier and Type | Field and Description |
|---|---|
private WadlDocumentToJson |
converter |
| Constructor and Description |
|---|
WadlDocumentMessageBodyWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(org.w3c.dom.Document document,
java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
boolean |
isWriteable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
void |
writeTo(org.w3c.dom.Document document,
java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> stringObjectMultivaluedMap,
java.io.OutputStream outputStream) |
private final WadlDocumentToJson converter
public boolean isWriteable(java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>public long getSize(org.w3c.dom.Document document,
java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>public void writeTo(org.w3c.dom.Document document,
java.lang.Class<?> aClass,
java.lang.reflect.Type type,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> stringObjectMultivaluedMap,
java.io.OutputStream outputStream)
throws java.io.IOException,
javax.ws.rs.WebApplicationException
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.w3c.dom.Document>java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.