public Route(Vertx vertx,ResourceStorage storage,LoggingResourceManager loggingResourceManager,MonitoringHandler monitoringHandler,String userProfilePath,HttpHook httpHook,String urlPattern){
  this.vertx=vertx;
  this.storage=storage;
  this.loggingResourceManager=loggingResourceManager;
  this.monitoringHandler=monitoringHandler;
  this.userProfilePath=userProfilePath;
  this.httpHook=httpHook;
  this.urlPattern=urlPattern;
  createRule();
  createHttpClient();
  createForwarder();
}

public Route ( Vertx vertx , ResourceStorage storage , LoggingResourceManager loggingResourceManager , MonitoringHandler monitoringHandler , String userProfilePath , HttpHook httpHook , String urlPattern ) { this . vertx = vertx ; this . storage = storage ; this . loggingResourceManager = loggingResourceManager ; this . monitoringHandler = monitoringHandler ; this . userProfilePath = userProfilePath ; this . httpHook = httpHook ; this . urlPattern = urlPattern ; createRule ( ) ; createHttpClient ( ) ; createForwarder ( ) ; }
creates a new instance of a route .
