Class LocalHttpConnection

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

    public class LocalHttpConnection
    extends 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)
    • 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<Void> handler)
        Specified by:
        shutdownHandler in interface io.vertx.core.http.HttpConnection
      • shutdown

        public void shutdown​(long timeout,
                             io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
        Specified by:
        shutdown in interface io.vertx.core.http.HttpConnection
      • shutdown

        public io.vertx.core.Future<Void> 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<Void> handler)
        Specified by:
        closeHandler in interface io.vertx.core.http.HttpConnection
      • close

        public io.vertx.core.Future<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.Future<Void> 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<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
      • ping

        public io.vertx.core.Future<io.vertx.core.buffer.Buffer> ping​(io.vertx.core.buffer.Buffer data)
        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<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
      • remoteAddress

        public io.vertx.core.net.SocketAddress remoteAddress​(boolean real)
        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
      • localAddress

        public io.vertx.core.net.SocketAddress localAddress​(boolean real)
        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 SSLSession sslSession()
        Specified by:
        sslSession in interface io.vertx.core.http.HttpConnection
      • indicatedServerName

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