Class HttpResponse
- java.lang.Object
-
- com.aquima.interactions.foundation.connectivity.impl.HttpResponse
-
- All Implemented Interfaces:
IHttpMessage
,IHttpResponse
,Serializable
public final class HttpResponse extends Object implements IHttpResponse
IHttpResponse implementation- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpResponse(int responseCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHeader(String name, String value)
String[]
getHeaderNames()
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
getResponseCode()
This method returns the http response code of the http response.
-
-
-
Method Detail
-
getHeaderNames
public String[] 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
public String[] getHeaderValues(String name)
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.
-
-