@Provider @Produces(value={"application/xml","application/*+xml","text/xml"}) @Consumes(value={"application/xml","application/*+xml","text/xml"}) public class AegisElementProvider<T> extends AbstractAegisProvider<T>
readXsiType, resolver, writeXsiType
Constructor and Description |
---|
AegisElementProvider() |
Modifier and Type | Method and Description |
---|---|
protected XMLStreamReader |
createStreamReader(AegisType topType,
InputStream is) |
protected XMLStreamWriter |
createStreamWriter(QName typeQName,
String enc,
OutputStream os) |
T |
readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is) |
void |
writeTo(T obj,
Class<?> type,
Type genericType,
Annotation[] anns,
javax.ws.rs.core.MediaType m,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os) |
getAegisContext, getSize, isReadable, isSupported, isWriteable, setReadXsiType, setWriteXsiType
public T readFrom(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType m, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException
IOException
protected XMLStreamReader createStreamReader(AegisType topType, InputStream is) throws Exception
Exception
public void writeTo(T obj, Class<?> type, Type genericType, Annotation[] anns, javax.ws.rs.core.MediaType m, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException
IOException
protected XMLStreamWriter createStreamWriter(QName typeQName, String enc, OutputStream os) throws Exception
Exception
Apache CXF