HTTP Inbound Endpoint

HTTP Inbound Endpoint Operation

  When  Inbound Endpoint is deployed through inbound core it takes the underlying Implementation of the Listener or Poller by referring the operating protocol from Factory. 

HTTP Inbound Endpoint starts Listening Endpoint in the given port. 

Each InboundEndpoint has separate handler which handles requests related to that port.

Handler passes requests to worker which injects the given message in synchronous manner  to the synapse environment by passing axis2 layer in inbound side. 

Response is taken before sending to the Axis2Engine and directly send it to the Source using shared PassThroughHTTPSender

Why not using a switch-case block (with the enum Protocol as the input) instead of the series of if-else blocks used above? Would have made the above few lines of code much readable IMO.