Class SurveySendResource

java.lang.Object
esendex.sdk.java.service.resource.base.Resource
esendex.sdk.java.service.resource.surveys.SurveySendResource

public class SurveySendResource extends Resource
  • Constructor Details

    • SurveySendResource

      public SurveySendResource(Authenticator auth, String id)
      Instantiates a new creates the contact resource.
      Parameters:
      auth - the authenticator
      id - the survey id
  • Method Details

    • setRequestObject

      public void setRequestObject(RecipientsDto recipientsDto)
      Sets the request object.
      Parameters:
      recipientsDto - the new request object
    • getRequestData

      protected String getRequestData()
      Retrieves the request data if any in raw String form. By default returns null
      Overrides:
      getRequestData in class Resource
      Returns:
      the request data in raw form
    • getEndpointChild

      protected String getEndpointChild()
      Gets the child portion of the url required to access the resource. The child part is appended to the base url and must not start with a '/' The base url is of the form 'http://api.esendex.com/{version}/' where version maybe similar to 'v1.0'
      Specified by:
      getEndpointChild in class Resource
      Returns:
      the child portion of the url required to access this resource
    • getRequestMethod

      protected HttpRequestMethod getRequestMethod()
      Gets the HttpRequestMethod that this service stipulates eg GET, POST, PUT, DELETE.
      Specified by:
      getRequestMethod in class Resource
      Returns:
      the required HttpRequestMethod