TROWinInetHTTPChannel Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
TROWinInetHTTPChannel implements an HTTP based channel that uses the WinInet HTTP implementation provided by the Windows operating system.
The channel will automatically make use of options such as proxy and firewall settings, and the online/offline state configured for Internet Explorer or using the Internet Control Panel. It is the most commonly used and recommended HTTP channel.
Location
uROWinInetHttpChannel.pas
- Ancestry: TROBaseHTTPChannel | TROWinInetHTTPChannel
Properties
| AccessType |
|---|
|
Type of access required. This parameter can be one of the following values:
|
| AttemptToConnect |
|
|
| Busy (declared in TROTransportChannel) |
|
Informs whether the channel is currently busy executing a remote request (true) or not (false). Most channels (except most notably the TROSuperTCPChannel) are only capable of performing one request at a time; if a second request is attempted while the channel is Busy, an EROChannelBusy exception will be raised.
|
| ClientCert |
|
|
| Connected |
|
|
| CurrentLocator (declared in TROTransportChannel) |
|
Returns which of the fail-over/load balancing servers configured in the ServerLocators is currently active. Depending on the DispatchOptions defined, this value might change with each request, or only if the current server fails.
|
| DispatchOptions (declared in TROTransportChannel) |
|
Configures the available fail-over and load balancing options provided by the RemObjects SDK. By default, channels are set up to talk to one specific server only. Two independent options are available to provide fail-over and load balancing:
Enabling any of these options obviously requires the server to be implemented in a stateless way, so that it does not depend on all requests from a client going to the same server. This implies using a class factory different from Per-Client and, if sessions are used, a session manager that allows sharing of session state between servers.
|
| Encryption obsolete (declared in TROBaseConnection) |
|
This is DES based enscryption, it is obsolete because works only for Delphi. Use message envelope AES Encryption Envelope instead.
|
| FaultToleranceLocatorIdx (declared in TROTransportChannel) |
|
|
| InetConnect |
|
|
| InetRoot |
|
|
| InitializeAutoProxy |
|
Merely refreshes the internal state of proxy configuration information from the registry. There may be a small delay if you are using this.
|
| KeepConnection |
|
This property specifies can we reuse the same TCP connection to send and receive multiple HTTP requests/responses or not. If it set to False then each pair request/response creates new one connection. Uses KeepConnection = True allows to improve HTTP performance for multiple requests.
|
| LoadBalancerLocatorIdx (declared in TROTransportChannel) |
|
|
| Login |
|
Defines the username and password that should be used to authenticate with the server. This login is used for HTTP level authentication only. It should be set if your web server (or proxy server) is configured to require login at HTTP level to accept communication. This is not to be confused with the RemObjects SDK's own login on session level, as discussed in Login and Authentication.
|
| ProbeFrequency (declared in TROTransportChannel) |
|
Sets at what intervals, in milliseconds, the channel will probe the servers configured in ServerLocators for availability. The default value is 60,000 (60 seconds). See the ProbeServers property for a more detailed description. Although somewhat misnamed, this property defines the Interval between probes, not the actual probing Frequency. The property name is persisted for backward compatibility.
|
| ProbeServers (declared in TROTransportChannel) |
|
Toggles whether the channel will continuously probe the servers configured in ServerLocators for availability. If enabled (true), the channel will ping all servers at a regular interval to determine if they are reachable. If a server fails to respond, it will be disabled for future calls until a later probe can reach it again. The interval between probes can be configured using the ProbeFrequency property. By default, server probing is turned off.
|
| ProxyLogin |
|
Defines the username and password that should be used to authenticate with the proxy.
|
| ServerLocators (declared in TROTransportChannel) |
|
Optionally, this collection property can be filled to contain a list of possible servers to be used for fail-over or load balancing purposes. Depending on the settings configured in DispatchOptions, the channel will automatically spread calls over the available servers, or fall back to another server if one fails.
|
| StoreConnected |
|
This property specifies does Connected property should be stored in the dfm file or not.
|
| SuppressErrorDialogs |
|
|
| SynchronizedProbing (declared in TROTransportChannel) |
|
Determines whether server probing happens in the context of the main VCL thread (true, default) or in a background worker thread. See the ProbeServers property for a more detailed description.
|
| TargetUri (declared in TROTransportChannel) |
|
|
| TargetUrl protected (declared in TROTransportChannel) |
|
|
| ThreadSafe protected (declared in TROTransportChannel) |
|
|
| Timeout |
|
Sets the timeout, in milliseconds, after which a request will be aborted if no response has been received. The default value is 600,000 (10 minutes). If you are expecting long processing times on your server, make sure to adjust this timeout accordingly.
|
| TrustInvalidCA |
|
|
Class Methods
| ChannelMatchingTargetUri (declared in TROTransportChannel) |
|---|
|
|
| ChannelMatchingTargetUrl (declared in TROTransportChannel) |
|
|
Instance Methods
| constructor Create override |
|---|
|
|
| destructor Destroy override |
|
|
| Assign override |
|
|
| AsyncException protected virtual (declared in TROTransportChannel) |
|
|
| BeforeDispatch protected virtual (declared in TROTransportChannel) |
|
|
| ChangeServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| CheckProperties virtual (declared in TROTransportChannel) |
|
|
| DecodeEventStream protected (declared in TROTransportChannel) |
|
|
| Dispatch (IROMessage) protected reintroduce overload (declared in TROTransportChannel) |
|
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoAfterProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoAfterProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeProbingServerEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoBeforeProbingServersEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoException protected virtual (declared in TROTransportChannel) |
|
|
| DoLoginNeeded protected virtual (declared in TROTransportChannel) |
|
|
| DoReceiveStreamEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoSendStreamEvent protected virtual (declared in TROTransportChannel) |
|
|
| DoServerLocatorAssignmentEvent protected virtual (declared in TROTransportChannel) |
|
|
| GetContentType protected override |
|
|
| GetKeepAlive protected override |
|
|
| GetServerLocatorClass protected virtual (declared in TROTransportChannel) |
|
|
| GetTargetUri protected virtual (declared in TROTransportChannel) |
|
|
| GetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| GetTransportObject protected virtual abstract (declared in TROTransportChannel) |
|
|
| InitServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| intChangeServerLocator protected (declared in TROTransportChannel) |
|
|
| IntDispatch protected override |
|
|
| intInitServerLocator protected (declared in TROTransportChannel) |
|
|
| IntSetServerLocator protected virtual (declared in TROTransportChannel) |
|
|
| IsEncryptionUsed protected (declared in TROTransportChannel) |
|
|
| Loaded protected override (declared in TROTransportChannel) |
|
|
| Notification protected override (declared in TROComponent) |
|
|
| Probe protected (declared in TROTransportChannel) |
|
|
| ProbeAll protected (declared in TROTransportChannel) |
|
|
| ResetProbingClone protected virtual (declared in TROTransportChannel) |
|
|
| RetrieveMetadata protected virtual (declared in TROTransportChannel) |
|
|
| RetrieveRODL protected (declared in TROTransportChannel) |
|
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| SetContentType protected override |
|
|
| SetKeepAlive protected override |
|
|
| SetServerLocator protected (declared in TROTransportChannel) |
|
|
| SetTargetUri protected override |
|
|
| SetTargetUrl protected virtual (declared in TROTransportChannel) |
|
|
| TriggerAfterConnect protected |
|
|
| TriggerProgress protected virtual (declared in TROTransportChannel) |
|
|
Events
| AfterConnect |
|---|
|
|
| OnAfterAttemptConnect |
|
|
| onAfterEncrypt obsolete (declared in TROBaseConnection) |
|
|
| OnAfterOpenRequest |
|
|
| OnAfterProbingServer (declared in TROTransportChannel) |
|
Fires after the channel is done probing a specific server for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAfterProbingServers (declared in TROTransportChannel) |
|
Fires after the channel is done probing all servers for availability. You can use this event to check the result of the probing, possibly to update internal data structures or to display server status in the user interface.
|
| OnAsyncException (declared in TROTransportChannel) |
|
|
| onBeforeDecrypt obsolete (declared in TROBaseConnection) |
|
|
| OnBeforeOpenConnection |
|
|
| OnBeforeOpenRequest |
|
|
| OnBeforeProbingServer (declared in TROTransportChannel) |
|
Fires before the channel starts probing a specific server for availability. You can use this event to:
|
| OnBeforeProbingServers (declared in TROTransportChannel) |
|
Fires before the channel starts probing all servers for availability. You can use this event:
|
| OnException (declared in TROTransportChannel) |
|
Fires if an exception is raised during the execution of a remote request. This could be an exception returned from the server, a communication problem or an error within the client. Depending on the type of error, your event handler can try to rectify the problem, and set aRetry to true to have the channel try and perform the request again. For example, an application could show a dialog asking the user to confirm if his internet connection is available, with Cancel and Retry buttons. If aRetry is set to true and the call succeeds at the second attempt, the call will return to the original code that initiated the request, as if the exception never happened.
|
| OnFailure (declared in TROTransportChannel) |
|
|
| OnInvalidCertificate |
|
|
| OnLoginNeeded (declared in TROTransportChannel) |
|
Fires if an EROSessionNotFound (or the descendant SessionNotFoundException) exception is raised during the execution of a remote request. This usually indicates that the server cannot authenticate the client or that the session has expired. The most common use for this event is to perform a call to a special Login service provided by the server (possibly after prompting the user to enter username and password), and to set the aRetry parameter to true if login was successful.
|
| OnProgress (declared in TROTransportChannel) |
|
This event fires as the channel is transferring data for a request or response to or from the server, informing of the current progress. It can be used to keep the user interface updated during lengthy transfers,e.g. by showing a progress bar or the remaining transfer volume. Note: the accuracy and frequency of calls to OnProgress depends on the channel type; since channels transport data packets in different sized chunks (or even all-at-once), OnProgress might show a very fine progress for some channels, while jumping from 0 to 100% in one step with others.
|
| OnReceiveStream (declared in TROTransportChannel) |
|
Fires after a stream with a response message has been received from the server. Use this event handler to inspect and possibly modify the stream, before it continues to be processed by the higher levels of the RemObjects SDK framework.
|
| OnSendStream (declared in TROTransportChannel) |
|
Fires just as a stream with a request message will be sent to the server. The event handler can inspect and possibly modify the stream, before it continues to be sent off to the server.
|
| OnServerLocatorAssignment (declared in TROTransportChannel) |
|
Fires before changing of a server locator
|
See Also
- Channels
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript