Package com.atlassian.bamboo.jira.rest
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JiraRestResponse.JiraRestResponseBuilder
-
Field Summary
Fields Modifier and Type Field Description @Nullable String
body
@Nullable com.opensymphony.webwork.dispatcher.json.JSONObject
entity
@Nullable Errors
errors
@org.jetbrains.annotations.NotNull int
statusCode
@Nullable String
statusMessage
-
Constructor Summary
Constructors Constructor Description JiraRestResponse(int statusCode, String statusMessage, Errors errors, String body, com.opensymphony.webwork.dispatcher.json.JSONObject entity)
JiraRestResponse(String errorMessage)
-
-
-
Field Detail
-
statusCode
@NotNull public final @org.jetbrains.annotations.NotNull 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.opensymphony.webwork.dispatcher.json.JSONObject entity
-
-