Class WebSocketProxyConnectionHandler
- java.lang.Object
-
- org.apache.qpid.proton.engine.BaseHandler
-
- com.microsoft.azure.eventhubs.impl.ConnectionHandler
-
- com.microsoft.azure.eventhubs.impl.WebSocketConnectionHandler
-
- com.microsoft.azure.eventhubs.impl.WebSocketProxyConnectionHandler
-
- All Implemented Interfaces:
org.apache.qpid.proton.engine.CoreHandler,org.apache.qpid.proton.engine.Handler
public class WebSocketProxyConnectionHandler extends WebSocketConnectionHandler
-
-
Constructor Summary
Constructors Constructor Description WebSocketProxyConnectionHandler(AmqpConnection amqpConnection, String connectionId, org.apache.qpid.proton.engine.SslDomain.VerifyMode verifyMode, ProxyConfiguration proxyConfiguration)Creates a WebSocket proxy connection handler for theamqpConnectionandproxyConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTransportLayers(org.apache.qpid.proton.engine.Event event, org.apache.qpid.proton.engine.impl.TransportInternal transport)StringgetRemoteHostName()HostName to be used for socket creation.intgetRemotePort()port used to create socket.protected voidnotifyTransportErrors(org.apache.qpid.proton.engine.Event event)static BooleanshouldUseProxy(String hostName)-
Methods inherited from class com.microsoft.azure.eventhubs.impl.WebSocketConnectionHandler
getMaxFrameSize, getProtocolPort
-
Methods inherited from class com.microsoft.azure.eventhubs.impl.ConnectionHandler
getAmqpConnection, onConnectionBound, onConnectionFinal, onConnectionInit, onConnectionLocalClose, onConnectionLocalOpen, onConnectionRemoteClose, onConnectionRemoteOpen, onConnectionUnbound, onTransportClosed, onTransportError
-
Methods inherited from class org.apache.qpid.proton.engine.BaseHandler
add, children, getHandler, getHandler, handle, onDelivery, onLinkFinal, onLinkFlow, onLinkInit, onLinkLocalClose, onLinkLocalDetach, onLinkLocalOpen, onLinkRemoteClose, onLinkRemoteDetach, onLinkRemoteOpen, onReactorFinal, onReactorInit, onReactorQuiesced, onSelectableError, onSelectableExpired, onSelectableFinal, onSelectableInit, onSelectableReadable, onSelectableUpdated, onSelectableWritable, onSessionFinal, onSessionInit, onSessionLocalClose, onSessionLocalOpen, onSessionRemoteClose, onSessionRemoteOpen, onTimerTask, onTransport, onTransportHeadClosed, onTransportTailClosed, onUnhandled, setHandler, setHandler
-
-
-
-
Constructor Detail
-
WebSocketProxyConnectionHandler
public WebSocketProxyConnectionHandler(AmqpConnection amqpConnection, String connectionId, org.apache.qpid.proton.engine.SslDomain.VerifyMode verifyMode, ProxyConfiguration proxyConfiguration)
Creates a WebSocket proxy connection handler for theamqpConnectionandproxyConfiguration.- Parameters:
amqpConnection- AMQP connection to the service.proxyConfiguration- Required. Proxy configuration to use.- Throws:
NullPointerException- ifproxyConfigurationisnull.
-
-
Method Detail
-
addTransportLayers
protected void addTransportLayers(org.apache.qpid.proton.engine.Event event, org.apache.qpid.proton.engine.impl.TransportInternal transport)- Overrides:
addTransportLayersin classWebSocketConnectionHandler
-
notifyTransportErrors
protected void notifyTransportErrors(org.apache.qpid.proton.engine.Event event)
- Overrides:
notifyTransportErrorsin classConnectionHandler
-
getRemoteHostName
public String getRemoteHostName()
Description copied from class:ConnectionHandlerHostName to be used for socket creation. for ex: in case of proxy server - this could be proxy ip address- Overrides:
getRemoteHostNamein classConnectionHandler- Returns:
- host name
-
getRemotePort
public int getRemotePort()
Description copied from class:ConnectionHandlerport used to create socket. for ex: in case of talking to event hubs service via proxy - use proxy port- Overrides:
getRemotePortin classConnectionHandler- Returns:
- port
-
-