Top Fields Constructors Methods
io.undertow.client.http2

public Class Http2ClientExchange

extends AbstractAttachable
implements ClientExchange
Class Inheritance
All Implemented Interfaces
io.undertow.client.ClientExchange, io.undertow.util.Attachable
Imports
java.io.IOException, io.undertow.client.PushCallback, .ClientCallback, .ClientConnection, .ClientExchange, .ClientRequest, .ClientResponse, .ContinueNotification, org.xnio.channels.StreamSinkChannel, .StreamSourceChannel, io.undertow.protocols.http2.Http2Channel, .Http2StreamSinkChannel, .Http2StreamSourceChannel, io.undertow.util.AbstractAttachable, .HeaderMap, .Protocols

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final ClientConnection
private final ClientRequest
private ClientResponse
private ContinueNotification
private ClientResponse
private IOException
private PushCallback
private final Http2StreamSinkChannel
private Http2StreamSourceChannel
private ClientCallback<ClientExchange>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv ClientResponse
pack-priv void
public ClientConnection
public ClientResponse
pack-priv PushCallback
public ClientRequest
public StreamSinkChannel
getRequestChannel()

Implements io.undertow.client.ClientExchange.getRequestChannel.

Returns the request channel that can be used to send data to the server.

public ClientResponse
public StreamSourceChannel
getResponseChannel()

Implements io.undertow.client.ClientExchange.getResponseChannel.

Returns the response channel that can be used to read data from the target server.

pack-priv void
public void
pack-priv void
public void
public void
Inherited from io.undertow.util.AbstractAttachable:
addToAttachmentListcreateAttachmentMapgetAttachmentgetAttachmentListputAttachmentremoveAttachment

Field Detail

clientConnectionback to summary
private final ClientConnection clientConnection
clientRequestback to summary
private final ClientRequest clientRequest
clientResponseback to summary
private ClientResponse clientResponse
continueNotificationback to summary
private ContinueNotification continueNotification
continueResponseback to summary
private ClientResponse continueResponse
failedReasonback to summary
private IOException failedReason
pushCallbackback to summary
private PushCallback pushCallback
requestback to summary
private final Http2StreamSinkChannel request
responseback to summary
private Http2StreamSourceChannel response
responseListenerback to summary
private ClientCallback<ClientExchange> responseListener

Constructor Detail

Http2ClientExchangeback to summary
public Http2ClientExchange(ClientConnection clientConnection, Http2StreamSinkChannel request, ClientRequest clientRequest)

Method Detail

createResponseback to summary
pack-priv ClientResponse createResponse(Http2StreamSourceChannel result)
failedback to summary
pack-priv void failed(final IOException e)
getConnectionback to summary
public ClientConnection getConnection()

Implements io.undertow.client.ClientExchange.getConnection.

Returns:ClientConnection

Doc from io.undertow.client.ClientExchange.getConnection.

The underlying connection

Annotations
@Override
getContinueResponseback to summary
public ClientResponse getContinueResponse()

Implements io.undertow.client.ClientExchange.getContinueResponse.

Returns:ClientResponse

Doc from io.undertow.client.ClientExchange.getContinueResponse.

the result of a HTTP 100-continue response

Annotations
@Override
getPushCallbackback to summary
pack-priv PushCallback getPushCallback()
getRequestback to summary
public ClientRequest getRequest()

Implements io.undertow.client.ClientExchange.getRequest.

Annotations
@Override
getRequestChannelback to summary
public StreamSinkChannel getRequestChannel()

Implements io.undertow.client.ClientExchange.getRequestChannel.

Doc from io.undertow.client.ClientExchange.getRequestChannel.

Returns the request channel that can be used to send data to the server.

Returns:StreamSinkChannel

The request channel

Annotations
@Override
getResponseback to summary
public ClientResponse getResponse()

Implements io.undertow.client.ClientExchange.getResponse.

Returns:ClientResponse

Doc from io.undertow.client.ClientExchange.getResponse.

The client response, or null if it has not been received yet

Annotations
@Override
getResponseChannelback to summary
public StreamSourceChannel getResponseChannel()

Implements io.undertow.client.ClientExchange.getResponseChannel.

Doc from io.undertow.client.ClientExchange.getResponseChannel.

Returns the response channel that can be used to read data from the target server.

Returns:StreamSourceChannel

The response channel

Annotations
@Override
responseReadyback to summary
pack-priv void responseReady(Http2StreamSourceChannel result)
setContinueHandlerback to summary
public void setContinueHandler(ContinueNotification continueHandler)

Implements io.undertow.client.ClientExchange.setContinueHandler.

Annotations
@Override
setContinueResponseback to summary
pack-priv void setContinueResponse(ClientResponse response)
setPushHandlerback to summary
public void setPushHandler(PushCallback pushCallback)

Implements io.undertow.client.ClientExchange.setPushHandler.

Annotations
@Override
setResponseListenerback to summary
public void setResponseListener(ClientCallback<ClientExchange> responseListener)

Implements io.undertow.client.ClientExchange.setResponseListener.

Annotations
@Override