Package org.eclipse.jetty.quic.client
Class QuicTransport
java.lang.Object
org.eclipse.jetty.io.Transport.Wrapper
org.eclipse.jetty.quic.client.QuicTransport
- All Implemented Interfaces:
Transport
A Transport
for QUIC that delegates to another Transport
.
By default, the delegate is Transport.UDP_IP
, but it may be a different
implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Transport
Transport.IP, Transport.Socket, Transport.TCPIP, Transport.TCPUnix, Transport.UDPIP, Transport.UDPUnix, Transport.Unix, Transport.Wrapper
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQuicTransport
(Transport wrapped, ClientQuicConfiguration quicConfiguration) QuicTransport
(ClientQuicConfiguration quicConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
boolean
newConnection
(EndPoint endPoint, Map<String, Object> context) Creates a newConnection
to be associated with the given low-levelEndPoint
.Methods inherited from class org.eclipse.jetty.io.Transport.Wrapper
connect, getSocketAddress, getWrapped, newEndPoint, newSelectableChannel, requiresDomainNameResolution, toString, unwrap
-
Constructor Details
-
QuicTransport
-
QuicTransport
-
-
Method Details
-
isIntrinsicallySecure
public boolean isIntrinsicallySecure()- Specified by:
isIntrinsicallySecure
in interfaceTransport
- Overrides:
isIntrinsicallySecure
in classTransport.Wrapper
- Returns:
- whether this
Transport
is intrinsically secure.
-
newConnection
Description copied from interface:Transport
Creates a new
Connection
to be associated with the given low-levelEndPoint
.For non-layered
Transport
s such as TCP/IP, theConnection
is typically that of the high-level protocol. For layeredTransport
s such as QUIC, theConnection
is typically that of the layeredTransport
.- Specified by:
newConnection
in interfaceTransport
- Overrides:
newConnection
in classTransport.Wrapper
- Parameters:
endPoint
- theEndPoint
to associate theConnection
tocontext
- the context information to create the connection- Returns:
- a new
Connection
- Throws:
IOException
- if theConnection
cannot be created
-
hashCode
public int hashCode() -
equals
-