/** * Constructs a {@link StrictHostChecking} being disabled. * * @return a disabled {@link StrictHostChecking} */ public static StrictHostChecking disabled() { return new StrictHostChecking(false); }
@Override public <A extends Application, S extends ApplicationSchema<A>> A realize(String applicationName, S applicationSchema, ApplicationConsole console, Option... options) { // TODO: we need to use "default platform options" here to automatically turn off strict-host-checking Options managedOptions = new Options(options); managedOptions.addIfAbsent(StrictHostChecking.disabled()); return super.realize(applicationName, applicationSchema, console, managedOptions.asArray()); }
/** * Constructs a {@link StrictHostChecking}. * * @param enabled should strict-host-checking be enabled? * * @return a {@link StrictHostChecking} */ public static StrictHostChecking enabled(boolean enabled) { return new StrictHostChecking(enabled); } }
/** * Constructs a {@link StrictHostChecking} being enabled. * * @return an enabled {@link StrictHostChecking} */ public static StrictHostChecking enabled() { return new StrictHostChecking(true); }