cfboom.http.client

Class AbstractClientHttpRequest

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.http.client.AbstractClientHttpRequest
All Implemented Interfaces:
ClientHttpRequest
Direct Known Subclasses:
AbstractBufferingClientHttpRequest
Class Attributes:
  • output : false
  •  
  • displayname : Abstract Class AbstractClientHttpRequest
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init()
    Method Summary
    void assertNotExecuted()
         Assert that this request has not been {@linkplain #execute() executed} yet.
    ClientHttpResponse execute()
    ClientHttpResponse executeInternal(HttpHeaders headers)
         Abstract template method that writes the given headers and content to the HTTP request.
    any getBody()
    any getBodyInternal(HttpHeaders headers)
         Abstract template method that returns the body.
    HttpHeaders getHeaders()
     
    Methods inherited from class cfboom.lang.Object
    $equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Method Detail

    assertNotExecuted

    public void assertNotExecuted()

    Assert that this request has not been {@linkplain #execute() executed} yet.

    Throws:
    IllegalStateException if this request has been executed

    execute

    public ClientHttpResponse execute()

    Specified by:
    execute in interface ClientHttpRequest

    executeInternal

    public ClientHttpResponse executeInternal(HttpHeaders headers)

    Abstract template method that writes the given headers and content to the HTTP request.

    Parameters:
    headers
    Returns:
    the response object for the executed request

    getBody

    public any getBody()


    getBodyInternal

    public any getBodyInternal(HttpHeaders headers)

    Abstract template method that returns the body.

    Parameters:
    headers
    Returns:
    the body output stream

    getHeaders

    public HttpHeaders getHeaders()