JettyWebSocketClient

Description:

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

Tags:

WebSocket, Jetty, client

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Input Buffer Sizeinput-buffer-size4 kbThe size of the input (read from network layer) buffer size.
Max Text Message Sizemax-text-message-size64 kbThe maximum size of a text message during parsing/generating.
Max Binary Message Sizemax-binary-message-size64 kbThe maximum size of a binary message during parsing/generating.
WebSocket URIwebsocket-uriThe WebSocket URI this client connects to.
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
SSL Context Servicessl-context-serviceController Service API:
RestrictedSSLContextService
Implementation: StandardRestrictedSSLContextService
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
Connection Timeoutconnection-timeout3 secThe timeout to connect the WebSocket URI.
Supports Expression Language: true (will be evaluated using variable registry only)
Connection Attempt Countconnection-attempt-timeout3The number of times to try and establish a connection.
Supports Expression Language: true (will be evaluated using variable registry only)
Session Maintenance Intervalsession-maintenance-interval10 secThe 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.
Supports Expression Language: true (will be evaluated using variable registry only)
User Nameuser-nameThe user name for Basic Authentication.
Supports Expression Language: true (will be evaluated using variable registry only)
User Passworduser-passwordThe user password for Basic Authentication.
Sensitive Property: true
Supports Expression Language: true (will be evaluated using variable registry only)
Authentication Header Charsetauthentication-charsetUS-ASCIIThe charset for Basic Authentication header base64 string.
Supports Expression Language: true (will be evaluated using variable registry only)
Custom Authorizationcustom-authorizationConfigures 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.
Sensitive Property: true
Supports Expression Language: true (will be evaluated using variable registry only)
HTTP Proxy Hostproxy-hostThe host name of the HTTP Proxy.
Supports Expression Language: true (will be evaluated using variable registry only)
HTTP Proxy Portproxy-portThe port number of the HTTP Proxy.
Supports Expression Language: true (will be evaluated using variable registry only)

State management:

This component does not store state.

Restricted:

This component is not restricted.

System Resource Considerations:

None specified.