MULE-8018: Merge http connector code cleanup

Or, if you really must, leave the signature but handle the case whrre the implementation isn't a DefaultHttpListenerConfig without casting.