/** * Undertow handlers */ @SuppressWarnings("unchecked") public T handlerConfiguration(HandlerConfigurationConsumer consumer) { HandlerConfiguration<? extends HandlerConfiguration> child = new HandlerConfiguration<>(); if (consumer != null) { consumer.accept(child); } this.subresources.handlerConfiguration = child; return (T) this; }
/** * Undertow filters */ @SuppressWarnings("unchecked") public T filterConfiguration(FilterConfigurationConsumer consumer) { FilterConfiguration<? extends FilterConfiguration> child = new FilterConfiguration<>(); if (consumer != null) { consumer.accept(child); } this.subresources.filterConfiguration = child; return (T) this; }
/** * Create and configure a CustomFilter object to the list of subresources * * @param key * The key for the CustomFilter resource * @return this */ @SuppressWarnings("unchecked") public T customFilter(java.lang.String childKey) { customFilter(childKey, null); return (T) this; }
/** * Create and configure a HTTPListener object to the list of subresources * * @param key * The key for the HTTPListener resource * @return this */ @SuppressWarnings("unchecked") public T httpListener(java.lang.String childKey) { httpListener(childKey, null); return (T) this; }
/** * Undertow handlers */ @SuppressWarnings("unchecked") public T handlerConfiguration() { HandlerConfiguration<? extends HandlerConfiguration> child = new HandlerConfiguration<>(); this.subresources.handlerConfiguration = child; return (T) this; }
/** * Create and configure a Gzip object to the list of subresources * * @param key * The key for the Gzip resource * @return this */ @SuppressWarnings("unchecked") public T gzip(java.lang.String childKey) { gzip(childKey, null); return (T) this; }
/** * Create and configure a Rewrite object to the list of subresources * * @param key * The key for the Rewrite resource * @return this */ @SuppressWarnings("unchecked") public T rewrite(java.lang.String childKey) { rewrite(childKey, null); return (T) this; }
/** * Create and configure a MimeMapping object to the list of subresources * * @param key * The key for the MimeMapping resource * @return this */ @SuppressWarnings("unchecked") public T mimeMapping(java.lang.String childKey) { mimeMapping(childKey, null); return (T) this; }
/** * Undertow filters */ @SuppressWarnings("unchecked") public T filterConfiguration() { FilterConfiguration<? extends FilterConfiguration> child = new FilterConfiguration<>(); this.subresources.filterConfiguration = child; return (T) this; }
/** * Create and configure a WelcomeFile object to the list of subresources * * @param key * The key for the WelcomeFile resource * @return this */ @SuppressWarnings("unchecked") public T welcomeFile(java.lang.String childKey) { welcomeFile(childKey, null); return (T) this; }
/** * Create and configure a File object to the list of subresources * * @param key * The key for the File resource * @return this */ @SuppressWarnings("unchecked") public T file(java.lang.String childKey) { file(childKey, null); return (T) this; }
/** * Undertow filters */ @SuppressWarnings("unchecked") public T filterConfiguration(FilterConfigurationSupplier supplier) { this.subresources.filterConfiguration = supplier.get(); return (T) this; }
/** * Create and configure a ErrorPage object to the list of subresources * * @param key * The key for the ErrorPage resource * @return this */ @SuppressWarnings("unchecked") public T errorPage(java.lang.String childKey) { errorPage(childKey, null); return (T) this; }
/** * Undertow handlers */ @SuppressWarnings("unchecked") public T handlerConfiguration(HandlerConfigurationConsumer consumer) { HandlerConfiguration<? extends HandlerConfiguration> child = new HandlerConfiguration<>(); if (consumer != null) { consumer.accept(child); } this.subresources.handlerConfiguration = child; return (T) this; }
/** * Undertow filters */ @SuppressWarnings("unchecked") public T filterConfiguration(FilterConfigurationConsumer consumer) { FilterConfiguration<? extends FilterConfiguration> child = new FilterConfiguration<>(); if (consumer != null) { consumer.accept(child); } this.subresources.filterConfiguration = child; return (T) this; }
/** * Create and configure a Gzip object to the list of subresources * * @param key * The key for the Gzip resource * @return this */ @SuppressWarnings("unchecked") public T gzip(java.lang.String childKey) { gzip(childKey, null); return (T) this; }
/** * Create and configure a Rewrite object to the list of subresources * * @param key * The key for the Rewrite resource * @return this */ @SuppressWarnings("unchecked") public T rewrite(java.lang.String childKey) { rewrite(childKey, null); return (T) this; }