Class AbstractToXMLNode

  • Direct Known Subclasses:
    PlaintextToXMLNode

    public abstract class AbstractToXMLNode
    extends Node
    A Node to convert a stream to XML. Subclasses of this shall specialize for a certain set of MIME types.
    • Constructor Detail

      • AbstractToXMLNode

        public AbstractToXMLNode()
    • Method Detail

      • isUseMetadataEnvelope

        public boolean isUseMetadataEnvelope()
        Returns:
        the useMetadataEnvelope
      • setUseMetadataEnvelope

        public void setUseMetadataEnvelope​(boolean useMetadataEnvelope)
        Set a flag indicating whether the generated XML should be wrapped in an envelope containing also the stream meta data (from Stream.getDescriptor()).

        if this flag was set the resulting document will look like this:

         <envelope>
             <stream ... > <!-- the meta data -->
             </stream>
             <whatever ... > <!-- generated XML goes here -->
             </whatever>
         </envelope>
         
        Parameters:
        useMetadataEnvelope - the useMetadataEnvelope to set