Class SecureUnmarshaller
- java.lang.Object
 - 
- org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller
 
 
- 
- All Implemented Interfaces:
 Unmarshaller
public class SecureUnmarshaller extends Object implements Unmarshaller
- Version:
 - $Revision: 1.1 $ Created Feb 1, 2012
 - Author:
 - Ron Sigal
 
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface javax.xml.bind.Unmarshaller
Unmarshaller.Listener 
 - 
 
- 
Constructor Summary
Constructors Constructor Description SecureUnmarshaller(Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
SecureUnmarshaller
public SecureUnmarshaller(Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs)
 
 - 
 
- 
Method Detail
- 
getAdapter
public <A extends XmlAdapter> A getAdapter(Class<A> type)
- Specified by:
 getAdapterin interfaceUnmarshaller
 
- 
getAttachmentUnmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
- Specified by:
 getAttachmentUnmarshallerin interfaceUnmarshaller
 
- 
getEventHandler
public ValidationEventHandler getEventHandler() throws JAXBException
- Specified by:
 getEventHandlerin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
getListener
public Unmarshaller.Listener getListener()
- Specified by:
 getListenerin interfaceUnmarshaller
 
- 
getProperty
public Object getProperty(String name) throws PropertyException
- Specified by:
 getPropertyin interfaceUnmarshaller- Throws:
 PropertyException
 
- 
getSchema
public Schema getSchema()
- Specified by:
 getSchemain interfaceUnmarshaller
 
- 
getUnmarshallerHandler
public UnmarshallerHandler getUnmarshallerHandler()
- Specified by:
 getUnmarshallerHandlerin interfaceUnmarshaller
 
- 
isValidating
@Deprecated public boolean isValidating() throws JAXBException
Deprecated.This method is deprecated as of JAXB 2.0 - please use the newgetSchema()API.- Specified by:
 isValidatingin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
setAdapter
public void setAdapter(XmlAdapter adapter)
- Specified by:
 setAdapterin interfaceUnmarshaller
 
- 
setAdapter
public <A extends XmlAdapter> void setAdapter(Class<A> type, A adapter)
- Specified by:
 setAdapterin interfaceUnmarshaller
 
- 
setAttachmentUnmarshaller
public void setAttachmentUnmarshaller(AttachmentUnmarshaller au)
- Specified by:
 setAttachmentUnmarshallerin interfaceUnmarshaller
 
- 
setEventHandler
public void setEventHandler(ValidationEventHandler handler) throws JAXBException
- Specified by:
 setEventHandlerin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
setListener
public void setListener(Unmarshaller.Listener listener)
- Specified by:
 setListenerin interfaceUnmarshaller
 
- 
setProperty
public void setProperty(String name, Object value) throws PropertyException
- Specified by:
 setPropertyin interfaceUnmarshaller- Throws:
 PropertyException
 
- 
setSchema
public void setSchema(Schema schema)
- Specified by:
 setSchemain interfaceUnmarshaller
 
- 
setValidating
@Deprecated public void setValidating(boolean validating) throws JAXBException
Deprecated.since JAXB2.0, please seegetSchema()- Specified by:
 setValidatingin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(File f) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(InputStream is) throws JAXBException
Turns off expansion of external entities.- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(Reader reader) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(URL url) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(InputSource source) throws JAXBException
Turns off expansion of external entities.- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(Node node) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(Source source) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(XMLStreamReader reader) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public Object unmarshal(XMLEventReader reader) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public <T> JAXBElement<T> unmarshal(Node node, Class<T> declaredType) throws JAXBException
- Specified by:
 unmarshalin interfaceUnmarshaller- Throws:
 JAXBException
 
- 
unmarshal
public <T> JAXBElement<T> unmarshal(Source source, Class<T> declaredType) throws JAXBException
- 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
public Unmarshaller getDelegate()
 
- 
setDelegate
public void setDelegate(Unmarshaller delegate)
 
- 
configureParserFactory
protected static void configureParserFactory(SAXParserFactory factory, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
 
 - 
 
 -