public class DefaultHttpClientConnector extends Object implements HttpClientConnector
| Constructor and Description |
|---|
DefaultHttpClientConnector(ConnectionManager connectionManager,
SenderConfiguration senderConfiguration,
BootstrapConfiguration bootstrapConfig,
io.netty.channel.EventLoopGroup clientEventGroup) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Close the connection related to this connector.
|
HttpResponseFuture |
connect()
Creates the connection to the back-end.
|
HttpResponseFuture |
getNextPushPromise(ResponseHandle responseHandle)
Gets the next available
Http2PushPromise related to the ResponseHandle in asynchronous manner. |
HttpResponseFuture |
getPushResponse(Http2PushPromise pushPromise)
Gets the push response in asynchronous manner.
|
HttpResponseFuture |
getResponse(ResponseHandle responseHandle)
Fetches the response related to the
ResponseHandle in asynchronous manner. |
HttpResponseFuture |
hasPushPromise(ResponseHandle responseHandle)
Checks whether a
Http2PushPromise exists in asynchronous manner. |
void |
rejectPushResponse(Http2PushPromise pushPromise)
Rejects a server push response which is expected to receive over a promised stream.
|
HttpResponseFuture |
send(HttpCarbonMessage httpOutboundRequest)
Send httpMessages to the back-end in asynchronous manner.
|
HttpResponseFuture |
send(OutboundMsgHolder outboundMsgHolder,
HttpCarbonMessage httpOutboundRequest) |
public DefaultHttpClientConnector(ConnectionManager connectionManager, SenderConfiguration senderConfiguration, BootstrapConfiguration bootstrapConfig, io.netty.channel.EventLoopGroup clientEventGroup)
public HttpResponseFuture connect()
HttpClientConnectorconnect in interface HttpClientConnectorpublic HttpResponseFuture getResponse(ResponseHandle responseHandle)
HttpClientConnectorResponseHandle in asynchronous manner.getResponse in interface HttpClientConnectorresponseHandle - the Response Handle which represent the asynchronous service invocationpublic HttpResponseFuture getNextPushPromise(ResponseHandle responseHandle)
HttpClientConnectorHttp2PushPromise related to the ResponseHandle in asynchronous manner.getNextPushPromise in interface HttpClientConnectorresponseHandle - the Response Handle which represent the asynchronous service invocationpublic HttpResponseFuture hasPushPromise(ResponseHandle responseHandle)
HttpClientConnectorHttp2PushPromise exists in asynchronous manner.hasPushPromise in interface HttpClientConnectorresponseHandle - the Response Handle which represent the asynchronous service invocationpublic void rejectPushResponse(Http2PushPromise pushPromise)
HttpClientConnectorrejectPushResponse in interface HttpClientConnectorpushPromise - push promise related to the server push which is need to be rejectedpublic HttpResponseFuture getPushResponse(Http2PushPromise pushPromise)
HttpClientConnectorgetPushResponse in interface HttpClientConnectorpushPromise - push promise related to the server pushpublic boolean close()
HttpClientConnectorclose in interface HttpClientConnectorpublic HttpResponseFuture send(HttpCarbonMessage httpOutboundRequest)
HttpClientConnectorsend in interface HttpClientConnectorhttpOutboundRequest - HttpCarbonMessage which should be sent to the remote server.public HttpResponseFuture send(OutboundMsgHolder outboundMsgHolder, HttpCarbonMessage httpOutboundRequest)
Copyright © 2023 WSO2. All rights reserved.