本文整理了Java中io.netty.handler.ssl.SslContext.applicationProtocolNegotiator()
方法的一些代码示例,展示了SslContext.applicationProtocolNegotiator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SslContext.applicationProtocolNegotiator()
方法的具体详情如下:
包路径:io.netty.handler.ssl.SslContext
类名称:SslContext
方法名:applicationProtocolNegotiator
[英]Returns the object responsible for negotiating application layer protocols for the TLS NPN/ALPN extensions.
[中]返回负责协商TLS NPN/ALPN扩展的应用层协议的对象。
代码示例来源:origin: redisson/redisson
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: wildfly/wildfly
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: redisson/redisson
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: wildfly/wildfly
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: io.netty/netty-handler
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: io.netty/netty-handler
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: apache/activemq-artemis
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
@Override
public final ApplicationProtocolNegotiator applicationProtocolNegotiator() {
return ctx.applicationProtocolNegotiator();
}
代码示例来源:origin: apache/activemq-artemis
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
/**
* @deprecated Use {@link #applicationProtocolNegotiator()} instead.
*/
@Deprecated
public final List<String> nextProtocols() {
return applicationProtocolNegotiator().protocols();
}
代码示例来源:origin: reactor/reactor-netty
@Before
public void setUp() throws Exception {
SelfSignedCertificate cert = new SelfSignedCertificate();
builder = SslContextBuilder.forServer(cert.certificate(), cert.privateKey());
protocols = new ArrayList<>();
server = HttpServer.create()
.port(0)
.tcpConfiguration(tcpServer -> tcpServer.doOnBind(b -> {
SslProvider ssl = reactor.netty.tcp.SslProvider.findSslSupport(b);
if (ssl != null) {
protocols.addAll(ssl.sslContext.applicationProtocolNegotiator().protocols());
sslContext = ssl.sslContext;
}
}));
}
内容来源于网络,如有侵权,请联系作者删除!