Class LocalHttpConnection

  • All Implemented Interfaces:
    io.vertx.core.http.HttpConnection

    public class LocalHttpConnection
    extends java.lang.Object
    implements io.vertx.core.http.HttpConnection
    this is a mock-connection object which silently ignores (nearly) HTTP/1.1 relevant method calls and never throws exceptions we need this to be able to set appropriate exception- and close-handlers in e.g. Gateleen's Forwarder (gateleen-routing)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      io.vertx.core.http.HttpConnection closeHandler​(io.vertx.core.Handler<java.lang.Void> handler)  
      io.vertx.core.http.HttpConnection exceptionHandler​(io.vertx.core.Handler<java.lang.Throwable> handler)  
      io.vertx.core.http.HttpConnection goAway​(long errorCode, int lastStreamId, io.vertx.core.buffer.Buffer debugData)  
      io.vertx.core.http.HttpConnection goAwayHandler​(io.vertx.core.Handler<io.vertx.core.http.GoAway> handler)  
      java.lang.String indicatedServerName()  
      boolean isSsl()  
      io.vertx.core.net.SocketAddress localAddress()  
      javax.security.cert.X509Certificate[] peerCertificateChain()  
      io.vertx.core.http.HttpConnection ping​(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> pongHandler)  
      io.vertx.core.http.HttpConnection pingHandler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)  
      io.vertx.core.net.SocketAddress remoteAddress()  
      io.vertx.core.http.Http2Settings remoteSettings()  
      io.vertx.core.http.HttpConnection remoteSettingsHandler​(io.vertx.core.Handler<io.vertx.core.http.Http2Settings> handler)  
      io.vertx.core.http.Http2Settings settings()  
      io.vertx.core.http.HttpConnection shutdown()  
      io.vertx.core.http.HttpConnection shutdown​(long timeoutMs)  
      io.vertx.core.http.HttpConnection shutdownHandler​(io.vertx.core.Handler<java.lang.Void> handler)  
      javax.net.ssl.SSLSession sslSession()  
      io.vertx.core.http.HttpConnection updateSettings​(io.vertx.core.http.Http2Settings settings)  
      io.vertx.core.http.HttpConnection updateSettings​(io.vertx.core.http.Http2Settings settings, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.vertx.core.http.HttpConnection

        getWindowSize, goAway, goAway, setWindowSize
    • Constructor Detail

      • LocalHttpConnection

        public LocalHttpConnection()
    • Method Detail

      • goAway

        public io.vertx.core.http.HttpConnection goAway​(long errorCode,
                                                        int lastStreamId,
                                                        io.vertx.core.buffer.Buffer debugData)
        Specified by:
        goAway in interface io.vertx.core.http.HttpConnection
      • goAwayHandler

        public io.vertx.core.http.HttpConnection goAwayHandler​(io.vertx.core.Handler<io.vertx.core.http.GoAway> handler)
        Specified by:
        goAwayHandler in interface io.vertx.core.http.HttpConnection
      • shutdownHandler

        public io.vertx.core.http.HttpConnection shutdownHandler​(io.vertx.core.Handler<java.lang.Void> handler)
        Specified by:
        shutdownHandler in interface io.vertx.core.http.HttpConnection
      • shutdown

        public io.vertx.core.http.HttpConnection shutdown()
        Specified by:
        shutdown in interface io.vertx.core.http.HttpConnection
      • shutdown

        public io.vertx.core.http.HttpConnection shutdown​(long timeoutMs)
        Specified by:
        shutdown in interface io.vertx.core.http.HttpConnection
      • closeHandler

        public io.vertx.core.http.HttpConnection closeHandler​(io.vertx.core.Handler<java.lang.Void> handler)
        Specified by:
        closeHandler in interface io.vertx.core.http.HttpConnection
      • close

        public void close()
        Specified by:
        close in interface io.vertx.core.http.HttpConnection
      • settings

        public io.vertx.core.http.Http2Settings settings()
        Specified by:
        settings in interface io.vertx.core.http.HttpConnection
      • updateSettings

        public io.vertx.core.http.HttpConnection updateSettings​(io.vertx.core.http.Http2Settings settings)
        Specified by:
        updateSettings in interface io.vertx.core.http.HttpConnection
      • updateSettings

        public io.vertx.core.http.HttpConnection updateSettings​(io.vertx.core.http.Http2Settings settings,
                                                                io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> completionHandler)
        Specified by:
        updateSettings in interface io.vertx.core.http.HttpConnection
      • remoteSettings

        public io.vertx.core.http.Http2Settings remoteSettings()
        Specified by:
        remoteSettings in interface io.vertx.core.http.HttpConnection
      • remoteSettingsHandler

        public io.vertx.core.http.HttpConnection remoteSettingsHandler​(io.vertx.core.Handler<io.vertx.core.http.Http2Settings> handler)
        Specified by:
        remoteSettingsHandler in interface io.vertx.core.http.HttpConnection
      • ping

        public io.vertx.core.http.HttpConnection ping​(io.vertx.core.buffer.Buffer data,
                                                      io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> pongHandler)
        Specified by:
        ping in interface io.vertx.core.http.HttpConnection
      • pingHandler

        public io.vertx.core.http.HttpConnection pingHandler​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
        Specified by:
        pingHandler in interface io.vertx.core.http.HttpConnection
      • exceptionHandler

        public io.vertx.core.http.HttpConnection exceptionHandler​(io.vertx.core.Handler<java.lang.Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.core.http.HttpConnection
      • remoteAddress

        public io.vertx.core.net.SocketAddress remoteAddress()
        Specified by:
        remoteAddress in interface io.vertx.core.http.HttpConnection
      • localAddress

        public io.vertx.core.net.SocketAddress localAddress()
        Specified by:
        localAddress in interface io.vertx.core.http.HttpConnection
      • isSsl

        public boolean isSsl()
        Specified by:
        isSsl in interface io.vertx.core.http.HttpConnection
      • sslSession

        public javax.net.ssl.SSLSession sslSession()
        Specified by:
        sslSession in interface io.vertx.core.http.HttpConnection
      • peerCertificateChain

        public javax.security.cert.X509Certificate[] peerCertificateChain()
                                                                   throws javax.net.ssl.SSLPeerUnverifiedException
        Specified by:
        peerCertificateChain in interface io.vertx.core.http.HttpConnection
        Throws:
        javax.net.ssl.SSLPeerUnverifiedException
      • indicatedServerName

        public java.lang.String indicatedServerName()
        Specified by:
        indicatedServerName in interface io.vertx.core.http.HttpConnection