Class AegisElementProvider<T>
java.lang.Object
org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider<T>
org.apache.cxf.jaxrs.provider.aegis.AegisElementProvider<T>
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<T>,jakarta.ws.rs.ext.MessageBodyWriter<T>
@Provider
@Produces({"application/xml","application/*+xml","text/xml"})
@Consumes({"application/xml","application/*+xml","text/xml"})
public class AegisElementProvider<T>
extends AbstractAegisProvider<T>
-
Field Summary
Fields inherited from class org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider
readXsiType, resolver, writeXsiType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected XMLStreamReadercreateStreamReader(org.apache.cxf.aegis.type.AegisType topType, InputStream is) protected XMLStreamWritercreateStreamWriter(QName typeQName, String enc, OutputStream os) readFrom(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType m, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, InputStream is) voidwriteTo(T obj, Class<?> type, Type genericType, Annotation[] anns, jakarta.ws.rs.core.MediaType m, jakarta.ws.rs.core.MultivaluedMap<String, Object> headers, OutputStream os) Methods inherited from class org.apache.cxf.jaxrs.provider.aegis.AbstractAegisProvider
getAegisContext, getSize, isReadable, isSupported, isWriteable, setReadXsiType, setWriteXsiType
-
Constructor Details
-
AegisElementProvider
public AegisElementProvider()
-
-
Method Details
-
readFrom
public T readFrom(Class<T> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType m, jakarta.ws.rs.core.MultivaluedMap<String, String> headers, InputStream is) throws IOException- Throws:
IOException
-
createStreamReader
protected XMLStreamReader createStreamReader(org.apache.cxf.aegis.type.AegisType topType, InputStream is) throws Exception - Throws:
Exception
-
writeTo
public void writeTo(T obj, Class<?> type, Type genericType, Annotation[] anns, jakarta.ws.rs.core.MediaType m, jakarta.ws.rs.core.MultivaluedMap<String, Object> headers, OutputStream os) throws IOException- Throws:
IOException
-
createStreamWriter
protected XMLStreamWriter createStreamWriter(QName typeQName, String enc, OutputStream os) throws Exception - Throws:
Exception
-