Class HttpResponse

    • Constructor Detail

      • HttpResponse

        public HttpResponse​(int responseCode)
    • Method Detail

      • addHeader

        public void addHeader​(String name,
                              String value)
      • 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 interface IHttpMessage
        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 interface IHttpMessage
        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 interface IHttpResponse
        Returns:
        The http response code.