Package io.undertow.protocols.alpn
Class DefaultAlpnEngineManager
- java.lang.Object
-
- io.undertow.protocols.alpn.DefaultAlpnEngineManager
-
- All Implemented Interfaces:
ALPNEngineManager
public class DefaultAlpnEngineManager extends Object implements ALPNEngineManager
-
-
Constructor Summary
Constructors Constructor Description DefaultAlpnEngineManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
boolean
registerEngine(SSLEngine engine, Function<SSLEngine,SSLEngine> selectedFunction)
-
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfaceALPNEngineManager
- Returns:
- The priority of this provider, higher priority managers will be tried first
-
registerEngine
public boolean registerEngine(SSLEngine engine, Function<SSLEngine,SSLEngine> selectedFunction)
- Specified by:
registerEngine
in interfaceALPNEngineManager
- Parameters:
engine
- The original SSL EngineselectedFunction
- A function that must be called when the Underlying SSL engine has been selected. The return value of this callback may be a wrapped engine, which must replace the selected engine- Returns:
true
if the engine was registered, false otherwise
-
-