Class StashRestResponse

java.lang.Object
com.atlassian.bamboo.plugins.stash.rest.entity.stash.StashRestResponse

public class StashRestResponse extends 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
  • Field Details

    • statusCode

      @NotNull public final @org.jetbrains.annotations.NotNull int statusCode
    • statusMessage

      @Nullable public final @Nullable String statusMessage
    • errors

      @Nullable public final @Nullable StashErrors errors
    • body

      @Nullable public final @Nullable String body
    • location

      @Nullable public final @Nullable String location
  • Constructor Details

    • StashRestResponse

      public StashRestResponse(String errorMessage)
    • StashRestResponse

      public StashRestResponse(javax.ws.rs.core.Response.Status status, String errorMessage)
    • StashRestResponse

      public StashRestResponse(int statusCode, String statusMessage, StashErrors errors, String body, String location)
  • Method Details

    • toString

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

      public boolean hasErrors()
    • isSuccesfull

      public boolean isSuccesfull()