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

   **[Gary D. 
Gregory](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=garydgregory)**
 opened 
**[HTTPCORE-507](https://issues.apache.org/jira/browse/HTTPCORE-507?redirect=false)**
 and commented
   
   Add generics to `DefaultHttpServerIODispatch` to specify the 
`NHttpServerEventHandler` implementation type.
   
   Change:
   
   ```java
   public class DefaultHttpServerIODispatch
                       extends AbstractIODispatch<DefaultNHttpServerConnection>
   ```
   
   to use generics in order to type the handler like this:
   
   ```java
   public class DefaultHttpServerIODispatch<H extends NHttpServerEventHandler>
                       extends AbstractIODispatch<DefaultNHttpServerConnection>
   ```
   
   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-506](https://issues.apache.org/jira/browse/HTTPCORE-506) Add 
generics to DefaultHttpClientIODispatch to specify the NHttpClientEventHandler 
implementation type.
    (_**"is a clone of"**_)
   


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