public class Http2ClientExchange extends AbstractAttachable implements ClientExchange
Constructor and Description |
---|
Http2ClientExchange(ClientConnection clientConnection, Http2StreamSinkChannel request, ClientRequest clientRequest) |
Modifier and Type | Method and Description |
---|---|
ClientConnection | getConnection() |
ClientResponse | getContinueResponse() |
ClientRequest | getRequest() |
org.xnio.channels.StreamSinkChannel | getRequestChannel() Returns the request channel that can be used to send data to the server. |
ClientResponse | getResponse() |
org.xnio.channels.StreamSourceChannel | getResponseChannel() Returns the response channel that can be used to read data from the target server. |
void | setContinueHandler(ContinueNotification continueHandler) |
void | setPushHandler(PushCallback pushCallback) |
void | setResponseListener(ClientCallback<ClientExchange> responseListener) |
addToAttachmentList, createAttachmentMap, getAttachment, getAttachmentList, putAttachment, removeAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToAttachmentList, getAttachment, getAttachmentList, putAttachment, removeAttachment
public Http2ClientExchange(ClientConnection clientConnection, Http2StreamSinkChannel request, ClientRequest clientRequest)
public void setResponseListener(ClientCallback<ClientExchange> responseListener)
setResponseListener
in interface ClientExchange
public void setContinueHandler(ContinueNotification continueHandler)
setContinueHandler
in interface ClientExchange
public void setPushHandler(PushCallback pushCallback)
setPushHandler
in interface ClientExchange
public org.xnio.channels.StreamSinkChannel getRequestChannel()
ClientExchange
getRequestChannel
in interface ClientExchange
public org.xnio.channels.StreamSourceChannel getResponseChannel()
ClientExchange
getResponseChannel
in interface ClientExchange
public ClientRequest getRequest()
getRequest
in interface ClientExchange
public ClientResponse getResponse()
getResponse
in interface ClientExchange
public ClientResponse getContinueResponse()
getContinueResponse
in interface ClientExchange
public ClientConnection getConnection()
getConnection
in interface ClientExchange
Copyright © 2020 JBoss by Red Hat. All rights reserved.