JettyWebSocketClient

Description

Implementation of WebSocketClientService. This service uses Jetty WebSocket client module to provide WebSocket session management throughout the application.

Tags

Jetty, WebSocket, client

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display Name

API Name

Default Value

Allowable Values

Description

Authentication Header Charset *

authentication-charset

US-ASCII

The charset for Basic Authentication header base64 string.

Connection Attempt Count *

connection-attempt-timeout

3

The number of times to try and establish a connection.

Connection Timeout *

connection-timeout

3 sec

The timeout to connect the WebSocket URI.

Custom Authorization

custom-authorization

Configures a custom HTTP Authorization Header as described in RFC 7235 Section 4.2. Setting a custom Authorization Header excludes configuring the User Name and User Password properties for Basic Authentication.

Input Buffer Size *

input-buffer-size

4 kb

The size of the input (read from network layer) buffer size.

Max Binary Message Size *

max-binary-message-size

64 kb

The maximum size of a binary message during parsing/generating.

Max Text Message Size *

max-text-message-size

64 kb

The maximum size of a text message during parsing/generating.

HTTP Proxy Host

proxy-host

The host name of the HTTP Proxy.

HTTP Proxy Port

proxy-port

The port number of the HTTP Proxy.

Session Maintenance Interval *

session-maintenance-interval

10 sec

The interval between session maintenance activities. A WebSocket session established with a WebSocket server can be terminated due to different reasons including restarting the WebSocket server or timing out inactive sessions. This session maintenance activity is periodically executed in order to reconnect those lost sessions, so that a WebSocket client can reuse the same session id transparently after it reconnects successfully. The maintenance activity is executed until corresponding processors or this controller service is stopped.

SSL Context Service

ssl-context-service

The SSL Context Service to use in order to secure the server. If specified, the server will accept only WSS requests; otherwise, the server will accept only WS requests

User Name

user-name

The user name for Basic Authentication.

User Password

user-password

The user password for Basic Authentication.

WebSocket URI *

websocket-uri

The WebSocket URI this client connects to.

State management

This component does not store state.

Restricted

This component is not restricted.

System Resource Considerations

This component does not specify system resource considerations.

Language: English