public StaticResourcesHandler(Customization customization) { super(new RouteOptions()); this.customization = customization; }
private RouteOptions opts() { return new RouteOptions(); }
@Override public synchronized void on(String verb, String path, ReqHandler handler) { U.notNull(http, "http"); HttpHandler hnd = new ParamsAwareReqHandler(http, null, new RouteOptions(), handler); addOrRemove(true, verb, path, hnd); }
@Override public synchronized void on(String verb, String path, ReqRespHandler handler) { U.notNull(http, "http"); HttpHandler hnd = new ParamsAwareReqRespHandler(http, null, new RouteOptions(), handler); addOrRemove(true, verb, path, hnd); }
public RouteOptions copy() { RouteOptions copy = new RouteOptions(); copy.contentType = this.contentType; copy.view = this.view; copy.mvc = this.mvc; copy.transaction = this.transaction; Coll.assign(copy.roles, this.roles); copy.wrappers = U.array(this.wrappers); copy.zone = this.zone; copy.managed = this.managed; copy.cacheTTL = this.cacheTTL; copy.cacheCapacity = this.cacheCapacity; copy.internal = this.internal; copy.meta = this.meta.copy(); return copy; }
@Override public void reload() { reloaded = true; bootstrappedBeans.reset(); ioCContext.reset(); http().resetConfig(); defaults = new RouteOptions(); defaults.zone(zone); attributes().clear(); ViewResolver viewResolver = custom().viewResolver(); if (viewResolver instanceof AbstractViewResolver) { ((AbstractViewResolver) viewResolver).reset(); } }
@Override public void reset() { http().resetConfig(); listening = false; reloaded = false; port = null; address = null; processor = null; activated = false; ioCContext.reset(); autoActivating = !Setups.isAppSetupAtomic(); gui.reset(); defaults = new RouteOptions(); defaults().zone(zone); bootstrappedBeans.reset(); Setups.initDefaults(); }
public StaticResourcesHandler(Customization customization) { super(new RouteOptions()); this.customization = customization; }
private RouteOptions opts() { return new RouteOptions(); }
@Override public synchronized void on(String verb, String path, ReqRespHandler handler) { U.notNull(http, "http"); HttpHandler hnd = new ParamsAwareReqRespHandler(http, null, new RouteOptions(), handler); addOrRemove(true, verb, path, hnd); }
@Override public synchronized void on(String verb, String path, ReqHandler handler) { U.notNull(http, "http"); HttpHandler hnd = new ParamsAwareReqHandler(http, null, new RouteOptions(), handler); addOrRemove(true, verb, path, hnd); }
public RouteOptions copy() { RouteOptions copy = new RouteOptions(); copy.contentType = this.contentType; copy.view = this.view; copy.mvc = this.mvc; copy.transaction = this.transaction; Coll.assign(copy.roles, this.roles); copy.wrappers = U.array(this.wrappers); copy.zone = this.zone; copy.managed = this.managed; copy.cacheTTL = this.cacheTTL; copy.cacheCapacity = this.cacheCapacity; return copy; }
public void reload() { reloaded = true; bootstrappedBeans.reset(); ioCContext.reset(); http().resetConfig(); defaults = new RouteOptions(); defaults.zone(zone); attributes().clear(); ViewResolver viewResolver = custom().viewResolver(); if (viewResolver instanceof AbstractViewResolver) { ((AbstractViewResolver) viewResolver).reset(); } }
public void reset() { http().resetConfig(); listening = false; reloaded = false; port = null; lazyHttp.reset(); address = null; processor = null; activated = false; ioCContext.reset(); server = null; autoActivating = !isAppSetupAtomic(); defaults = new RouteOptions(); defaults().zone(zone); if (isApp()) { AppInfo.isAppServerActive = false; AppInfo.appPort = 0; } if (isAdmin()) { AppInfo.isAdminServerActive = false; AppInfo.adminPort = 0; } bootstrappedBeans.reset(); initDefaults(); }