Class SecureUnmarshaller
java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller
- All Implemented Interfaces:
Unmarshaller
- Version:
- $Revision: 1.1 $ Created Feb 1, 2012
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller
Unmarshaller.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Unmarshaller
(package private) boolean
(package private) boolean
(package private) boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSecureUnmarshaller
(Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected void
configureParserFactory
(SAXParserFactory factory) <A extends XmlAdapter>
AgetAdapter
(Class<A> type) getProperty
(String name) boolean
Deprecated.<A extends XmlAdapter>
voidsetAdapter
(Class<A> type, A adapter) void
setAdapter
(XmlAdapter adapter) void
void
setDelegate
(Unmarshaller delegate) void
setEventHandler
(ValidationEventHandler handler) void
setListener
(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> JAXBElement
<T> unmarshal
(XMLEventReader reader, Class<T> declaredType) unmarshal
(XMLStreamReader reader) <T> JAXBElement
<T> unmarshal
(XMLStreamReader reader, Class<T> declaredType) <T> JAXBElement
<T> <T> JAXBElement
<T> unmarshal
(InputSource source) Turns off expansion of external entities.
-
Field Details
-
delegate
-
disableExternalEntities
boolean disableExternalEntities -
enableSecureProcessingFeature
boolean enableSecureProcessingFeature -
disableDTDs
boolean disableDTDs
-
-
Constructor Details
-
SecureUnmarshaller
public SecureUnmarshaller(Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs)
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfaceUnmarshaller
-
getAttachmentUnmarshaller
- Specified by:
getAttachmentUnmarshaller
in interfaceUnmarshaller
-
getEventHandler
- Specified by:
getEventHandler
in interfaceUnmarshaller
- Throws:
JAXBException
-
getListener
- Specified by:
getListener
in interfaceUnmarshaller
-
getProperty
- Specified by:
getProperty
in interfaceUnmarshaller
- Throws:
PropertyException
-
getSchema
- Specified by:
getSchema
in interfaceUnmarshaller
-
getUnmarshallerHandler
- Specified by:
getUnmarshallerHandler
in interfaceUnmarshaller
-
isValidating
Deprecated.This method is deprecated as of JAXB 2.0 - please use the newgetSchema()
API.- Specified by:
isValidating
in interfaceUnmarshaller
- Throws:
JAXBException
-
setAdapter
- Specified by:
setAdapter
in interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapter
in interfaceUnmarshaller
-
setAttachmentUnmarshaller
- Specified by:
setAttachmentUnmarshaller
in interfaceUnmarshaller
-
setEventHandler
- Specified by:
setEventHandler
in interfaceUnmarshaller
- Throws:
JAXBException
-
setListener
- Specified by:
setListener
in interfaceUnmarshaller
-
setProperty
- Specified by:
setProperty
in interfaceUnmarshaller
- Throws:
PropertyException
-
setSchema
- Specified by:
setSchema
in interfaceUnmarshaller
-
setValidating
Deprecated.since JAXB2.0, please seegetSchema()
- Specified by:
setValidating
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
configParser
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
public <T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws JAXBException - Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
unmarshal
public <T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> declaredType) throws JAXBException - Specified by:
unmarshal
in interfaceUnmarshaller
- Throws:
JAXBException
-
getDelegate
-
setDelegate
-
configureParserFactory
protected void configureParserFactory(SAXParserFactory factory) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
-
getSchema()
API.