cfboom.http.client

Interface HttpClient

cfboom.http.client.HttpClient
All Known Implementing Classes:
AbstractHttpClient , BasicHttpClient

This interface represents only the most basic contract for HTTP request execution. It imposes no restrictions or particular details on the request execution process and leaves the specifics of state management, authentication and redirect handling up to individual implementations.

Class Attributes:
  • cfboom : Joel Tobey
  •  
  • displayname : Interface HttpClient
  •  
    Method Summary
    HttpResponse execute([HttpRequest req])
         Executes HTTP request using the default context.
    void setExecutor([HttpRequestExecutor executor])

    Method Detail

    execute

    public HttpResponse execute([HttpRequest req])

    Executes HTTP request using the default context. never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client.

    Parameters:
    req
    Returns:
    the response to the request. This is always a final response,

    setExecutor

    public void setExecutor([HttpRequestExecutor executor])

    Parameters:
    executor