我试图使用m2e(maven)插件在eclipse中运行i-jetty。第530行的文件IJettyService.java的源代码给出了这个调用
SslSelectChannelConnector sslConnector = new SslSelectChannelConnector(sslContextFactory);
Eclipse IDE在这里抱怨
The constructor SslSelectChannelConnector(SslContextFactory) is
undefined
所以我使用了一个反编译器,发现它确实存在。
/* ------------------------------------------------------------ */
public SslSelectChannelConnector()
{
this(new SslContextFactory(SslContextFactory.DEFAULT_KEYSTORE_PATH));
setSoLingerTime(30000);
}
/* ------------------------------------------------------------ */
/** Construct with explicit SslContextFactory.
* The SslContextFactory passed is added via {@link #addBean(Object)} so that
* it's lifecycle may be managed with {@link AggregateLifeCycle}.
* @param sslContextFactory
*/
public SslSelectChannelConnector(SslContextFactory sslContextFactory)
{
_sslContextFactory = sslContextFactory;
addBean(_sslContextFactory);
setUseDirectBuffers(false);
setSoLingerTime(30000);
}
我不明白为什么它的表现如此。有没有人遇到类似的问题?
答案 0 :(得分:0)
你发布的内容应该可行。也许你的类路径上有一个旧版本的码头库?试试new SslSelectChannelConnector( null )
,看看会发生什么。