Class JaxbMarshalling

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service

    
    public class JaxbMarshalling
    extends AbstractIdleService
                        

    Creates XML input and output streams from/to JAXB instances.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T> void marshal(JAXBElement<T> objectToMarshal, OutputStream outputStream) Marshals a JAXBElement into a stream.
      Object unmarshal(InputStream inputStream) Takes an input stream and unmarshals it.
      Object unmarshal(Reader reader) Takes a reader and unmarshals it.
      • Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

        addListener, awaitRunning, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • marshal

         <T> void marshal(JAXBElement<T> objectToMarshal, OutputStream outputStream)

        Marshals a JAXBElement into a stream.

        Parameters:
        objectToMarshal - to marshal
        outputStream - to marshal into
      • unmarshal

         Object unmarshal(InputStream inputStream)

        Takes an input stream and unmarshals it.

        Parameters:
        inputStream - the input stream to unmarshal.
        Returns:

        the unmarshalled SOAP envelope.

      • unmarshal

         Object unmarshal(Reader reader)

        Takes a reader and unmarshals it.

        Parameters:
        reader - the input stream to unmarshal.
        Returns:

        the unmarshalled SOAP envelope.