Class XMLEventReaderInputProcessor

  • All Implemented Interfaces:
    InputProcessor

    public class XMLEventReaderInputProcessor
    extends AbstractInputProcessor
    The XMLEventReaderInputProcessor reads requested XMLEvents from the original XMLEventReader and returns them to the requester
    • Field Detail

      • maximumAllowedXMLStructureDepth

        private static final java.lang.Integer maximumAllowedXMLStructureDepth
      • currentXMLStructureDepth

        private int currentXMLStructureDepth
      • xmlStreamReader

        private final javax.xml.stream.XMLStreamReader xmlStreamReader
      • EOF

        private boolean EOF
    • Constructor Detail

      • XMLEventReaderInputProcessor

        public XMLEventReaderInputProcessor​(XMLSecurityProperties securityProperties,
                                            javax.xml.stream.XMLStreamReader xmlStreamReader)
    • Method Detail

      • processHeaderEvent

        public XMLSecEvent processHeaderEvent​(InputProcessorChain inputProcessorChain)
                                       throws javax.xml.stream.XMLStreamException,
                                              XMLSecurityException
        Description copied from interface: InputProcessor
        Will be called from the framework when the next security-header XMLEvent is requested
        Returns:
        The next XMLSecEvent
        Throws:
        javax.xml.stream.XMLStreamException - thrown when a streaming error occurs
        XMLSecurityException - thrown when a Security failure occurs
      • processEvent

        public XMLSecEvent processEvent​(InputProcessorChain inputProcessorChain)
                                 throws javax.xml.stream.XMLStreamException,
                                        XMLSecurityException
        Description copied from interface: InputProcessor
        Will be called from the framework when the next XMLEvent is requested
        Returns:
        The next XMLSecEvent
        Throws:
        javax.xml.stream.XMLStreamException - thrown when a streaming error occurs
        XMLSecurityException - thrown when a Security failure occurs
      • processEventInternal

        private XMLSecEvent processEventInternal()
                                          throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException