JettyWebSocketServer

Description

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

Tags

Jetty, WebSocket, server

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 NameAPI NameDefault ValueAllowable ValuesDescription
Basic Authentication Enabled *Basic Authentication Enabledfalse
  • true
  • false
If enabled, client connection requests are authenticated with Basic authentication using the specified Login Provider.
Basic Authentication Path SpecBasic Authentication Path Spec/*Specify a Path Spec to apply Basic Authentication.
Basic Authentication RolesBasic Authentication Roles**The authenticated user must have one of specified role. Multiple roles can be set as comma separated string. ‘*’ represents any role and so does ‘**’ any role including no role.
Client Authentication *Client Authenticationno
  • No Authentication
  • Want Authentication
  • Need Authentication
Specifies whether or not the Processor should authenticate client by its certificate. This value is ignored if the <SSL Context Service> Property is not specified or the SSL Context provided uses only a KeyStore and not a TrustStore.
Idle Timeout *Idle Timeout0 secThe maximum amount of time that a WebSocket connection may remain idle before it is closed. A value of 0 sec disables the timeout.
Input Buffer Size *Input Buffer Size4 kbThe size of the input (read from network layer) buffer size.
Login ServiceLogin Servicehash- HashLoginServiceSpecify which Login Service to use for Basic Authentication.
Max Binary Message Size *Max Binary Message Size64 kbThe maximum size of a binary message during parsing/generating.
Max Text Message Size *Max Text Message Size64 kbThe maximum size of a text message during parsing/generating.
Port *PortThe port number on which this WebSocketServer listens to.
SSL Context ServiceSSL Context ServiceThe 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
Users Properties Fileusers-properties-fileSpecify a property file containing users for Basic Authentication using HashLoginService. See http://www.eclipse.org/jetty/documentation/current/configuring-security.html (http://www.eclipse.org/jetty/documentation/current/configuring-security.html) for detail.

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.