Class EnvelopeFactory

java.lang.Object
org.somda.sdc.dpws.soap.factory.EnvelopeFactory

public class EnvelopeFactory extends Object
Convenience factory to create SOAP envelopes in accordance with the JAXB SOAP model.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.somda.sdc.dpws.soap.model.Envelope
    Creates an empty SOAP envelope with existing empty body and header.
    org.somda.sdc.dpws.soap.model.Envelope
    createEnvelope(Object firstBodyChild)
    Creates an envelope with given JAXB body element.
    org.somda.sdc.dpws.soap.model.Envelope
    createEnvelope(String wsaAction, Object firstBodyChild)
    Creates an envelope with given wsa:Action attribute and body.
    org.somda.sdc.dpws.soap.model.Envelope
    createEnvelope(String wsaAction, String wsaTo, Object firstBodyChild)
    Creates an envelope with given wsa:Action attribute, wsa:To attribute, and body.
    org.somda.sdc.dpws.soap.model.Envelope
    createEnvelopeFromBody(org.somda.sdc.dpws.soap.model.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
  • Method Details

    • createEnvelope

      public org.somda.sdc.dpws.soap.model.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

      public org.somda.sdc.dpws.soap.model.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.
      firstBodyChild - the message body.
      wsaTo - the wsa:To element content.
      Returns:
      an Envelope instance.
    • createEnvelope

      public org.somda.sdc.dpws.soap.model.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

      public org.somda.sdc.dpws.soap.model.Envelope createEnvelope()
      Creates an empty SOAP envelope with existing empty body and header.
      Returns:
      an empty Envelope instance.
    • createEnvelopeFromBody

      public org.somda.sdc.dpws.soap.model.Envelope createEnvelopeFromBody(org.somda.sdc.dpws.soap.model.Body body)
      Creates a SOAP envelope from an existing body.
      Parameters:
      body - the message body.
      Returns:
      an Envelope instance.