Top Description Inners Constructors Methods
io.undertow.client.http2

public Class Http2ClearClientProvider

extends Object
implements ClientProvider
Class Inheritance
All Implemented Interfaces
io.undertow.client.ClientProvider
Imports
java.io.IOException, java.net.InetSocketAddress, .URI, .URISyntaxException, java.nio.ByteBuffer, java.util.Arrays, .HashMap, .HashSet, .Map, .Set, io.undertow.client.ClientStatistics, .ClientCallback, .ClientConnection, .ClientProvider, io.undertow.conduits.ByteActivityCallback, .BytesReceivedStreamSourceConduit, .BytesSentStreamSinkConduit, org.xnio.ChannelListener, .IoFuture, .OptionMap, .StreamConnection, .XnioIoThread, .XnioWorker, io.undertow.connector.ByteBufferPool, .PooledByteBuffer, org.xnio.channels.BoundChannel, org.xnio.http.HttpUpgrade, org.xnio.ssl.XnioSsl, io.undertow.UndertowOptions, io.undertow.protocols.http2.Http2Channel, .Http2Setting, io.undertow.util.FlexBase64, .Headers

HTTP2 client provider that uses HTTP upgrade rather than ALPN. This provider will only use h2c, and sends an initial dummy request to do the initial upgrade.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
connect(final ClientCallback<ClientConnection> listener, final URI uri, final XnioWorker worker, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

public void
connect(final ClientCallback<ClientConnection> listener, final URI uri, final XnioIoThread ioThread, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

public void
connect(final ClientCallback<ClientConnection> listener, InetSocketAddress bindAddress, final URI uri, final XnioWorker worker, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

public void
connect(final ClientCallback<ClientConnection> listener, final InetSocketAddress bindAddress, final URI uri, final XnioIoThread ioThread, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

private Map<String, String>
createHeaders(OptionMap options, ByteBufferPool bufferPool, URI uri)

public static String
public Set<String>
private static void
pushOption(ByteBuffer currentBuffer, int id, int value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Http2ClearClientProviderback to summary
public Http2ClearClientProvider()

Method Detail

connectback to summary
public void connect(final ClientCallback<ClientConnection> listener, final URI uri, final XnioWorker worker, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

Annotations
@Override
connectback to summary
public void connect(final ClientCallback<ClientConnection> listener, final URI uri, final XnioIoThread ioThread, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

Annotations
@Override
connectback to summary
public void connect(final ClientCallback<ClientConnection> listener, InetSocketAddress bindAddress, final URI uri, final XnioWorker worker, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

Annotations
@Override
connectback to summary
public void connect(final ClientCallback<ClientConnection> listener, final InetSocketAddress bindAddress, final URI uri, final XnioIoThread ioThread, final XnioSsl ssl, final ByteBufferPool bufferPool, final OptionMap options)

Implements io.undertow.client.ClientProvider.connect.

Annotations
@Override
createHeadersback to summary
private Map<String, String> createHeaders(OptionMap options, ByteBufferPool bufferPool, URI uri)
createSettingsFrameback to summary
public static String createSettingsFrame(OptionMap options, ByteBufferPool bufferPool)
handlesSchemesback to summary
public Set<String> handlesSchemes()

Implements io.undertow.client.ClientProvider.handlesSchemes.

Annotations
@Override
pushOptionback to summary
private static void pushOption(ByteBuffer currentBuffer, int id, int value)
io.undertow.client.http2 back to summary

private Class Http2ClearClientProvider.ClientStatisticsImpl

extends Object
implements ClientStatistics
Class Inheritance
  • java.lang.Object
  • io.undertow.client.http2.Http2ClearClientProvider.ClientStatisticsImpl
All Implemented Interfaces
io.undertow.client.ClientStatistics

Field Summary

Modifier and TypeField and Description
private long
private long
private long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public long
public long
public long
public long
public void
public void
setRead(long read)

public void
setRequestCount(long requestCount)

public void
setWritten(long written)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

readback to summary
private long read
requestCountback to summary
private long requestCount
writtenback to summary
private long written

Constructor Detail

ClientStatisticsImplback to summary
private ClientStatisticsImpl()

Method Detail

getReadback to summary
public long getRead()

Implements io.undertow.client.ClientStatistics.getRead.

Annotations
@Override
getRequestCountback to summary
public long getRequestCount()
getRequestsback to summary
public long getRequests()

Implements io.undertow.client.ClientStatistics.getRequests.

Annotations
@Override
getWrittenback to summary
public long getWritten()

Implements io.undertow.client.ClientStatistics.getWritten.

Annotations
@Override
resetback to summary
public void reset()

Implements io.undertow.client.ClientStatistics.reset.

Annotations
@Override
setReadback to summary
public void setRead(long read)
setRequestCountback to summary
public void setRequestCount(long requestCount)
setWrittenback to summary
public void setWritten(long written)
io.undertow.client.http2 back to summary

private Class Http2ClearClientProvider.FailedNotifier

extends Object
implements IoFuture.Notifier<StreamConnection, Object>
Class Inheritance
  • java.lang.Object
  • io.undertow.client.http2.Http2ClearClientProvider.FailedNotifier
All Implemented Interfaces
org.xnio.IoFuture.Notifier, java.util.EventListener

Field Summary

Modifier and TypeField and Description
private final ClientCallback<ClientConnection>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
notify(IoFuture<? extends StreamConnection>
the future corresponding to this operation
ioFuture
,
Object
the attachment
attachment
)

Implements org.xnio.IoFuture.Notifier.notify.

Receive notification of the completion of an outstanding operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listenerback to summary
private final ClientCallback<ClientConnection> listener

Constructor Detail

FailedNotifierback to summary
pack-priv FailedNotifier(ClientCallback<ClientConnection> listener)

Method Detail

notifyback to summary
public void notify(IoFuture<? extends StreamConnection> ioFuture, Object attachment)

Implements org.xnio.IoFuture.Notifier.notify.

Doc from org.xnio.IoFuture.Notifier.notify.

Receive notification of the completion of an outstanding operation.

Parameters
ioFuture:IoFuture<? extends StreamConnection>

the future corresponding to this operation

attachment:Object

the attachment

Annotations
@Override
io.undertow.client.http2 back to summary

private Class Http2ClearClientProvider.Http2ClearOpenListener

extends Object
implements ChannelListener<StreamConnection>
Class Inheritance
  • java.lang.Object
  • io.undertow.client.http2.Http2ClearClientProvider.Http2ClearOpenListener
All Implemented Interfaces
org.xnio.ChannelListener, java.util.EventListener

Field Summary

Modifier and TypeField and Description
private final ByteBufferPool
private final String
private final ClientCallback<ClientConnection>
private final OptionMap

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
handleEvent(StreamConnection
the channel event
channel
)

Implements org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferPoolback to summary
private final ByteBufferPool bufferPool
defaultHostback to summary
private final String defaultHost
listenerback to summary
private final ClientCallback<ClientConnection> listener
optionsback to summary
private final OptionMap options

Constructor Detail

Http2ClearOpenListenerback to summary
pack-priv Http2ClearOpenListener(ByteBufferPool bufferPool, OptionMap options, ClientCallback<ClientConnection> listener, String defaultHost)

Method Detail

handleEventback to summary
public void handleEvent(StreamConnection channel)

Implements org.xnio.ChannelListener.handleEvent.

Doc from org.xnio.ChannelListener.handleEvent.

Handle the event on this channel.

Parameters
channel:StreamConnection

the channel event

Annotations
@Override