Package org.swisspush.gateleen.core.http
Class LocalHttpConnection
- java.lang.Object
-
- org.swisspush.gateleen.core.http.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 Summary
Constructors Constructor Description LocalHttpConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Future<Void>close()io.vertx.core.http.HttpConnectioncloseHandler(io.vertx.core.Handler<Void> handler)io.vertx.core.http.HttpConnectionexceptionHandler(io.vertx.core.Handler<Throwable> handler)io.vertx.core.http.HttpConnectiongoAway(long errorCode, int lastStreamId, io.vertx.core.buffer.Buffer debugData)io.vertx.core.http.HttpConnectiongoAwayHandler(io.vertx.core.Handler<io.vertx.core.http.GoAway> handler)StringindicatedServerName()booleanisSsl()io.vertx.core.net.SocketAddresslocalAddress()io.vertx.core.net.SocketAddresslocalAddress(boolean real)X509Certificate[]peerCertificateChain()List<Certificate>peerCertificates()io.vertx.core.Future<io.vertx.core.buffer.Buffer>ping(io.vertx.core.buffer.Buffer data)io.vertx.core.http.HttpConnectionping(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> pongHandler)io.vertx.core.http.HttpConnectionpingHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)io.vertx.core.net.SocketAddressremoteAddress()io.vertx.core.net.SocketAddressremoteAddress(boolean real)io.vertx.core.http.Http2SettingsremoteSettings()io.vertx.core.http.HttpConnectionremoteSettingsHandler(io.vertx.core.Handler<io.vertx.core.http.Http2Settings> handler)io.vertx.core.http.Http2Settingssettings()io.vertx.core.Future<Void>shutdown(long timeoutMs)voidshutdown(long timeout, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)io.vertx.core.http.HttpConnectionshutdownHandler(io.vertx.core.Handler<Void> handler)SSLSessionsslSession()io.vertx.core.Future<Void>updateSettings(io.vertx.core.http.Http2Settings settings)io.vertx.core.http.HttpConnectionupdateSettings(io.vertx.core.http.Http2Settings settings, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
-
-
-
Method Detail
-
goAway
public io.vertx.core.http.HttpConnection goAway(long errorCode, int lastStreamId, io.vertx.core.buffer.Buffer debugData)- Specified by:
goAwayin interfaceio.vertx.core.http.HttpConnection
-
goAwayHandler
public io.vertx.core.http.HttpConnection goAwayHandler(io.vertx.core.Handler<io.vertx.core.http.GoAway> handler)
- Specified by:
goAwayHandlerin interfaceio.vertx.core.http.HttpConnection
-
shutdownHandler
public io.vertx.core.http.HttpConnection shutdownHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
shutdownHandlerin interfaceio.vertx.core.http.HttpConnection
-
shutdown
public void shutdown(long timeout, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)- Specified by:
shutdownin interfaceio.vertx.core.http.HttpConnection
-
shutdown
public io.vertx.core.Future<Void> shutdown(long timeoutMs)
- Specified by:
shutdownin interfaceio.vertx.core.http.HttpConnection
-
closeHandler
public io.vertx.core.http.HttpConnection closeHandler(io.vertx.core.Handler<Void> handler)
- Specified by:
closeHandlerin interfaceio.vertx.core.http.HttpConnection
-
close
public io.vertx.core.Future<Void> close()
- Specified by:
closein interfaceio.vertx.core.http.HttpConnection
-
settings
public io.vertx.core.http.Http2Settings settings()
- Specified by:
settingsin interfaceio.vertx.core.http.HttpConnection
-
updateSettings
public io.vertx.core.Future<Void> updateSettings(io.vertx.core.http.Http2Settings settings)
- Specified by:
updateSettingsin interfaceio.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:
updateSettingsin interfaceio.vertx.core.http.HttpConnection
-
remoteSettings
public io.vertx.core.http.Http2Settings remoteSettings()
- Specified by:
remoteSettingsin interfaceio.vertx.core.http.HttpConnection
-
remoteSettingsHandler
public io.vertx.core.http.HttpConnection remoteSettingsHandler(io.vertx.core.Handler<io.vertx.core.http.Http2Settings> handler)
- Specified by:
remoteSettingsHandlerin interfaceio.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:
pingin interfaceio.vertx.core.http.HttpConnection
-
ping
public io.vertx.core.Future<io.vertx.core.buffer.Buffer> ping(io.vertx.core.buffer.Buffer data)
- Specified by:
pingin interfaceio.vertx.core.http.HttpConnection
-
pingHandler
public io.vertx.core.http.HttpConnection pingHandler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
- Specified by:
pingHandlerin interfaceio.vertx.core.http.HttpConnection
-
exceptionHandler
public io.vertx.core.http.HttpConnection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceio.vertx.core.http.HttpConnection
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress()
- Specified by:
remoteAddressin interfaceio.vertx.core.http.HttpConnection
-
remoteAddress
public io.vertx.core.net.SocketAddress remoteAddress(boolean real)
- Specified by:
remoteAddressin interfaceio.vertx.core.http.HttpConnection
-
localAddress
public io.vertx.core.net.SocketAddress localAddress()
- Specified by:
localAddressin interfaceio.vertx.core.http.HttpConnection
-
localAddress
public io.vertx.core.net.SocketAddress localAddress(boolean real)
- Specified by:
localAddressin interfaceio.vertx.core.http.HttpConnection
-
isSsl
public boolean isSsl()
- Specified by:
isSslin interfaceio.vertx.core.http.HttpConnection
-
sslSession
public SSLSession sslSession()
- Specified by:
sslSessionin interfaceio.vertx.core.http.HttpConnection
-
peerCertificateChain
public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
- Specified by:
peerCertificateChainin interfaceio.vertx.core.http.HttpConnection- Throws:
SSLPeerUnverifiedException
-
peerCertificates
public List<Certificate> peerCertificates() throws SSLPeerUnverifiedException
- Specified by:
peerCertificatesin interfaceio.vertx.core.http.HttpConnection- Throws:
SSLPeerUnverifiedException
-
indicatedServerName
public String indicatedServerName()
- Specified by:
indicatedServerNamein interfaceio.vertx.core.http.HttpConnection
-
-