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