Class JaxbStringReaderProvider
java.lang.Object
org.glassfish.jersey.jaxb.internal.JaxbStringReaderProvider
- Direct Known Subclasses:
JaxbStringReaderProvider.RootElementProvider
String reader provider producing
param converter provider
that
support conversion of a string value into a JAXB instance.- Author:
- Paul Sandoz, Marek Potociar
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.xml.bind.JAXBContext
getStoredJAXBContext
(Class type) Get the stored JAXB context supporting the Java type.protected final jakarta.xml.bind.Unmarshaller
getUnmarshaller
(Class type) Get JAXB unmarshaller for the type.
-
Constructor Details
-
JaxbStringReaderProvider
Create JAXB string reader provider.- Parameters:
ps
- used to obtainJAXBContext
andUnmarshaller
ContextResolvers
-
-
Method Details
-
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.
-