Namespace: Consultingwerk.Util
Class 
NetworkHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:NetworkHelper
Purpose:Provides access to .NET network routines
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Sep 23 09:49:17 CEST 2012



Top Method Summary
Options Name Purpose
+ DownloadFile (character, character) Downloads a file from a specified web address to a given file
+ LONGCHAR DownloadString (character) Downloads a string from a specified web address to a given file
+ CHARACTER HostFromUrl (character) Extracts the Host portion from an URL
+ CHARACTER ResourceFromUrl (character) Extracts the Resource portion from an http or https URL

Top Constructor Summary
Options Name Purpose
# NetworkHelper () Disallow instance creation


Method Detail
Top

PUBLIC DownloadFile (character, character)

Purpose: Downloads a file from a specified web address to a given file
Notes: Currently supported on Windows only

Parameters:
pcFileAddress CHARACTER
The address (URL) to download from
pcTargetFile CHARACTER
The file name (and path) to download to
Top

PUBLIC LONGCHAR DownloadString (character)

Purpose: Downloads a string from a specified web address to a given file
Notes: Currently supported on Windows only

Parameters:
pcFileAddress CHARACTER
The address (URL) to download from
Returns LONGCHAR
A LONGCHAR value with the data from the URL
Top

PUBLIC CHARACTER HostFromUrl (character)

Purpose: Extracts the Host portion from an URL
Notes:

Parameters:
pcUrl CHARACTER
The URL that contains the host
Returns CHARACTER
The hostname
Top

PUBLIC CHARACTER ResourceFromUrl (character)

Purpose: Extracts the Resource portion from an http or https URL
Notes:

Parameters:
pcUrl CHARACTER
The URL that contains the resource
Returns CHARACTER
The resource name


Constructor Detail
Top

PROTECTED NetworkHelper ()

Purpose: Disallow instance creation
Notes:



©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:46:44