@Tags(value={"WebSocket","Jetty","server"})
@CapabilityDescription(value="Implementation of WebSocketServerService. This service uses Jetty WebSocket server module to provide WebSocket session management throughout the application.")
public class JettyWebSocketServer
extends AbstractJettyWebSocketService
implements WebSocketServerService
| Modifier and Type | Class and Description |
|---|---|
static class |
JettyWebSocketServer.JettyWebSocketServlet |
| Modifier and Type | Field and Description |
|---|---|
static org.apache.nifi.components.PropertyDescriptor |
AUTH_PATH_SPEC |
static org.apache.nifi.components.PropertyDescriptor |
AUTH_ROLES |
static org.apache.nifi.components.PropertyDescriptor |
BASIC_AUTH |
static org.apache.nifi.components.PropertyDescriptor |
CLIENT_AUTH |
static org.apache.nifi.components.AllowableValue |
CLIENT_NEED |
static org.apache.nifi.components.AllowableValue |
CLIENT_NONE |
static org.apache.nifi.components.AllowableValue |
CLIENT_WANT |
private org.eclipse.jetty.websocket.api.WebSocketPolicy |
configuredPolicy |
static org.apache.nifi.components.PropertyDescriptor |
LISTEN_PORT |
private Integer |
listenPort |
static org.apache.nifi.components.PropertyDescriptor |
LOGIN_SERVICE |
static org.apache.nifi.components.AllowableValue |
LOGIN_SERVICE_HASH |
private static Map<Integer,JettyWebSocketServer> |
portToControllerService
A global map to refer a controller service instance by requested port number.
|
private static List<org.apache.nifi.components.PropertyDescriptor> |
properties |
private org.eclipse.jetty.server.Server |
server |
private org.eclipse.jetty.servlet.ServletHandler |
servletHandler |
static org.apache.nifi.components.PropertyDescriptor |
USERS_PROPERTIES_FILE |
INPUT_BUFFER_SIZE, MAX_BINARY_MESSAGE_SIZE, MAX_TEXT_MESSAGE_SIZEroutersSSL_CONTEXT| Constructor and Description |
|---|
JettyWebSocketServer() |
| Modifier and Type | Method and Description |
|---|---|
private org.eclipse.jetty.server.ServerConnector |
createConnector(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
Integer listenPort) |
private org.eclipse.jetty.util.ssl.SslContextFactory |
createSslFactory(org.apache.nifi.controller.ConfigurationContext context) |
protected Collection<org.apache.nifi.components.ValidationResult> |
customValidate(org.apache.nifi.components.ValidationContext validationContext) |
protected List<org.apache.nifi.components.PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
startServer(org.apache.nifi.controller.ConfigurationContext context) |
void |
stopServer() |
configurePolicy, createSslFactory, getAbstractPropertyDescriptorsderegisterProcessor, isProcessorRegistered, registerProcessor, sendMessageabstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledequals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitderegisterProcessor, isProcessorRegistered, registerProcessor, sendMessageprivate static final Map<Integer,JettyWebSocketServer> portToControllerService
public static final org.apache.nifi.components.AllowableValue CLIENT_NONE
public static final org.apache.nifi.components.AllowableValue CLIENT_WANT
public static final org.apache.nifi.components.AllowableValue CLIENT_NEED
public static final org.apache.nifi.components.AllowableValue LOGIN_SERVICE_HASH
public static final org.apache.nifi.components.PropertyDescriptor CLIENT_AUTH
public static final org.apache.nifi.components.PropertyDescriptor LISTEN_PORT
public static final org.apache.nifi.components.PropertyDescriptor BASIC_AUTH
public static final org.apache.nifi.components.PropertyDescriptor AUTH_PATH_SPEC
public static final org.apache.nifi.components.PropertyDescriptor AUTH_ROLES
public static final org.apache.nifi.components.PropertyDescriptor LOGIN_SERVICE
public static final org.apache.nifi.components.PropertyDescriptor USERS_PROPERTIES_FILE
private static final List<org.apache.nifi.components.PropertyDescriptor> properties
private org.eclipse.jetty.websocket.api.WebSocketPolicy configuredPolicy
private org.eclipse.jetty.server.Server server
private Integer listenPort
private org.eclipse.jetty.servlet.ServletHandler servletHandler
protected List<org.apache.nifi.components.PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class org.apache.nifi.components.AbstractConfigurableComponentprotected Collection<org.apache.nifi.components.ValidationResult> customValidate(org.apache.nifi.components.ValidationContext validationContext)
customValidate in class org.apache.nifi.components.AbstractConfigurableComponent@OnEnabled
public void startServer(org.apache.nifi.controller.ConfigurationContext context)
throws Exception
startServer in interface WebSocketServerServiceExceptionprivate org.eclipse.jetty.server.ServerConnector createConnector(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
Integer listenPort)
private org.eclipse.jetty.util.ssl.SslContextFactory createSslFactory(org.apache.nifi.controller.ConfigurationContext context)
@OnDisabled
@OnShutdown
public void stopServer()
throws Exception
stopServer in interface WebSocketServerServiceExceptionCopyright © 2022 Apache NiFi Project. All rights reserved.