MULE-8018: Merge http connector code cleanup

This is using an String because it may be a MEL expression which is not the case for the listener.