Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Add generics to DefaultHttpClientIODispatch to specify the NHttpClientEventHandler implementation type.
Change:
public class DefaultHttpClientIODispatch extends AbstractIODispatch<DefaultNHttpClientConnection>
to use generics in order to type the handler like this:
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.)
Attachments
Issue Links
- is cloned by
-
HTTPCORE-507 Add generics to DefaultHttpServerIODispatch to specify the NHttpServerEventHandler implementation type.
- Closed