Package io.undertow.client.http2
Class Http2ClientExchange
java.lang.Object
io.undertow.util.AbstractAttachable
io.undertow.client.http2.Http2ClientExchange
- All Implemented Interfaces:
ClientExchange,Attachable
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionHttp2ClientExchange(ClientConnection clientConnection, Http2StreamSinkChannel request, ClientRequest clientRequest) -
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 class io.undertow.util.AbstractAttachable
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.undertow.util.Attachable
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachment
-
Constructor Details
-
Http2ClientExchange
public Http2ClientExchange(ClientConnection clientConnection, Http2StreamSinkChannel request, ClientRequest clientRequest)
-
-
Method Details
-
setResponseListener
- Specified by:
setResponseListenerin interfaceClientExchange
-
setContinueHandler
- Specified by:
setContinueHandlerin interfaceClientExchange
-
setPushHandler
- Specified by:
setPushHandlerin interfaceClientExchange
-
getRequestChannel
public org.xnio.channels.StreamSinkChannel getRequestChannel()Description copied from interface:ClientExchangeReturns the request channel that can be used to send data to the server.- Specified by:
getRequestChannelin interfaceClientExchange- Returns:
- The request channel
-
getResponseChannel
public org.xnio.channels.StreamSourceChannel getResponseChannel()Description copied from interface:ClientExchangeReturns the response channel that can be used to read data from the target server.- Specified by:
getResponseChannelin interfaceClientExchange- Returns:
- The response channel
-
getRequest
- Specified by:
getRequestin interfaceClientExchange
-
getResponse
- Specified by:
getResponsein interfaceClientExchange- Returns:
- The client response, or null if it has not been received yet
-
getContinueResponse
- Specified by:
getContinueResponsein interfaceClientExchange- Returns:
- the result of a HTTP 100-continue response
-
getConnection
- Specified by:
getConnectionin interfaceClientExchange- Returns:
- The underlying connection
-