public OnRoute managed(boolean managed) { options.managed(managed); return this; }
@Override public boolean needsParams() { return options.managed(); }
public void serve(String response) { if (options.managed()) { HttpHandlers.registerPredefined(setup, verb, path, options, response); } else { HttpHandlers.registerStatic(setup, verb, path, options, response.getBytes()); } }
public void serve(byte[] response) { if (options.managed()) { HttpHandlers.registerPredefined(setup, verb, path, options, response); } else { HttpHandlers.registerStatic(setup, verb, path, options, response); } }
public AbstractDecoratingHttpHandler(FastHttp http, RouteOptions options) { super(options); U.notNull(http, "http"); this.decorator = options.managed() ? new HttpManagedHandlerDecorator(this, http, options) : new HttpUnmanagedHandlerDecorator(this, http, options.contentType()); }
@Override public boolean needsParams() { return options.managed(); }
public OnRoute managed(boolean managed) { options.managed(managed); return this; }
public void serve(String response) { if (options.managed()) { HttpHandlers.registerPredefined(setup, verb, path, options, response); } else { HttpHandlers.registerStatic(setup, verb, path, options, response.getBytes()); } }
public void serve(byte[] response) { if (options.managed()) { HttpHandlers.registerPredefined(setup, verb, path, options, response); } else { HttpHandlers.registerStatic(setup, verb, path, options, response); } }
public AbstractDecoratingHttpHandler(FastHttp http, RouteOptions options) { super(options); U.notNull(http, "http"); this.decorator = options.managed() ? new HttpManagedHandlerDecorator(this, http, options) : new HttpUnmanagedHandlerDecorator(this, http, options.contentType()); }