Namespace: Consultingwerk.Framework.Http
Class 
SmartHttpClient Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Net.HTTP.IHttpClient

File:SmartHttpClient
Purpose:Http Client Decorator
Description:Ability to handle HTTP errors by throwing them as exceptions
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat May 11 01:44:28 CEST 2019
/* Mike Fechner, Consultingwerk Ltd. 13.09.2017
Preprocessor variables for SmartComponentLibrary, WinKit and SmartFramework
based on Consultingwerk/packages.i now



Top Method Summary
Options Name Purpose
+ OpenEdge.Net.HTTP.IHttpResponse Execute (IHttpRequest) Executes an HTTP request
+ Execute (IHttpRequest, IHttpResponse) Executes an HTTP request
# HandleHttpError (IHttpResponse) Handles an HTTP Error

Top Constructor Summary
Options Name Purpose
+ SmartHttpClient (IHttpClient) Constructor for the SmartHttpClient class

Top Property Summary
Options Name Purpose
+ CHARACTER ClientName
+ CHARACTER ClientVersion
+ OpenEdge.Net.HTTP.ClientOptions Options


Method Detail
Top

PUBLIC OpenEdge.Net.HTTP.IHttpResponse Execute (IHttpRequest)

Purpose: Executes an HTTP request
Notes:

Parameters:
poRequest OpenEdge.Net.HTTP.IHttpRequest
Request parameters (URL, method, etc)
Returns OpenEdge.Net.HTTP.IHttpResponse
The HTTP Response
Top

PUBLIC Execute (IHttpRequest, IHttpResponse)

Purpose: Executes an HTTP request
Notes:

Parameters:
poRequest OpenEdge.Net.HTTP.IHttpRequest
Request parameters (URL, method, etc)
poResponse OpenEdge.Net.HTTP.IHttpResponse
The HTTP Response
Top

PROTECTED HandleHttpError (IHttpResponse)

Purpose: Handles an HTTP Error
Notes:

Parameters:
poResponse OpenEdge.Net.HTTP.IHttpResponse
The IHttpResponse with the error


Constructor Detail
Top

PUBLIC SmartHttpClient (IHttpClient)

Purpose: Constructor for the SmartHttpClient class
Notes:

Parameters:
poHttpClient OpenEdge.Net.HTTP.IHttpClient
The IHttpClient to be decorated


Property Detail
Top

PUBLIC CHARACTER ClientName


Returns CHARACTER
Top

PUBLIC CHARACTER ClientVersion


Returns CHARACTER
Top

PUBLIC OpenEdge.Net.HTTP.ClientOptions Options


Returns OpenEdge.Net.HTTP.ClientOptions


©2006-2019 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.08.2019 23:26:54