Class JiraRestResponse

java.lang.Object
com.atlassian.bamboo.jira.rest.JiraRestResponse

public class JiraRestResponse extends Object
Encapsulation of a REST response from JIRA. If JIRA is playing nice you will get any errors marshalled into a nice object for you. Also a json formatted response should also hopefully be marshalled into
  • Field Details

    • statusCode

      public final int statusCode
    • statusMessage

      @Nullable public final @Nullable String statusMessage
    • errors

      @Nullable public final @Nullable Errors errors
    • body

      @Nullable public final @Nullable String body
    • entity

      @Nullable public final @Nullable com.google.gson.JsonObject entity
  • Constructor Details

    • JiraRestResponse

      public JiraRestResponse(String errorMessage)
    • JiraRestResponse

      public JiraRestResponse(int statusCode, String statusMessage, Errors errors, String body, com.google.gson.JsonObject entity)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasErrors

      public boolean hasErrors()