Class EnvelopeFactory

  • All Implemented Interfaces:

    
    public class EnvelopeFactory
    
                        

    Convenience factory to create SOAP envelopes in accordance with the JAXB SOAP model.

    • 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
      Envelope createEnvelope(String wsaAction, @Nullable() Object firstBodyChild) Creates an envelope with given wsa:Action attribute and body.
      Envelope createEnvelope(String wsaAction, String wsaTo, @Nullable() Object firstBodyChild) Creates an envelope with given wsa:Action attribute, wsa:To attribute, and body.
      Envelope createEnvelope(@Nullable() Object firstBodyChild) Creates an envelope with given JAXB body element.
      Envelope createEnvelope() Creates an empty SOAP envelope with existing empty body and header.
      Envelope createEnvelopeFromBody(Body body) Creates a SOAP envelope from an existing body.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • createEnvelope

         Envelope createEnvelope(String wsaAction, @Nullable() Object firstBodyChild)

        Creates an envelope with given wsa:Action attribute and body.

        Parameters:
        wsaAction - the action to be used for the envelope.
        firstBodyChild - the message body.
        Returns:

        an Envelope instance.

      • createEnvelope

         Envelope createEnvelope(String wsaAction, String wsaTo, @Nullable() Object firstBodyChild)

        Creates an envelope with given wsa:Action attribute, wsa:To attribute, and body.

        Parameters:
        wsaAction - the action to be used for the envelope.
        wsaTo - the wsa:To element content.
        firstBodyChild - the message body.
        Returns:

        an Envelope instance.

      • createEnvelope

         Envelope createEnvelope(@Nullable() Object firstBodyChild)

        Creates an envelope with given JAXB body element.

        Any header fields will be left empty.

        Parameters:
        firstBodyChild - the message body.
        Returns:

        an Envelope instance.

      • createEnvelope

         Envelope createEnvelope()

        Creates an empty SOAP envelope with existing empty body and header.

        Returns:

        an empty Envelope instance.

      • createEnvelopeFromBody

         Envelope createEnvelopeFromBody(Body body)

        Creates a SOAP envelope from an existing body.

        Parameters:
        body - the message body.
        Returns:

        an Envelope instance.