Class MultiSpeakClient

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

public class MultiSpeakClient extends Object
Non-visible class for encapsulating the HTTP send/receive functions of the library. This is called in the background by all classes extending the MultiSpeakService class. Any additional envelope information needed to complete the MultiSpeak call is done here as well.
Author:
rweber
  • Constructor Details

  • Method Details

    • getEndpoint

      protected MultiSpeakEndpoint getEndpoint()
    • sendRequest

      protected Document sendRequest(String method) throws MultiSpeakException
      Parameters:
      method - Multispeak Method to send to the endpoint
      Returns:
      the xml result of the call (could be null)
      Throws:
      MultiSpeakException - an exception meaning that some part of the result is malformed or the request was in error
    • sendRequest

      protected Document sendRequest(String method, String[] params) throws MultiSpeakException
      Parameters:
      method - Multispeak Method to send to the endpoint
      params - the element that contain the parameters for this method
      Returns:
      the xml result of the call (could be null)
      Throws:
      MultiSpeakException - an exception meaning that some part of the result is malformed or the request was in error
    • sendRequest

      protected Document sendRequest(String method, List<Element> params) throws MultiSpeakException
      Parameters:
      method - Multispeak Method to send to the endpoint
      params - the element that contain the parameters for this method
      Returns:
      the SOAP response as a JDOM document, or null if the request failed
      Throws:
      MultiSpeakException - an exception meaning that some part of the result is malformed or the request was in error