Class AbstractJaxbWriteableProvider<T>
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.rest.AbstractWriteableProvider<T>
-
- dev.aherscu.qa.testing.utils.rest.AbstractJaxbWriteableProvider<T>
-
- Type Parameters:
T
- the concrete type of provider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<T>
public abstract class AbstractJaxbWriteableProvider<T> extends AbstractWriteableProvider<T>
Provides common XML marshalling over REST.- Author:
- aherscu
-
-
Field Summary
Fields Modifier and Type Field Description protected String
elementName
The root XML element name to use when marshalling.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractJaxbWriteableProvider(String elementName)
Initializes this provider to use a specified root XML element name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
Methods inherited from class dev.aherscu.qa.testing.utils.rest.AbstractWriteableProvider
getSize, isWriteable
-
-
-
-
Field Detail
-
elementName
protected final String elementName
The root XML element name to use when marshalling.
-
-
Constructor Detail
-
AbstractJaxbWriteableProvider
protected AbstractJaxbWriteableProvider(String elementName)
Initializes this provider to use a specified root XML element name.- Parameters:
elementName
- to be used as the name of the root XML element
-
-
Method Detail
-
writeTo
public void writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-