register(endpointWrapper); EndpointEventListener endpointEventListener = applicationEventListener.onEndpointRegistered(serverConfig.getPath(), endpointClass);
register(endpointWrapper); EndpointEventListener endpointEventListener = applicationEventListener.onEndpointRegistered(serverConfig.getPath(), endpointClass);
@Override public void register(Class<?> endpointClass, String contextPath) throws DeploymentException { final ErrorCollector collector = new ErrorCollector(); EndpointEventListenerWrapper endpointEventListenerWrapper = new EndpointEventListenerWrapper(); AnnotatedEndpoint endpoint = AnnotatedEndpoint .fromClass(endpointClass, componentProviderService, true, incomingBufferSize, collector, endpointEventListenerWrapper); EndpointConfig config = endpoint.getEndpointConfig(); TyrusEndpointWrapper endpointWrapper = new TyrusEndpointWrapper( endpoint, config, componentProviderService, webSocketContainer, contextPath, config instanceof ServerEndpointConfig ? ((ServerEndpointConfig) config).getConfigurator() : null, sessionListener, clusterContext, endpointEventListenerWrapper, parallelBroadcastEnabled); if (collector.isEmpty()) { register(endpointWrapper); } else { throw collector.composeComprehensiveException(); } String endpointPath = config instanceof ServerEndpointConfig ? ((ServerEndpointConfig) config).getPath() : null; EndpointEventListener endpointEventListener = applicationEventListener.onEndpointRegistered(endpointPath, endpointClass); endpointEventListenerWrapper.setEndpointEventListener(endpointEventListener); }
@Override public void register(Class<?> endpointClass, String contextPath) throws DeploymentException { final ErrorCollector collector = new ErrorCollector(); EndpointEventListenerWrapper endpointEventListenerWrapper = new EndpointEventListenerWrapper(); AnnotatedEndpoint endpoint = AnnotatedEndpoint .fromClass(endpointClass, componentProviderService, true, incomingBufferSize, collector, endpointEventListenerWrapper); EndpointConfig config = endpoint.getEndpointConfig(); TyrusEndpointWrapper endpointWrapper = new TyrusEndpointWrapper( endpoint, config, componentProviderService, webSocketContainer, contextPath, config instanceof ServerEndpointConfig ? ((ServerEndpointConfig) config).getConfigurator() : null, sessionListener, clusterContext, endpointEventListenerWrapper, parallelBroadcastEnabled); if (collector.isEmpty()) { register(endpointWrapper); } else { throw collector.composeComprehensiveException(); } String endpointPath = config instanceof ServerEndpointConfig ? ((ServerEndpointConfig) config).getPath() : null; EndpointEventListener endpointEventListener = applicationEventListener.onEndpointRegistered(endpointPath, endpointClass); endpointEventListenerWrapper.setEndpointEventListener(endpointEventListener); }