Class StashRestResponse
java.lang.Object
com.atlassian.bamboo.plugins.stash.rest.entity.stash.StashRestResponse
Encapsulation of a REST response from Stash.
If Stash 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 -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @Nullable String
final @Nullable StashErrors
final @Nullable String
final @org.jetbrains.annotations.NotNull int
final @Nullable String
-
Constructor Summary
ConstructorsConstructorDescriptionStashRestResponse
(int statusCode, String statusMessage, StashErrors errors, String body, String location) StashRestResponse
(String errorMessage) StashRestResponse
(javax.ws.rs.core.Response.Status status, String errorMessage) -
Method Summary
-
Field Details
-
statusCode
@NotNull public final @org.jetbrains.annotations.NotNull int statusCode -
statusMessage
-
errors
-
body
-
location
-
-
Constructor Details
-
StashRestResponse
-
StashRestResponse
-
StashRestResponse
public StashRestResponse(int statusCode, String statusMessage, StashErrors errors, String body, String location)
-
-
Method Details