Class SecureUnmarshaller

java.lang.Object
org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller
All Implemented Interfaces:
jakarta.xml.bind.Unmarshaller

public class SecureUnmarshaller extends Object implements jakarta.xml.bind.Unmarshaller
Version:
$Revision: 1.1 $ Created Feb 1, 2012
Author:
Ron Sigal
  • Constructor Details

    • SecureUnmarshaller

      public SecureUnmarshaller(jakarta.xml.bind.Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs)
  • Method Details

    • getAdapter

      public <A extends jakarta.xml.bind.annotation.adapters.XmlAdapter> A getAdapter(Class<A> type)
      Specified by:
      getAdapter in interface jakarta.xml.bind.Unmarshaller
    • getAttachmentUnmarshaller

      public jakarta.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
      Specified by:
      getAttachmentUnmarshaller in interface jakarta.xml.bind.Unmarshaller
    • getEventHandler

      public jakarta.xml.bind.ValidationEventHandler getEventHandler() throws jakarta.xml.bind.JAXBException
      Specified by:
      getEventHandler in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • getListener

      public jakarta.xml.bind.Unmarshaller.Listener getListener()
      Specified by:
      getListener in interface jakarta.xml.bind.Unmarshaller
    • getProperty

      public Object getProperty(String name) throws jakarta.xml.bind.PropertyException
      Specified by:
      getProperty in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.PropertyException
    • getSchema

      public Schema getSchema()
      Specified by:
      getSchema in interface jakarta.xml.bind.Unmarshaller
    • getUnmarshallerHandler

      public jakarta.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
      Specified by:
      getUnmarshallerHandler in interface jakarta.xml.bind.Unmarshaller
    • isValidating

      @Deprecated public boolean isValidating() throws jakarta.xml.bind.JAXBException
      Deprecated.
      This method is deprecated as of JAXB 2.0 - please use the new getSchema() API.
      Specified by:
      isValidating in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • setAdapter

      public void setAdapter(jakarta.xml.bind.annotation.adapters.XmlAdapter adapter)
      Specified by:
      setAdapter in interface jakarta.xml.bind.Unmarshaller
    • setAdapter

      public <A extends jakarta.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(Class<A> type, A adapter)
      Specified by:
      setAdapter in interface jakarta.xml.bind.Unmarshaller
    • setAttachmentUnmarshaller

      public void setAttachmentUnmarshaller(jakarta.xml.bind.attachment.AttachmentUnmarshaller au)
      Specified by:
      setAttachmentUnmarshaller in interface jakarta.xml.bind.Unmarshaller
    • setEventHandler

      public void setEventHandler(jakarta.xml.bind.ValidationEventHandler handler) throws jakarta.xml.bind.JAXBException
      Specified by:
      setEventHandler in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • setListener

      public void setListener(jakarta.xml.bind.Unmarshaller.Listener listener)
      Specified by:
      setListener in interface jakarta.xml.bind.Unmarshaller
    • setProperty

      public void setProperty(String name, Object value) throws jakarta.xml.bind.PropertyException
      Specified by:
      setProperty in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.PropertyException
    • setSchema

      public void setSchema(Schema schema)
      Specified by:
      setSchema in interface jakarta.xml.bind.Unmarshaller
    • setValidating

      @Deprecated public void setValidating(boolean validating) throws jakarta.xml.bind.JAXBException
      Deprecated.
      since JAXB2.0, please see getSchema()
      Specified by:
      setValidating in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(File f) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(InputStream is) throws jakarta.xml.bind.JAXBException
      Turns off expansion of external entities.
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(Reader reader) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(URL url) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(InputSource source) throws jakarta.xml.bind.JAXBException
      Turns off expansion of external entities.
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(Node node) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(Source source) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(XMLStreamReader reader) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public Object unmarshal(XMLEventReader reader) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public <T> jakarta.xml.bind.JAXBElement<T> unmarshal(Node node, Class<T> declaredType) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public <T> jakarta.xml.bind.JAXBElement<T> unmarshal(Source source, Class<T> declaredType) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.xml.bind.Unmarshaller
      Throws:
      jakarta.xml.bind.JAXBException
    • unmarshal

      public <T> jakarta.xml.bind.JAXBElement<T> unmarshal(XMLStreamReader reader, Class<T> declaredType) throws jakarta.xml.bind.JAXBException
      Specified by:
      unmarshal in interface jakarta.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 interface jakarta.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
      Throws:
      ParserConfigurationException
      SAXNotRecognizedException
      SAXNotSupportedException