public interface HttpClientConnector
| 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 httpCarbonMessage)
Send httpMessages to the back-end in asynchronous manner.
|
HttpResponseFuture connect()
HttpResponseFuture send(HttpCarbonMessage httpCarbonMessage)
httpCarbonMessage - HttpCarbonMessage which should be sent to the remote server.boolean close()
HttpResponseFuture getResponse(ResponseHandle responseHandle)
ResponseHandle in asynchronous manner.responseHandle - the Response Handle which represent the asynchronous service invocationHttpResponseFuture getNextPushPromise(ResponseHandle responseHandle)
Http2PushPromise related to the ResponseHandle in asynchronous manner.responseHandle - the Response Handle which represent the asynchronous service invocationHttpResponseFuture hasPushPromise(ResponseHandle responseHandle)
Http2PushPromise exists in asynchronous manner.responseHandle - the Response Handle which represent the asynchronous service invocationvoid rejectPushResponse(Http2PushPromise pushPromise)
pushPromise - push promise related to the server push which is need to be rejectedHttpResponseFuture getPushResponse(Http2PushPromise pushPromise)
pushPromise - push promise related to the server pushCopyright © 2021 WSO2. All rights reserved.