Class MailjetResponse

java.lang.Object
com.mailjet.client.MailjetResponse

public class MailjetResponse
extends java.lang.Object
Author:
Guillaume Badi
  • Constructor Summary

    Constructors
    Constructor Description
    MailjetResponse​(int status, java.lang.String rawResponse)  
  • Method Summary

    Modifier and Type Method Description
    int getCount()  
    org.json.JSONArray getData()  
    int getInt​(java.lang.String key)  
    org.json.JSONArray getJSONArray​(java.lang.String key)  
    java.lang.String getRawResponseContent()  
    int getStatus()  
    java.lang.String getString​(java.lang.String key)  
    int getTotal()  

    Methods inherited from class java.lang.Object

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

    • MailjetResponse

      public MailjetResponse​(int status, java.lang.String rawResponse)
  • Method Details

    • getStatus

      public int getStatus()
      Returns:
      HTTP status code returned by Mailjet server
    • getRawResponseContent

      public java.lang.String getRawResponseContent()
      Returns:
      Raw response string sent by Mailjet server
    • getData

      public org.json.JSONArray getData()
    • getTotal

      public int getTotal()
    • getString

      public java.lang.String getString​(java.lang.String key) throws MailjetException
      Throws:
      MailjetException
    • getInt

      public int getInt​(java.lang.String key) throws MailjetException
      Throws:
      MailjetException
    • getJSONArray

      public org.json.JSONArray getJSONArray​(java.lang.String key) throws MailjetException
      Throws:
      MailjetException
    • getCount

      public int getCount()