Class HttpResponse
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.HttpResponse
- All Implemented Interfaces:
IHttpMessage
,IHttpResponse
,Serializable
IHttpResponse implementation
- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
String[]
This method should return all the header names that are set to the http request.String[]
getHeaderValues
(String name) The method returns the value for a specified header name.int
This method returns the http response code of the http response.
-
Constructor Details
-
HttpResponse
public HttpResponse(int responseCode)
-
-
Method Details
-
addHeader
-
getHeaderNames
Description copied from interface:IHttpMessage
This method should return all the header names that are set to the http request.- Specified by:
getHeaderNames
in interfaceIHttpMessage
- Returns:
- The header names, may not be null, but could be an empty array.
-
getHeaderValues
Description copied from interface:IHttpMessage
The method returns the value for a specified header name.- Specified by:
getHeaderValues
in interfaceIHttpMessage
- Parameters:
name
- The name of the header, may not be null.- Returns:
- The value of the header, may be null.
-
getResponseCode
public int getResponseCode()Description copied from interface:IHttpResponse
This method returns the http response code of the http response.- Specified by:
getResponseCode
in interfaceIHttpResponse
- Returns:
- The http response code.
-