超媒网络 v3.0.0版本的 MD5 值为:e72248abb238993f421967424d9a9515
以下内容为反编译后的 JdkNpnApplicationProtocolNegotiator.java 源代码,内容仅作参考
package io.netty.handler.ssl;
import io.netty.handler.ssl.JdkApplicationProtocolNegotiator;
import java.util.List;
import javax.net.ssl.SSLEngine;
@Deprecated
public final class JdkNpnApplicationProtocolNegotiator extends JdkBaseApplicationProtocolNegotiator {
private static final JdkApplicationProtocolNegotiator.SslEngineWrapperFactory NPN_WRAPPER = new JdkApplicationProtocolNegotiator.SslEngineWrapperFactory() {
{
if (!JettyNpnSslEngine.isAvailable()) {
throw new RuntimeException("NPN unsupported. Is your classpath configured correctly? See https://wiki.eclipse.org/Jetty/Feature/NPN");
}
}
@Override
public SSLEngine wrapSslEngine(SSLEngine sSLEngine, JdkApplicationProtocolNegotiator jdkApplicationProtocolNegotiator, boolean z) {
return new JettyNpnSslEngine(sSLEngine, jdkApplicationProtocolNegotiator, z);
}
};
public JdkNpnApplicationProtocolNegotiator(Iterable<String> iterable) {
this(false, iterable);
}
@Override
public JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolListenerFactory() {
return super.protocolListenerFactory();
}
@Override
public JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory() {
return super.protocolSelectorFactory();
}
@Override
public List protocols() {
return super.protocols();
}
@Override
public JdkApplicationProtocolNegotiator.SslEngineWrapperFactory wrapperFactory() {
return super.wrapperFactory();
}
public JdkNpnApplicationProtocolNegotiator(String... strArr) {
this(false, strArr);
}
public JdkNpnApplicationProtocolNegotiator(boolean z, Iterable<String> iterable) {
this(z, z, iterable);
}
public JdkNpnApplicationProtocolNegotiator(boolean z, String... strArr) {
this(z, z, strArr);
}
public JdkNpnApplicationProtocolNegotiator(boolean z, boolean z2, Iterable<String> iterable) {
this(z ? JdkBaseApplicationProtocolNegotiator.FAIL_SELECTOR_FACTORY : JdkBaseApplicationProtocolNegotiator.NO_FAIL_SELECTOR_FACTORY, z2 ? JdkBaseApplicationProtocolNegotiator.FAIL_SELECTION_LISTENER_FACTORY : JdkBaseApplicationProtocolNegotiator.NO_FAIL_SELECTION_LISTENER_FACTORY, iterable);
}
public JdkNpnApplicationProtocolNegotiator(boolean z, boolean z2, String... strArr) {
this(z ? JdkBaseApplicationProtocolNegotiator.FAIL_SELECTOR_FACTORY : JdkBaseApplicationProtocolNegotiator.NO_FAIL_SELECTOR_FACTORY, z2 ? JdkBaseApplicationProtocolNegotiator.FAIL_SELECTION_LISTENER_FACTORY : JdkBaseApplicationProtocolNegotiator.NO_FAIL_SELECTION_LISTENER_FACTORY, strArr);
}
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolSelectionListenerFactory, Iterable<String> iterable) {
super(NPN_WRAPPER, protocolSelectorFactory, protocolSelectionListenerFactory, iterable);
}
public JdkNpnApplicationProtocolNegotiator(JdkApplicationProtocolNegotiator.ProtocolSelectorFactory protocolSelectorFactory, JdkApplicationProtocolNegotiator.ProtocolSelectionListenerFactory protocolSelectionListenerFactory, String... strArr) {
super(NPN_WRAPPER, protocolSelectorFactory, protocolSelectionListenerFactory, strArr);
}
}