Class SbdhWrapper


  • public class SbdhWrapper
    extends Object
    Takes a document and wraps it together with headers into a StandardBusinessDocument.

    The SBDH part of the document is constructed from the headers. The document will be the payload (xs:any) following the SBDH.

    Author:
    thore, steinar, erlend
    • Constructor Detail

      • SbdhWrapper

        public SbdhWrapper()
    • Method Detail

      • wrap

        public byte[] wrap​(InputStream inputStream,
                           network.oxalis.vefa.peppol.common.model.Header headers)
        Wraps payload + headers into a StandardBusinessDocument
        Parameters:
        inputStream - the input stream to be wrapped
        headers - the headers to use for sbdh
        Returns:
        byte buffer with the resulting output in utf-8