Interface SoapMarshalling

All Superinterfaces:
com.google.common.util.concurrent.Service
All Known Implementing Classes:
JaxbSoapMarshalling

public interface SoapMarshalling extends com.google.common.util.concurrent.Service
JAXB SOAP marshalling service.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    marshal(Envelope envelope, OutputStream outputStream)
    Marshals a SOAP message.
    unmarshal(InputStream inputStream)
    Unmarshals a SOAP message.
    unmarshal(Reader reader)
    Unmarshals a SOAP message.

    Methods inherited from interface com.google.common.util.concurrent.Service

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync
  • Method Details

    • marshal

      void marshal(Envelope envelope, OutputStream outputStream) throws javax.xml.bind.JAXBException
      Marshals a SOAP message.
      Parameters:
      envelope - The envelope of the SOAP message.
      outputStream - The output stream where to write marshalled data to.
      Throws:
      javax.xml.bind.JAXBException - if marshalling to output stream failed
    • unmarshal

      Envelope unmarshal(InputStream inputStream) throws javax.xml.bind.JAXBException, ClassCastException
      Unmarshals a SOAP message.
      Parameters:
      inputStream - the input message to unmarshal a SOAP message from.
      Returns:
      the unmarshalled SOAP envelope.
      Throws:
      javax.xml.bind.JAXBException - if unmarshalling fails.
      ClassCastException - if the cast to Envelope fails.
    • unmarshal

      Envelope unmarshal(Reader reader) throws javax.xml.bind.JAXBException, ClassCastException
      Unmarshals a SOAP message.
      Parameters:
      reader - the input message to unmarshal a SOAP message from.
      Returns:
      the unmarshalled SOAP envelope.
      Throws:
      javax.xml.bind.JAXBException - if unmarshalling fails.
      ClassCastException - if the cast to Envelope fails.