@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, setWriteXsiTypepublic 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
IOExceptionprotected XMLStreamReader createStreamReader(AegisType topType, InputStream is) throws Exception
Exceptionpublic 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
IOExceptionprotected XMLStreamWriter createStreamWriter(QName typeQName, String enc, OutputStream os) throws Exception
ExceptionApache CXF