Class RestResponse
java.lang.Object
org.sourcelab.kafka.connect.apiclient.rest.RestResponse
public final class RestResponse extends Object
Represents the response from the API.
-
Constructor Summary
Constructors Constructor Description RestResponse(String responseStr, int httpCode)Constructor. -
Method Summary
Modifier and Type Method Description intgetHttpCode()StringgetResponseStr()StringtoString()
-
Constructor Details
-
RestResponse
Constructor.- Parameters:
responseStr- The http response body, in string format.httpCode- The http status code from the response.
-
-
Method Details
-
getResponseStr
-
getHttpCode
public int getHttpCode() -
toString
-