public class HttpWsServerConnectorFuture extends DefaultWebSocketConnectorFuture implements ServerConnectorFuture
| Constructor and Description |
|---|
HttpWsServerConnectorFuture() |
HttpWsServerConnectorFuture(io.netty.channel.ChannelFuture nettyBindFuture) |
HttpWsServerConnectorFuture(io.netty.channel.ChannelFuture nettyBindFuture,
io.netty.channel.group.ChannelGroup allChannels) |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyErrorListener(Throwable cause)
Notify error messages to the listener.
|
void |
notifyHttpListener(Http2PushPromise pushPromise)
Notifies
Http2PushPromise to the listener. |
void |
notifyHttpListener(HttpCarbonMessage httpMessage)
Notify HTTP messages to the listener.
|
void |
notifyHttpListener(HttpCarbonMessage httpMessage,
Http2PushPromise pushPromise)
Notifies HTTP Server Push messages to the listener.
|
void |
notifyPortBindingError(Throwable throwable)
Notify the port binding listener of exceptions thrown during connector startup
|
void |
notifyPortBindingEvent(String serverConnectorId,
boolean isHttps)
Notify the port binding listener of events related to connector start up
|
void |
notifyPortUnbindingEvent(String serverConnectorId,
boolean isHttps)
Notify the port binding listener of events related to connector termination
|
void |
setHttpConnectorListener(HttpConnectorListener httpConnectorListener)
Set Connector listener for HTTP.
|
void |
setPortBindingEventListener(PortBindingEventListener portBindingEventListener)
Set life cycle event listener for the HTTP/WS_SCHEME connector
|
void |
sync()
Waits till the port binding is completed.
|
notifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyWebSocketIdleTimeout, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, notifyWebSocketListener, setWebSocketConnectorListenerpublic HttpWsServerConnectorFuture()
public HttpWsServerConnectorFuture(io.netty.channel.ChannelFuture nettyBindFuture)
public HttpWsServerConnectorFuture(io.netty.channel.ChannelFuture nettyBindFuture,
io.netty.channel.group.ChannelGroup allChannels)
public void setHttpConnectorListener(HttpConnectorListener httpConnectorListener)
HttpConnectorFuturesetHttpConnectorListener in interface HttpConnectorFuturehttpConnectorListener - Connector listener for HTTP.public void notifyHttpListener(HttpCarbonMessage httpMessage) throws ServerConnectorException
HttpConnectorFuturenotifyHttpListener in interface HttpConnectorFuturehttpMessage - HTTP message.ServerConnectorException - if any error occurred during the notification.public void notifyHttpListener(HttpCarbonMessage httpMessage, Http2PushPromise pushPromise) throws ServerConnectorException
HttpConnectorFuturenotifyHttpListener in interface HttpConnectorFuturehttpMessage - the HttpCarbonMessage receive as the push responsepushPromise - the related Http2PushPromiseServerConnectorException - if any error occurred during the notificationpublic void notifyHttpListener(Http2PushPromise pushPromise) throws ServerConnectorException
HttpConnectorFutureHttp2PushPromise to the listener.notifyHttpListener in interface HttpConnectorFuturepushPromise - the push promise messageServerConnectorException - in case of failurepublic void sync()
throws InterruptedException
ServerConnectorFuturesync in interface ServerConnectorFutureInterruptedException - if any interrupt occurred while waiting for port binding.public void notifyErrorListener(Throwable cause) throws ServerConnectorException
HttpConnectorFuturenotifyErrorListener in interface HttpConnectorFuturecause - Reason for the error.ServerConnectorException - if any error occurred during the error notification.public void setPortBindingEventListener(PortBindingEventListener portBindingEventListener)
ServerConnectorFuturesetPortBindingEventListener in interface ServerConnectorFutureportBindingEventListener - The PortBindingEventListener implementationpublic void notifyPortBindingEvent(String serverConnectorId, boolean isHttps)
ServerConnectorFuturenotifyPortBindingEvent in interface ServerConnectorFutureserverConnectorId - The ID of the server connected related to this port binding eventisHttps - Specifies whether the server connector is using HTTPS.public void notifyPortUnbindingEvent(String serverConnectorId, boolean isHttps)
ServerConnectorFuturenotifyPortUnbindingEvent in interface ServerConnectorFutureserverConnectorId - The ID of the server connected related to this port unbinding eventisHttps - Specifies whether the server connector is using HTTPS.public void notifyPortBindingError(Throwable throwable)
ServerConnectorFuturenotifyPortBindingError in interface ServerConnectorFuturethrowable - Exception thrown during connector startupCopyright © 2023 WSO2. All rights reserved.