[Java] Separate HTTP handler and WS handler