Class CompressedQuicTripTransport
java.lang.Object
org.tentackle.trip.transport.AbstractTransport
org.tentackle.quic.QuicTripTransport
org.tentackle.quic.CompressedQuicTripTransport
- All Implemented Interfaces:
Transport
Transport implementation for QUIC with compression, scheme "tripcq".
Inserts the deflate compression streams between TRIP and every QUIC stream, on the server and on the client.
Inserts the deflate compression streams between TRIP and every QUIC stream, on the server and on the client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe protocol name for QUIC with compression. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new compressed QUIC transport. -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamcreateCompressedInputStream(InputStream inputStream) Creates the compressed input stream.protected OutputStreamcreateCompressedOutputStream(OutputStream outputStream) Creates the compressed output stream.createConnectionHandler(String connectionName, InputStream inputStream, OutputStream outputStream, Supplier<List<X509Certificate>> peerCertificates) Creates a connection handler for the given streams and the certificates the peer presented.createStream(Dictionary dictionary, tech.kwik.core.QuicStream quicStream) Creates a TRIP stream for the given QUIC stream.Methods inherited from class QuicTripTransport
accept, close, closeStream, createClientConnectionPool, getMaxIdleSeconds, getMaxStreams, getMigrationProbeTimeouts, getStreamWindow, inputStream, isAccepting, isRetryRequired, outputStream, stopAcceptingMethods inherited from class AbstractTransport
createCallHandler, createRegistry, createServerThread, getCallThreadPool, getClientDictionary, getConnection, getConnectionThreadPool, getId, getPreAuthenticationPolicy, getRegistry, getRemoteLookup, getServerDictionary, getTransportKey, getUri, getUriPars, isClosed, lookup, putConnection, setPreAuthenticationPolicy, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Transport
createConnectionHandler
-
Field Details
-
PROTOCOL
-
-
Constructor Details
-
CompressedQuicTripTransport
Creates a new compressed QUIC transport.- Parameters:
uri- the URI of the transport
-
-
Method Details
-
createConnectionHandler
public Runnable createConnectionHandler(String connectionName, InputStream inputStream, OutputStream outputStream, Supplier<List<X509Certificate>> peerCertificates) Description copied from interface:TransportCreates a connection handler for the given streams and the certificates the peer presented.The certificates are those the TLS layer of the transport has verified, i.e. the client certificate chain of a mutually authenticated connection. They are provided lazily, since the TLS handshake of a TCP connection takes place on the first read, which is done by the handler. The handler asks for them only after it has received the connection request, when the handshake is complete. See
TransportClientInfo.peerCertificates().- Specified by:
createConnectionHandlerin interfaceTransport- Overrides:
createConnectionHandlerin classAbstractTransport- Parameters:
connectionName- the name of the connectioninputStream- the input streamoutputStream- the output streampeerCertificates- supplies the verified certificate chain of the peer, leaf first, empty if none- Returns:
- the connection handler
-
createStream
Description copied from class:QuicTripTransportCreates a TRIP stream for the given QUIC stream.- Overrides:
createStreamin classQuicTripTransport- Parameters:
dictionary- the dictionary to use for serialization/deserializationquicStream- the QUIC stream- Returns:
- the TRIP stream
-
createCompressedOutputStream
Creates the compressed output stream.- Parameters:
outputStream- the uncompressed output stream of the QUIC stream- Returns:
- the compressed output stream
-
createCompressedInputStream
Creates the compressed input stream.- Parameters:
inputStream- the uncompressed input stream of the QUIC stream- Returns:
- the compressed input stream
-