Jetty SslConnector弃用的方法 [英] Jetty SslConnector's deprecated methods

查看:226
本文介绍了Jetty SslConnector弃用的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SslConnector.java 界面在最新的Jetty 7.3.1.v20110307 中已更改.

几乎所有关闭的方法都被标记为已弃用,而未提及要使用的替换接口或方法.

Almost all off the methods have been marked as deprecated without mentioning the replacement interface or methods to use.

我已经检查了 jetty-users jetty-dev 邮件列表以获取相关信息没有运气.

I've checked the jetty-users and jetty-dev mailing lists for the information with no luck.

有没有人知道将来应该如何更改代码?

Is there anybody out there who knows how should be the code changed for the future?

提前谢谢!

推荐答案

好吧,从Subversion更改日志中挖掘相应的提交(疯狂),结果发现

Okay, digging out from the subversion changelog for the corresponding commits (crazy) it came out that SslContextFactory should be used.

示例:

final SslContextFactory sslContextFactory = new SslContextFactory(sKeyStore);
sslContextFactory.setKeyStorePassword(sPassword);

final SslSocketConnector conn = new SslSocketConnector(sslContextFactory);
conn.setReuseAddress(true);
// ...

这篇关于Jetty SslConnector弃用的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆