HTTP Connector
HTTP Connector resource describes the characteristics of the connection used to receive incoming HTTP requests. This resource is used when the process requires an HTTP request on a specific port where the HTTP server is running. For example, the process starter HTTP Receiver and the signal-in Wait for HTTP Request activity receiving HTTP requests.
There can be only one process with an HTTP Receiver or Wait for HTTP Request activity that uses the same HTTP Connection resource. With this restriction the HTTP server listening for the incoming requests dispatches the request to the correct process.
General
The General section has the following fields.
Field | Module Property | Description |
---|---|---|
Package | No | The name of the package in which you want to create a shared resource. |
Name | No | The name of the shared resource. |
Description | No | A short description of the shared resource. |
Basic Configuration
The Basic Configuration section has the following fields.
Field | Module Property | Description |
---|---|---|
Host | Yes |
Note: Do not change the value for this property. By default, it is set to the
BW.HOST.NAME module property.
Specifies the name of the host that accepts the incoming requests. For machines that have only one network card, the default value localhost specifies the current machine. For machines that have more than one network card, this field specifies the host name of the card that is used to accept incoming HTTP requests.
If there is more than one network card on the machine, and you specify localhost in this field, all network cards on the machine listen for incoming HTTP requests on the specified port. When using local host for the system property, use the full name of your machine as the host in the client. Note: You can start more than one HTTP server on a single port by using
Context and
Path fields on
HTTP Receiver and
Wait for HTTP activities. Ensure that you use a different port, if different
Context or
Path are not specified.
|
Port | Yes | Specifies the port number on which to listen for incoming HTTP requests.
The default value for
PORT field is set to
BW.CLOUD.PORT. The
BW.CLOUD.PORT is a module property whose default port value is 8080. Note: Do not use port 7777. It is reserved for an internal use.
|
HTTP Version | No | The HTTP version to be used for communication. By default, it is HTTP 1.1. If required, you can select HTTP 2.0 as the version for the HTTP 2 communication. It is mandatory for the communicating client to support HTTP 2 as well if HTTP 2 is selected as the server protocol. If multiple clients are used, which may or may not support HTTP 2, it is recommended to select the
Follow HTTP1 Compliance check box, subject to the condition that the clients have the ability to negotiate the HTTP version with the server. Currently, among the
TIBCO Cloud Integration HTTP clients, only the Jetty client supports HTTP 2 communication.
When HTTP 2.0 is selected as the HTTP version in the HTTP connector shared resource, enabling SSL through the Confidentiality or Default Confidentiality option is compulsory.
Note: Both HTTP 2 and HTTP 1.1 are currently supported only for the HTTP palette. The SOAP and REST bindings continue to use only HTTP 1 for communication.
|
Follow HTTP1 Compliance | Yes | This option is enabled only when the HTTP 2.0 is selected as the HTTP version. This option, if selected enables negotiation between the server and client to decide the HTTP version to be used. HTTP 1.1 and HTTP 2.0 are the supported versions. If the client does not have the ability to negotiate the protocol, selecting this check box causes the server to fall back to the default HTTP 1 implementation. Hence this check box should be selected only if the HTTP 2 client can negotiate the protocol with the server. Currently, no client used in TIBCO BusinessWorks Container Edition can negotiate the protocol version. Hence it is recommended not to enable this option, if HTTP 2 communication is required. Currently, HTTP communication with this option works only when the Jetty HTTP Client is selected as the client library, for TIBCO BusinessWorks Container Edition applications. |
Accept Queue Size | Yes | Specifies the number of connection requests to be queued before the operating system starts sending rejections. The default values are: -1 and 0.
These default values signify that the queue size is 50 or OS-specific. |
Acceptor Threads | Yes | The value should be compulsorily set between 1 and (the number of processors in the runtime + 3)/4. This shall ensure optimal performance during request processing using Non Blocking IO. The Jetty 9 library used for the HTTP Connector, uses Non-Blocking IO as the only means of IO.
The default value is 1. |
Hide Server Implementation | Yes | Select the check box to hide additional details of a server implemented in the HTTP response, and log files in case of errors.
By default, the check box is clear. |
Advanced Configuration
The Advanced Configuration section has the following fields.
Security
Security can include any combination of the following characteristics:
Field | Description |
---|---|
Confidentiality | To be included when encrypting or decrypting the messages.
Selecting this check box displays the SSL Server Configuration field. Older security protocols TLS v1.0, v1.1 and SSL v3 are not supported, in order to prevent security vulnerabilities. |
JWT Authentication | Enable this to use JSON Web Token (JWT) authentication when exposing a BusinessWorks REST Service.
JWT is an open standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm). Selecting this check box enables the following fields:
|
Service Registry Configuration
Field | Module Property | Description |
---|---|---|
Service Name | Yes | The name of the service to register on Eureka or Consul. |
Eureka Configuration | No | Select this checkbox to modify the App Metadata configuration for Eureka Service Registry.
By default, the check box is clear. |
Service Port | Yes |
The service port with which the service gets registered on the Eureka server. The default value is 8080. |
Eviction Duration (S) | Yes | Specifies the length of the lease (in seconds) for the service.
The default value is 30. |
Renewal Interval (S) | Yes |
Specifies the time (in seconds) after which the lease should be renewed. The default value is 30. |
Home Page URL | Yes | This is the default location of a useful endpoint for home page.
To override this parameter, provide input in the following format: <port>/<url> |
Status URL | Yes |
This is the default location of a useful endpoint for status. To override this parameter, provide input in the following format: <port>/<url> |
Healthcheck URL | Yes |
This is the default location of a useful endpoint for health check. To override this parameter, provide input in the following format: <port>/<url>/ |
Data Center Name | Yes | This sets the data center information for where the instance is running.
Default value is MyOwn. |