public class HttpCallResponse
extends java.lang.Object
Constructor and Description |
---|
HttpCallResponse() |
HttpCallResponse(int theHttpResponseCode) |
HttpCallResponse(int theHttpResponseCode,
java.lang.String theResponseBody) |
Modifier and Type | Method and Description |
---|---|
void |
assertResponseCodes(int... validResponseCodes)
make sure response code is ok
|
java.lang.String |
getContentType()
content type from http call
|
HttpCallMethod |
getHttpCallMethod()
method from http call
|
int |
getHttpResponseCode()
http response code
|
java.lang.String |
getResponseBody()
response body if there is one
|
java.lang.String |
getUrl()
uri from http call
|
void |
setContentType(java.lang.String contentType1)
content type from http call
|
void |
setHttpCallMethod(HttpCallMethod method1)
method from http call
|
void |
setHttpResponseCode(int httpRepsonseCode1)
http response code
|
void |
setResponseBody(java.lang.String responseBody1)
response body if there is one
|
void |
setUrl(java.lang.String uri1)
uri from http call
|
public HttpCallResponse()
public HttpCallResponse(int theHttpResponseCode)
theHttpResponseCode
- http response codepublic HttpCallResponse(int theHttpResponseCode, java.lang.String theResponseBody)
theHttpResponseCode
- theResponseBody
- public java.lang.String getUrl()
public void setUrl(java.lang.String uri1)
uri1
- the uri to setpublic HttpCallMethod getHttpCallMethod()
public void setHttpCallMethod(HttpCallMethod method1)
method1
- the method to setpublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType1)
contentType1
- the contentType to setpublic void assertResponseCodes(int... validResponseCodes)
validResponseCodes
- public java.lang.String getResponseBody()
public void setResponseBody(java.lang.String responseBody1)
responseBody1
- the responseBody to setpublic int getHttpResponseCode()
public void setHttpResponseCode(int httpRepsonseCode1)
httpRepsonseCode1
- the httpRepsonseCode to set