Interface ClientExchange

All Superinterfaces:
Attachable
All Known Implementing Classes:
Http2ClientExchange

public interface ClientExchange extends Attachable
Author:
Stuart Douglas
  • Method Details

    • setResponseListener

      void setResponseListener(ClientCallback<ClientExchange> responseListener)
    • setContinueHandler

      void setContinueHandler(ContinueNotification continueHandler)
    • setPushHandler

      void setPushHandler(PushCallback pushCallback)
    • 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