Package org.xbib.netty.http.client.api
Interface Transport
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface Transport extends java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static io.netty.util.AttributeKey<Transport>TRANSPORT_ATTRIBUTE_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancel()voidclose()Transportexecute(Request request)<T> java.util.concurrent.CompletableFuture<T>execute(Request request, java.util.function.Function<org.xbib.netty.http.common.HttpResponse,T> supplier)voidfail(java.lang.Throwable throwable)Transportget()Transportget(long value, java.util.concurrent.TimeUnit timeUnit)org.xbib.netty.http.common.cookie.CookieBoxgetCookieBox()java.lang.ThrowablegetFailure()org.xbib.netty.http.common.HttpAddressgetHttpAddress()javax.net.ssl.SSLSessiongetSession()booleanisFailed()voidpushPromiseReceived(io.netty.channel.Channel channel, java.lang.Integer streamId, java.lang.Integer promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers)voidresponseReceived(io.netty.channel.Channel channel, java.lang.Integer streamId, io.netty.handler.codec.http.FullHttpResponse fullHttpResponse)voidsetCookieBox(org.xbib.netty.http.common.cookie.CookieBox cookieBox)voidsettingsReceived(io.netty.handler.codec.http2.Http2Settings http2Settings)voidwaitForSettings()
-
-
-
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
<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()
-
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:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-