Top Description Constructors Methods
io.undertow.protocols.alpn

public Class ModularJdkAlpnProvider

extends Object
implements ALPNProvider
Class Inheritance
All Implemented Interfaces
io.undertow.protocols.alpn.ALPNProvider
Imports
javax.net.ssl.SSLEngine, .SSLParameters

Open listener adaptor for ALPN connections that use the Modular JDK API

Not a proper open listener as such, but more a mechanism for selecting between them

Author
Stuart Douglas

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public String
getSelectedProtocol(final SSLEngine
The SSL Engine
engine
)

Implements io.undertow.protocols.alpn.ALPNProvider.getSelectedProtocol.

Gets the selected ALPN protocol, of null if none was selected.

public boolean
public SSLEngine
setProtocols(final SSLEngine
The original engine
engine
,
final String[]
The protocols
protocols
)

Implements io.undertow.protocols.alpn.ALPNProvider.setProtocols.

Sets the SSL protocols, and potentially wraps the SSLEngine

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

ModularJdkAlpnProviderback to summary
public ModularJdkAlpnProvider()

Method Detail

getPriorityback to summary
public int getPriority()

Implements io.undertow.protocols.alpn.ALPNProvider.getPriority.

Returns:int

Doc from io.undertow.protocols.alpn.ALPNProvider.getPriority.

The priority of this provider, higher priority providers will be tried first

Annotations
@Override
getSelectedProtocolback to summary
public String getSelectedProtocol(final SSLEngine engine)

Implements io.undertow.protocols.alpn.ALPNProvider.getSelectedProtocol.

Doc from io.undertow.protocols.alpn.ALPNProvider.getSelectedProtocol.

Gets the selected ALPN protocol, of null if none was selected.

Parameters
engine:SSLEngine

The SSL Engine

Returns:String

The selected protocol

Annotations
@Override
isEnabledback to summary
public boolean isEnabled(final SSLEngine sslEngine)

Implements io.undertow.protocols.alpn.ALPNProvider.isEnabled.

Annotations
@Override
setProtocolsback to summary
public SSLEngine setProtocols(final SSLEngine engine, final String[] protocols)

Implements io.undertow.protocols.alpn.ALPNProvider.setProtocols.

Doc from io.undertow.protocols.alpn.ALPNProvider.setProtocols.

Sets the SSL protocols, and potentially wraps the SSLEngine

Parameters
engine:SSLEngine

The original engine

protocols:String[]

The protocols

Returns:SSLEngine

The new SSLEngine

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override