cfboom.http.protocol

Class BasicHttpRequestExecutor

lucee.Component
    extended by cfboom.lang.Object
      extended by cfboom.http.protocol.BasicHttpRequestExecutor
All Implemented Interfaces:
HttpRequestExecutor

{@code HttpRequestExecutor} is a client side HTTP protocol handler based on the blocking (classic) I/O model.

{@code HttpRequestExecutor} relies on {@link HttpProcessor} to generate mandatory protocol headers for all outgoing messages and apply common, cross-cutting message transformations to all incoming and outgoing messages. Application specific processing can be implemented outside {@code HttpRequestExecutor} once the request has been executed and a response has been received.

Class Attributes:
  • cfboom : Joel Tobey
  •  
  • singleton : true
  •  
  • output : false
  •  
  • displayname : Class BasicHttpRequestExecutor
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any httpResponse


    • access = public
    • returntype = any
    • inject = coldbox:setting:httpResponse@cfboom-http
    true false
    any HttpStatus


    • access = public
    • returntype = any
    • inject = HttpStatus@cfboom-http
    true false
    any wirebox


    • access = public
    • returntype = any
    • inject = wirebox
    true false
    Constructor Summary
    init()
    Method Summary
    HttpResponse execute([HttpRequest req])
    void onDIComplete()
    void setHttpResponseClass(string httpResponseClass)
     
    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()


    Property Detail

    httpResponse

    property any httpResponse

    Attributes:
    access - public
    required - false
    returntype - any
    inject - coldbox:setting:httpResponse@cfboom-http
    serializable - true

    HttpStatus

    property any HttpStatus

    Attributes:
    access - public
    required - false
    returntype - any
    inject - HttpStatus@cfboom-http
    serializable - true

    wirebox

    property any wirebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - wirebox
    serializable - true

    Method Detail

    execute

    public HttpResponse execute([HttpRequest req])

    Specified by:
    execute in interface HttpRequestExecutor
    Parameters:
    req

    onDIComplete

    public void onDIComplete()


    setHttpResponseClass

    public void setHttpResponseClass(string httpResponseClass)

    Parameters:
    httpResponseClass