Class JaxbStringReaderProvider
- java.lang.Object
-
- org.glassfish.jersey.jaxb.internal.JaxbStringReaderProvider
-
- Direct Known Subclasses:
JaxbStringReaderProvider.RootElementProvider
public class JaxbStringReaderProvider extends Object
String reader provider producingparam converter providerthat support conversion of a string value into a JAXB instance.- Author:
- Paul Sandoz, Marek Potociar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJaxbStringReaderProvider.RootElementProviderRoot element JAXBparam converter.
-
Constructor Summary
Constructors Constructor Description JaxbStringReaderProvider(Providers ps)Create JAXB string reader provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected jakarta.xml.bind.JAXBContextgetStoredJAXBContext(Class type)Get the stored JAXB context supporting the Java type.protected jakarta.xml.bind.UnmarshallergetUnmarshaller(Class type)Get JAXB unmarshaller for the type.
-
-
-
Constructor Detail
-
JaxbStringReaderProvider
public JaxbStringReaderProvider(Providers ps)
Create JAXB string reader provider.- Parameters:
ps- used to obtainJAXBContextandUnmarshallerContextResolvers
-
-
Method Detail
-
getUnmarshaller
protected final jakarta.xml.bind.Unmarshaller getUnmarshaller(Class type) throws jakarta.xml.bind.JAXBException
Get JAXB unmarshaller for the type.- Parameters:
type- Java type to be unmarshalled.- Returns:
- JAXB unmarshaller for the given type.
- Throws:
jakarta.xml.bind.JAXBException- in case there's an error retrieving the unmarshaller.
-
getStoredJAXBContext
protected jakarta.xml.bind.JAXBContext getStoredJAXBContext(Class type) throws jakarta.xml.bind.JAXBException
Get the stored JAXB context supporting the Java type.- Parameters:
type- Java type supported by the stored JAXB context.- Returns:
- stored JAXB context supporting the Java type.
- Throws:
jakarta.xml.bind.JAXBException- in case JAXB context retrieval fails.
-
-