class DefaultEdgeDispatcher extends AbstractEdgeDispatcher {

  protected void onRequest(RoutingContext context) {
    Map<String, String> pathParams = context.pathParams();
    String microserviceName = pathParams.get("param0");
    String path = Utils.findActualPath(context.request().path(), prefixSegmentCount);

    EdgeInvocation edgeInvocation =  createEdgeInvocation();
    if (withVersion) {
      String pathVersion = pathParams.get("param1");
      edgeInvocation.setVersionRule(versionMapper.getOrCreate(pathVersion).getVersionRule());
    }
    edgeInvocation.init(microserviceName, context, path, httpServerFilters);
    edgeInvocation.edgeInvoke();
  }

}