public class JaxbStringReaderProvider extends Object
param converter provider that
support conversion of a string value into a JAXB instance.| Modifier and Type | Class and Description |
|---|---|
static class |
JaxbStringReaderProvider.RootElementProvider
Root element JAXB
param converter. |
| Constructor and Description |
|---|
JaxbStringReaderProvider(jakarta.ws.rs.ext.Providers ps)
Create JAXB string reader provider.
|
| Modifier and Type | Method and Description |
|---|---|
protected jakarta.xml.bind.JAXBContext |
getStoredJAXBContext(Class type)
Get the stored JAXB context supporting the Java type.
|
protected jakarta.xml.bind.Unmarshaller |
getUnmarshaller(Class type)
Get JAXB unmarshaller for the type.
|
public JaxbStringReaderProvider(jakarta.ws.rs.ext.Providers ps)
ps - used to obtain JAXBContext and Unmarshaller ContextResolversprotected final jakarta.xml.bind.Unmarshaller getUnmarshaller(Class type) throws jakarta.xml.bind.JAXBException
type - Java type to be unmarshalled.jakarta.xml.bind.JAXBException - in case there's an error retrieving the unmarshaller.protected jakarta.xml.bind.JAXBContext getStoredJAXBContext(Class type) throws jakarta.xml.bind.JAXBException
type - Java type supported by the stored JAXB context.jakarta.xml.bind.JAXBException - in case JAXB context retrieval fails.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.