Package io.undertow.client
Interface ClientExchange
- All Superinterfaces:
Attachable
- All Known Implementing Classes:
Http2ClientExchange
- Author:
- Stuart Douglas
-
Method Summary
Modifier and TypeMethodDescriptionorg.xnio.channels.StreamSinkChannelReturns the request channel that can be used to send data to the server.org.xnio.channels.StreamSourceChannelReturns the response channel that can be used to read data from the target server.voidsetContinueHandler(ContinueNotification continueHandler) voidsetPushHandler(PushCallback pushCallback) voidsetResponseListener(ClientCallback<ClientExchange> responseListener) Methods inherited from interface io.undertow.util.Attachable
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
Method Details
-
setResponseListener
-
setContinueHandler
-
setPushHandler
-
getRequestChannel
org.xnio.channels.StreamSinkChannel getRequestChannel()Returns the request channel that can be used to send data to the server.- Returns:
- The request channel
-
getResponseChannel
org.xnio.channels.StreamSourceChannel getResponseChannel()Returns the response channel that can be used to read data from the target server.- Returns:
- The response channel
-
getRequest
ClientRequest getRequest() -
getResponse
ClientResponse getResponse()- Returns:
- The client response, or null if it has not been received yet
-
getContinueResponse
ClientResponse getContinueResponse()- Returns:
- the result of a HTTP 100-continue response
-
getConnection
ClientConnection getConnection()- Returns:
- The underlying connection
-