com.atlassian.bamboo.plugins.stash.rest.entity.stash
Class StashRestResponse
java.lang.Object
com.atlassian.bamboo.plugins.stash.rest.entity.stash.StashRestResponse
public class StashRestResponse
- extends java.lang.Object
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
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 StashErrors errors
body
@Nullable
public final java.lang.String body
entity
@Nullable
public final com.google.gson.JsonElement entity
StashRestResponse
public StashRestResponse(java.lang.String errorMessage)
StashRestResponse
public StashRestResponse(javax.ws.rs.core.Response.Status status,
java.lang.String errorMessage)
StashRestResponse
public StashRestResponse(int statusCode,
java.lang.String statusMessage,
StashErrors errors,
java.lang.String body,
com.google.gson.JsonElement entity)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hasErrors
public boolean hasErrors()
isSuccesfull
public boolean isSuccesfull()
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.