Class HttpClientResponseImpl

    • Constructor Detail

      • HttpClientResponseImpl

        public HttpClientResponseImpl​(Url aUrl,
                                      HttpStatusCode aHttpStatusCode,
                                      ResponseHeaderFields aHeaderFields,
                                      MediaTypeFactoryLookup aMediaTypeFactoryLookup)
        Constructs a HttpClientResponse with all required attributes.
        aUrl - The URL from which the response originates.
        aHttpStatusCode - The HttpStatusCode of the response.
        aHeaderFields - The ResponseHeaderFields sent by the response.
        aHttpInputStream - The InputStream representing the request's HTTP body.
        aMediaTypeFactoryLookup - The lookup factory for retrieving the required MediaType factories.
    • Method Detail

      • getHttpInputStream

        public getHttpInputStream​()
        Retrieves the InputStream from the HTTP InputStream property.
        Specified by:
        getHttpInputStream in interface HttpInputStreamAccessor
        The InputStream stored by the InputStream property.
      • getHttpBody

        public java.lang.String getHttpBody​()
        Retrieves the HTTP body from the HTTP body property.
        Specified by:
        getHttpBody in interface HttpBodyAccessor
        The HTTP body stored by the HTTP body property.
      • getUrl

        public Url getUrl​()
        Retrieves the Url from the Url property.
        Specified by:
        getUrl in interface UrlAccessor
        The Url stored by the Url property.
      • toString

        public java.lang.String toString​()
        toString in class java.lang.Object