jira-importer opened a new issue, #1015:
URL: https://github.com/apache/httpcomponents-core/issues/1015

   **[Gary D. 
Gregory](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=garydgregory)**
 opened 
**[HTTPCORE-515](https://issues.apache.org/jira/browse/HTTPCORE-515?redirect=false)**
 and commented
   
   Add convenience API 
`org.apache.http.impl.nio.DefaultHttpServerIODispatch.create(T, SSLContext, 
ConnectionConfig, HttpRequestFactory)`:
   
   ```java
        /**
        * Creates a new instance of this class to be used for dispatching I/O 
event
        * notifications to the given protocol handler.
        * 
        * @param eventHandler the server protocol handler.
        * @param sslContext an SSLContext or null (for a plain text connection.)
        * @param config a connection configuration
        * @param httpRequestFactory the request factory used by this object to 
generate {@link HttpRequest} instances. 
        * @return a new instance
        * @since 4.4.10
        */
       public static <T extends NHttpServerEventHandler> 
DefaultHttpServerIODispatch<T> create(final T eventHandler,
               final SSLContext sslContext, final ConnectionConfig config, 
HttpRequestFactory httpRequestFactory) {
           final NHttpMessageParserFactory<HttpRequest> 
httpRequestParserFactory = new DefaultHttpRequestParserFactory(
                   null, httpRequestFactory);
           // @formatter:off
           return sslContext == null
                   ? new DefaultHttpServerIODispatch<T>(eventHandler,
                           new DefaultNHttpServerConnectionFactory(null, 
httpRequestParserFactory, null, config))
                   : new DefaultHttpServerIODispatch<T>(eventHandler,
                           new SSLNHttpServerConnectionFactory(sslContext, 
null, httpRequestParserFactory, null, config));
           // @formatter:om
       }
   ```
   
   
   
   ---
   No further details from 
[HTTPCORE-515](https://issues.apache.org/jira/browse/HTTPCORE-515?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to