Interface Transport

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface Transport
    extends java.lang.AutoCloseable
    • Field Detail

      • TRANSPORT_ATTRIBUTE_KEY

        static final io.netty.util.AttributeKey<Transport> TRANSPORT_ATTRIBUTE_KEY
    • Method Detail

      • getHttpAddress

        org.xbib.netty.http.common.HttpAddress getHttpAddress()
      • execute

        Transport execute​(Request request)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • execute

        <T> java.util.concurrent.CompletableFuture<T> execute​(Request request,
                                                              java.util.function.Function<org.xbib.netty.http.common.HttpResponse,​T> supplier)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • waitForSettings

        void waitForSettings()
      • settingsReceived

        void settingsReceived​(io.netty.handler.codec.http2.Http2Settings http2Settings)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • responseReceived

        void responseReceived​(io.netty.channel.Channel channel,
                              java.lang.Integer streamId,
                              io.netty.handler.codec.http.FullHttpResponse fullHttpResponse)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • pushPromiseReceived

        void pushPromiseReceived​(io.netty.channel.Channel channel,
                                 java.lang.Integer streamId,
                                 java.lang.Integer promisedStreamId,
                                 io.netty.handler.codec.http2.Http2Headers headers)
      • setCookieBox

        void setCookieBox​(org.xbib.netty.http.common.cookie.CookieBox cookieBox)
      • getCookieBox

        org.xbib.netty.http.common.cookie.CookieBox getCookieBox()
      • get

        Transport get​(long value,
                      java.util.concurrent.TimeUnit timeUnit)
      • cancel

        void cancel()
      • fail

        void fail​(java.lang.Throwable throwable)
      • isFailed

        boolean isFailed()
      • getFailure

        java.lang.Throwable getFailure()
      • getSession

        javax.net.ssl.SSLSession getSession()
      • close

        void close()
            throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException