Class MultiSpeakResult

java.lang.Object
com.ecec.rweber.multispeak.MultiSpeakResult

public class MultiSpeakResult extends Object
Represents the returned results from a Multispeak endpoint call. If the method returns a payload the XML can be accessed. If the result returned an error the exception can be viewed.
Author:
rweber
  • Constructor Details

  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns:
      if the method call returned a valid XML result
    • getResult

      public Element getResult()
      Returns:
      the payload body if isSuccess() is true, otherwise NULL
    • getHeader

      public Map<String,String> getHeader()
      Returns:
      the payload header
    • containsData

      public boolean containsData()
      Returns:
      true if the payload body has any data, false if empty
    • getException

      public MultiSpeakException getException()
      Returns:
      the exception if isSuccess() is false, otherwise NULL