Package com.octopusdeploy.api
Class AuthenticatedWebClient.WebResponse
- java.lang.Object
-
- com.octopusdeploy.api.AuthenticatedWebClient.WebResponse
-
- Enclosing class:
- AuthenticatedWebClient
public static class AuthenticatedWebClient.WebResponse extends java.lang.Object
A web response code (HTTP Response code) and content from the web request.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
The HTTP response code.java.lang.String
getContent()
Content for the web response, if any.boolean
isErrorCode()
Returns true if the HTTP Response code represents an error.
-
-
-
Method Detail
-
getCode
public int getCode()
The HTTP response code.- Returns:
- The HTTP response code. Ex. 200 or 403
-
isErrorCode
public boolean isErrorCode()
Returns true if the HTTP Response code represents an error.- Returns:
- true or false
-
getContent
public java.lang.String getContent()
Content for the web response, if any.- Returns:
- JSON content for the web response, if any.
-
-