Class HttpClientResponseImpl

    • Constructor Detail

      • HttpClientResponseImpl

        public HttpClientResponseImpl​(Url aUrl,
                                      HttpStatusCode aHttpStatusCode,
                                      ResponseHeaderFields aHeaderFields,
                                      java.io.InputStream aHttpInputStream,
                                      MediaTypeFactoryLookup aMediaTypeFactoryLookup)
        Constructs a HttpClientResponse with all required attributes.
        Parameters:
        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 java.io.InputStream getHttpInputStream​()
        Retrieves the InputStream from the HTTP InputStream property.
        Specified by:
        getHttpInputStream in interface HttpInputStreamAccessor
        Returns:
        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
        Returns:
        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
        Returns:
        The Url stored by the Url property.
      • toString

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