TROIpHTTPServer 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
The Synapse based implementation of the server side HTTP Channel. Along with functionality inherited from to it's ancestor TROBaseHTTPServer it exposes some public members specific to Synapse. Please read ancestor's documentation for more information.
Use this channel class to build a HTTP server if Synapse is preferred communication level library.
Location
uROIpHttpServer.pas
- Ancestry: TComponent | TROComponent | TROBaseConnection | TROServer | TROBaseHTTPServer | TROIpHTTPServer
Properties
| Active (declared in TROServer) |
|---|
|
Toggles whether the server ready to receive requests from clients. Depending on the server type, changing this property might open/close a network socket or otherwise toggle whether the server will process incoming requests.
|
| DefaultResponse protected (declared in TROServer) |
|
|
| DisableNagle |
|
Controls Nagle's algorithm usage for TCP/IP communication through the server socket. The default value is true, i.e. the Nagle's algorithm is not used.
|
| Dispatchers (declared in TROServer) |
|
Specifies how incoming requests will be processed and dispatched. Depending on the server type, one or multiple dispatchers can be configured to receive messages from the client. Each dispatcher consists of a Message and an optional Name. Also, each dispatcher can be individually enabled or disabled. Each server must have at least one dispatcher configured, in order to be able to process messages. Essential Sub-Properties
In HTTP based servers (such as the TROIndyHTTPServer, the Name will be appended as folder to the server URL allowing the server to make multiple dispatchers available at different URLs.
|
| 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.
|
| ExtendedDispatchers (declared in TROBaseHTTPServer) |
|
Extended Dispatchers that is used for OData technology.
|
| KeepAlive |
|
Controls the HTTP Keep-Alive feature i.e. connection reuse. If set to true clients are allowed to request connections reuse, otherwise such requests are ignored. The socket is kept open no longer than Timeout. The default value is false.
|
| MinSizeForGzipEncoding (declared in TROBaseHTTPServer) |
|
|
| OnGetRODLReader (declared in TROBaseHTTPServer) |
|
This event allows to set custom TROCustomRODLReader. It is usable for Hydra applications that can process several RODL.
|
| Port |
|
The port on which the server will listen for incoming connections.
|
| SendClientAccessPolicyXml (declared in TROBaseHTTPServer) |
|
Determines how the server channel should handle requests for clientaccesspolicy.xml (security policy file used by Silverlight). Can be set to:
|
| SendCrossOriginHeader (declared in TROBaseHTTPServer) |
|
|
| SendExceptionsAs500 (declared in TROBaseHTTPServer) |
|
If set to true, messages about exceptions occurred on the server will be sent with a HTTP Error 500 header set (standard HTTP header for internal server errors).
|
| ServeInfoPage (declared in TROBaseHTTPServer) |
|
Determines if the server info page should be served or not
|
| Server |
|
Provides read-only access to the underlying Synapse HTTP server object.
|
| ServeRodl (declared in TROServer) |
|
|
| ThreadPool |
|
Allows to set a custom thread pool object to process incoming requests using a set of threads. When not assigned explicitly the thread pool is created and assigned automatically. Assigning this property by users is a rare need, this is required only when precise and/or custom control over processing threads is necessary.
|
| Timeout |
|
Gets or sets the idle timeout value for the connection. When there is no traffic through the socket during that time the socket is closed. The timeout is expressed in seconds, the default value is 180.
|
Instance Methods
| constructor Create override |
|---|
|
The standard component constructor.
|
| destructor Destroy override |
|
|
| Assign override |
|
|
| CheckProperties virtual (declared in TROServer) |
|
|
| DispatchMessage (IROTransport, TStream, TStream): boolean protected overload (declared in TROServer) |
|
|
| DispatchMessage (IROTransport, TStream, TStream, TROResponseOptions): boolean protected overload (declared in TROServer) |
|
|
| DoAfterEncryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoBeforeDecryptEvent protected virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecodeStream protected (declared in TROBaseHTTPServer) |
|
|
| DoDecryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoDecryption2 obsolete (declared in TROBaseConnection) |
|
|
| DoEncodeStream protected (declared in TROBaseHTTPServer) |
|
|
| DoEncryption virtual obsolete (declared in TROBaseConnection) |
|
|
| DoEncryption2 obsolete (declared in TROBaseConnection) |
|
|
| EncodeEventStream protected (declared in TROServer) |
|
|
| GetDispatchersClass protected override (declared in TROBaseHTTPServer) |
|
Returns TROHTTPMessageDispatchers
|
| GetKeepAlive protected |
|
The KeepLive property read accessor.
|
| GetPort protected override |
|
The Port property read accessor.
|
| GetRODLReader protected (declared in TROServer) |
|
|
| GetServerType protected override (declared in TROBaseHTTPServer) |
|
Returns 'rstHTTP'. This property is used by the ZeroConf infrastructure.
|
| IntDispatchMessage protected (declared in TROServer) |
|
|
| IntGetActive protected override |
|
The internal method overridden to get the activity state of the underlying server object.
|
| IntRequest protected |
|
This internal method is used to process incoming requests, it is triggered as an underlying server object callback.
|
| IntSetActive protected override |
|
The internal method overridden to set the activity state of the underlying server object.
|
| IsEncryptionUsed protected (declared in TROServer) |
|
|
| Loaded protected override (declared in TROServer) |
|
|
| Notification protected override (declared in TROServer) |
|
|
| ProcessRequest protected virtual (declared in TROBaseHTTPServer) |
|
This is basically the core of the entire server channel. This method processes incoming HTTP requests and performs requested actions (service method call, RODL request etc).
|
| QueryInterface protected override (declared in TROServer) |
|
|
| Register protected (declared in TROBaseHTTPServer) |
|
Registers IROHTTPDispatcher. it is used in OData technology.
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| SetKeepAlive protected |
|
The KeepLive property write accessor.
|
| SetPort protected override |
|
The Port property write accessor.
|
| TriggerReadFromStream protected (declared in TROServer) |
|
|
| TriggerWriteToStream protected (declared in TROServer) |
|
|
| Unregister protected (declared in TROBaseHTTPServer) |
|
Unregisters IROHTTPDispatcher. it is used in OData technology.
|
Events
| onAfterEncrypt obsolete (declared in TROBaseConnection) |
|---|
|
|
| OnAfterServerActivate (declared in TROServer) |
|
Fires after the server has been activated.
|
| OnAfterServerDeactivate (declared in TROServer) |
|
Fires after the server has been deactivated. You can use this event handler to perform any cleanup you might need after the server has stopped processing new requests.
|
| onBeforeDecrypt obsolete (declared in TROBaseConnection) |
|
|
| OnBeforeServerActivate (declared in TROServer) |
|
Fires just before the server is activated. You can use this event handler to perform any initialization you might need before the server starts processing new requests.
|
| OnBeforeServerDeactivate (declared in TROServer) |
|
Fires just before the server is deactivated. You can use this event handler to perform any cleanup you might need before the server stops processing new requests.
|
| OnCustomResponseEvent (declared in TROBaseHTTPServer) |
|
Allows to handle unknown requests, i.e. that aren't recognised by ProcessRequest
|
| OnGetCustomClientAccessPolicy (declared in TROBaseHTTPServer) |
|
This event is fired when SendClientAccessPolicyXml is set to Custom. Allows more precise management of client access policies. The handler of this event generates a valid ClientAccessPolicy.xml and puts it to the aPolicyContent parameter.
|
| OnGetRODLReader (declared in TROServer) |
|
|
| OnManualBindSocket |
|
Allows users to take control over socket to IP address binding process. By default the server binds to all network addresses available. When a handler exists for this event the user's code becomes fully responsible for the binding. No automatic binding is performed allowing to bind to certain addresses only.
|
| OnReadFromStream (declared in TROServer) |
|
Fires after a stream with a request message has been received from the client. The event handler can inspect and possibly modify the stream, before it continues to be processed by the higher levels of the RemObjects SDK framework.
|
| OnSendCrossOriginHeader (declared in TROBaseHTTPServer) |
|
|
| OnWriteToStream (declared in TROServer) |
|
Fires just before a stream with a response message is sent back to the client. The event handler can inspect and possibly modify the stream, before it continues to be sent off to the client.
|
See Also
- 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