NoFailProtocolSelectionListener Class — netty Architecture
Architecture documentation for the NoFailProtocolSelectionListener class in JdkBaseApplicationProtocolNegotiator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0f27490d_af85_1f60_588b_efec2c3631a6["NoFailProtocolSelectionListener"] 343cd5c6_735e_911b_ea1e_6891d57066f3["JdkBaseApplicationProtocolNegotiator.java"] 0f27490d_af85_1f60_588b_efec2c3631a6 -->|defined in| 343cd5c6_735e_911b_ea1e_6891d57066f3 64973338_e3ea_76b0_3265_e6d818a710af["NoFailProtocolSelectionListener()"] 0f27490d_af85_1f60_588b_efec2c3631a6 -->|method| 64973338_e3ea_76b0_3265_e6d818a710af 7226cdf3_48f4_9620_2968_2c198e0dcac8["unsupported()"] 0f27490d_af85_1f60_588b_efec2c3631a6 -->|method| 7226cdf3_48f4_9620_2968_2c198e0dcac8 9720cc02_6597_a35d_cf1a_7cbadf40c262["selected()"] 0f27490d_af85_1f60_588b_efec2c3631a6 -->|method| 9720cc02_6597_a35d_cf1a_7cbadf40c262 a473a3f2_10fc_a11f_98cd_154bf2d37266["noSelectedMatchFound()"] 0f27490d_af85_1f60_588b_efec2c3631a6 -->|method| a473a3f2_10fc_a11f_98cd_154bf2d37266
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/JdkBaseApplicationProtocolNegotiator.java lines 171–197
private static class NoFailProtocolSelectionListener implements ProtocolSelectionListener {
private final JdkSslEngine engineWrapper;
private final List<String> supportedProtocols;
NoFailProtocolSelectionListener(JdkSslEngine engineWrapper, List<String> supportedProtocols) {
this.engineWrapper = engineWrapper;
this.supportedProtocols = supportedProtocols;
}
@Override
public void unsupported() {
engineWrapper.setNegotiatedApplicationProtocol(null);
}
@Override
public void selected(String protocol) throws Exception {
if (supportedProtocols.contains(protocol)) {
engineWrapper.setNegotiatedApplicationProtocol(protocol);
} else {
noSelectedMatchFound(protocol);
}
}
protected void noSelectedMatchFound(String protocol) throws Exception {
// Will never be called.
}
}
Source
Frequently Asked Questions
What is the NoFailProtocolSelectionListener class?
NoFailProtocolSelectionListener is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/JdkBaseApplicationProtocolNegotiator.java.
Where is NoFailProtocolSelectionListener defined?
NoFailProtocolSelectionListener is defined in handler/src/main/java/io/netty/handler/ssl/JdkBaseApplicationProtocolNegotiator.java at line 171.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free