Class SecureUnmarshaller
java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.xml.bind.Unmarshaller
jakarta.xml.bind.Unmarshaller.Listener
-
Constructor Summary
ConstructorDescriptionSecureUnmarshaller
(jakarta.xml.bind.Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
configureParserFactory
(SAXParserFactory factory, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) <A extends jakarta.xml.bind.annotation.adapters.XmlAdapter>
AgetAdapter
(Class<A> type) jakarta.xml.bind.attachment.AttachmentUnmarshaller
jakarta.xml.bind.Unmarshaller
jakarta.xml.bind.ValidationEventHandler
jakarta.xml.bind.Unmarshaller.Listener
getProperty
(String name) jakarta.xml.bind.UnmarshallerHandler
boolean
Deprecated.void
setAdapter
(jakarta.xml.bind.annotation.adapters.XmlAdapter adapter) <A extends jakarta.xml.bind.annotation.adapters.XmlAdapter>
voidsetAdapter
(Class<A> type, A adapter) void
setAttachmentUnmarshaller
(jakarta.xml.bind.attachment.AttachmentUnmarshaller au) void
setDelegate
(jakarta.xml.bind.Unmarshaller delegate) void
setEventHandler
(jakarta.xml.bind.ValidationEventHandler handler) void
setListener
(jakarta.xml.bind.Unmarshaller.Listener listener) void
setProperty
(String name, Object value) void
void
setValidating
(boolean validating) Deprecated.since JAXB2.0, please seegetSchema()
unmarshal
(InputStream is) Turns off expansion of external entities.unmarshal
(XMLEventReader reader) <T> jakarta.xml.bind.JAXBElement
<T> unmarshal
(XMLEventReader reader, Class<T> declaredType) unmarshal
(XMLStreamReader reader) <T> jakarta.xml.bind.JAXBElement
<T> unmarshal
(XMLStreamReader reader, Class<T> declaredType) <T> jakarta.xml.bind.JAXBElement
<T> <T> jakarta.xml.bind.JAXBElement
<T> unmarshal
(InputSource source) Turns off expansion of external entities.
-
Constructor Details
-
SecureUnmarshaller
public SecureUnmarshaller(jakarta.xml.bind.Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs)
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfacejakarta.xml.bind.Unmarshaller
-
getAttachmentUnmarshaller
public jakarta.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()- Specified by:
getAttachmentUnmarshaller
in interfacejakarta.xml.bind.Unmarshaller
-
getEventHandler
public jakarta.xml.bind.ValidationEventHandler getEventHandler() throws jakarta.xml.bind.JAXBException- Specified by:
getEventHandler
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
getListener
public jakarta.xml.bind.Unmarshaller.Listener getListener()- Specified by:
getListener
in interfacejakarta.xml.bind.Unmarshaller
-
getProperty
-
getSchema
- Specified by:
getSchema
in interfacejakarta.xml.bind.Unmarshaller
-
getUnmarshallerHandler
public jakarta.xml.bind.UnmarshallerHandler getUnmarshallerHandler()- Specified by:
getUnmarshallerHandler
in interfacejakarta.xml.bind.Unmarshaller
-
isValidating
Deprecated.This method is deprecated as of JAXB 2.0 - please use the newgetSchema()
API.- Specified by:
isValidating
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
setAdapter
public void setAdapter(jakarta.xml.bind.annotation.adapters.XmlAdapter adapter) - Specified by:
setAdapter
in interfacejakarta.xml.bind.Unmarshaller
-
setAdapter
public <A extends jakarta.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(Class<A> type, A adapter) - Specified by:
setAdapter
in interfacejakarta.xml.bind.Unmarshaller
-
setAttachmentUnmarshaller
public void setAttachmentUnmarshaller(jakarta.xml.bind.attachment.AttachmentUnmarshaller au) - Specified by:
setAttachmentUnmarshaller
in interfacejakarta.xml.bind.Unmarshaller
-
setEventHandler
public void setEventHandler(jakarta.xml.bind.ValidationEventHandler handler) throws jakarta.xml.bind.JAXBException - Specified by:
setEventHandler
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
setListener
public void setListener(jakarta.xml.bind.Unmarshaller.Listener listener) - Specified by:
setListener
in interfacejakarta.xml.bind.Unmarshaller
-
setProperty
-
setSchema
- Specified by:
setSchema
in interfacejakarta.xml.bind.Unmarshaller
-
setValidating
Deprecated.since JAXB2.0, please seegetSchema()
- Specified by:
setValidating
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
-
unmarshal
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
-
unmarshal
-
unmarshal
- Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
-
unmarshal
-
unmarshal
public <T> jakarta.xml.bind.JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws jakarta.xml.bind.JAXBException - Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
public <T> jakarta.xml.bind.JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> declaredType) throws jakarta.xml.bind.JAXBException - Specified by:
unmarshal
in interfacejakarta.xml.bind.Unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
-
getDelegate
public jakarta.xml.bind.Unmarshaller getDelegate() -
setDelegate
public void setDelegate(jakarta.xml.bind.Unmarshaller delegate) -
configureParserFactory
protected static void configureParserFactory(SAXParserFactory factory, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
-
getSchema()
API.