Class WebSocketProxyConnectionHandler

  • All Implemented Interfaces:
    org.apache.qpid.proton.engine.CoreHandler, org.apache.qpid.proton.engine.Handler

    public class WebSocketProxyConnectionHandler
    extends WebSocketConnectionHandler
    • 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 the amqpConnection and proxyConfiguration.
        Parameters:
        amqpConnection - AMQP connection to the service.
        proxyConfiguration - Required. Proxy configuration to use.
        Throws:
        NullPointerException - if proxyConfiguration is null.
    • Method Detail

      • shouldUseProxy

        public static Boolean shouldUseProxy​(String hostName)
      • addTransportLayers

        protected void addTransportLayers​(org.apache.qpid.proton.engine.Event event,
                                          org.apache.qpid.proton.engine.impl.TransportInternal transport)
        Overrides:
        addTransportLayers in class WebSocketConnectionHandler
      • getRemoteHostName

        public String getRemoteHostName()
        Description copied from class: ConnectionHandler
        HostName to be used for socket creation. for ex: in case of proxy server - this could be proxy ip address
        Overrides:
        getRemoteHostName in class ConnectionHandler
        Returns:
        host name
      • getRemotePort

        public int getRemotePort()
        Description copied from class: ConnectionHandler
        port used to create socket. for ex: in case of talking to event hubs service via proxy - use proxy port
        Overrides:
        getRemotePort in class ConnectionHandler
        Returns:
        port