/** * @since 4.3 */ public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final SSLSetupHandler sslHandler, final ConnectionConfig config) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, sslHandler, config)); }
/** * @since 4.3 */ public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final ConnectionConfig config) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, null, config)); }
/** * @since 4.3 */ public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final SSLSetupHandler sslHandler, final ConnectionConfig config) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, sslHandler, config)); }
/** * @since 4.3 */ public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final ConnectionConfig config) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, null, config)); }
/** * @deprecated (4.3) use {@link DefaultHttpServerIODispatch#DefaultHttpServerIODispatch( * NHttpServerEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)} */ @Deprecated public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final SSLSetupHandler sslHandler, final HttpParams params) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, sslHandler, params)); }
/** * @deprecated (4.3) use {@link DefaultHttpServerIODispatch#DefaultHttpServerIODispatch( * NHttpServerEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)} */ @Deprecated public DefaultHttpServerIODispatch( final NHttpServerEventHandler handler, final SSLContext sslcontext, final SSLSetupHandler sslHandler, final HttpParams params) { this(handler, new SSLNHttpServerConnectionFactory(sslcontext, sslHandler, params)); }
sslConnFactory = new SSLNHttpServerConnectionFactory(sslcontext, sslSetupHandler, getHttpParams());
if (connectionFactoryCopy == null) { if (this.sslContext != null) { connectionFactoryCopy = new SSLNHttpServerConnectionFactory( this.sslContext, this.sslSetupHandler, this.connectionConfig); } else {
if (connectionFactoryCopy == null) { if (this.sslContext != null) { connectionFactoryCopy = new SSLNHttpServerConnectionFactory( this.sslContext, this.sslSetupHandler, this.connectionConfig); } else {
final SSLContext sslcontext = SSLContext.getInstance("TLS"); sslcontext.init(keymanagers, null, null); connFactory = new SSLNHttpServerConnectionFactory(sslcontext, null, params); } else