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