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

   **[Gary D. 
Gregory](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=garydgregory)**
 opened 
**[HTTPCORE-506](https://issues.apache.org/jira/browse/HTTPCORE-506?redirect=false)**
 and commented
   
   Add generics to `DefaultHttpClientIODispatch` to specify the 
`NHttpClientEventHandler` implementation type.
   
   Change:
   
   ```java
   public class DefaultHttpClientIODispatch
                       extends AbstractIODispatch<DefaultNHttpClientConnection>
   ```
   
   to use generics in order to type the handler like this:
   
   ```java
   public class DefaultHttpClientIODispatch<H extends NHttpClientEventHandler>
                       extends AbstractIODispatch<DefaultNHttpClientConnection>
   ```
   
   This allows call sites to call getHandler() and get the exact type that was 
passed in on construction instead of getting back the interface and going a 
type-cast (if you need access to the actual class.)
   
   
   ---
   
   **Issue Links:**
   - [HTTPCORE-507](https://issues.apache.org/jira/browse/HTTPCORE-507) Add 
generics to DefaultHttpServerIODispatch to specify the NHttpServerEventHandler 
implementation type.
    (_**"is cloned by"**_)
   


-- 
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