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 voidprotected voidconfigureParserFactory(SAXParserFactory factory) <A extends XmlAdapter>
AgetAdapter(Class<A> type) getProperty(String name) booleanDeprecated.<A extends XmlAdapter>
voidsetAdapter(Class<A> type, A adapter) voidsetAdapter(XmlAdapter adapter) voidvoidsetDelegate(Unmarshaller delegate) voidsetEventHandler(ValidationEventHandler handler) voidsetListener(Unmarshaller.Listener listener) voidsetProperty(String name, Object value) voidvoidsetValidating(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:
getAdapterin interfaceUnmarshaller
-
getAttachmentUnmarshaller
- Specified by:
getAttachmentUnmarshallerin interfaceUnmarshaller
-
getEventHandler
- Specified by:
getEventHandlerin interfaceUnmarshaller- Throws:
JAXBException
-
getListener
- Specified by:
getListenerin interfaceUnmarshaller
-
getProperty
- Specified by:
getPropertyin interfaceUnmarshaller- Throws:
PropertyException
-
getSchema
- Specified by:
getSchemain interfaceUnmarshaller
-
getUnmarshallerHandler
- Specified by:
getUnmarshallerHandlerin interfaceUnmarshaller
-
isValidating
Deprecated.This method is deprecated as of JAXB 2.0 - please use the newgetSchema()API.- Specified by:
isValidatingin interfaceUnmarshaller- Throws:
JAXBException
-
setAdapter
- Specified by:
setAdapterin interfaceUnmarshaller
-
setAdapter
- Specified by:
setAdapterin interfaceUnmarshaller
-
setAttachmentUnmarshaller
- Specified by:
setAttachmentUnmarshallerin interfaceUnmarshaller
-
setEventHandler
- Specified by:
setEventHandlerin interfaceUnmarshaller- Throws:
JAXBException
-
setListener
- Specified by:
setListenerin interfaceUnmarshaller
-
setProperty
- Specified by:
setPropertyin interfaceUnmarshaller- Throws:
PropertyException
-
setSchema
- Specified by:
setSchemain interfaceUnmarshaller
-
setValidating
Deprecated.since JAXB2.0, please seegetSchema()- Specified by:
setValidatingin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
Turns off expansion of external entities.- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
configParser
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
- Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
public <T> JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws JAXBException - Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
unmarshal
public <T> JAXBElement<T> unmarshal(XMLEventReader reader, Class<T> declaredType) throws JAXBException - Specified by:
unmarshalin interfaceUnmarshaller- Throws:
JAXBException
-
getDelegate
-
setDelegate
-
configureParserFactory
protected void configureParserFactory(SAXParserFactory factory) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
-
getSchema()API.