com.atlassian.bamboo.jira.rest
Class JiraRestResponse
java.lang.Object
com.atlassian.bamboo.jira.rest.JiraRestResponse
public class JiraRestResponse
- extends java.lang.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
Constructor Summary |
JiraRestResponse(int statusCode,
java.lang.String statusMessage,
Errors errors,
java.lang.String body,
com.opensymphony.webwork.dispatcher.json.JSONObject entity)
|
JiraRestResponse(java.lang.String errorMessage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
statusCode
@NotNull
public final int statusCode
statusMessage
@Nullable
public final java.lang.String statusMessage
errors
@Nullable
public final Errors errors
body
@Nullable
public final java.lang.String body
entity
@Nullable
public final com.opensymphony.webwork.dispatcher.json.JSONObject entity
JiraRestResponse
public JiraRestResponse(java.lang.String errorMessage)
JiraRestResponse
public JiraRestResponse(int statusCode,
java.lang.String statusMessage,
Errors errors,
java.lang.String body,
com.opensymphony.webwork.dispatcher.json.JSONObject entity)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hasErrors
public boolean hasErrors()
Copyright © 2012 Atlassian. All Rights Reserved.