/** * 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 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; }
/** * Install a supplied Rewrite object to the list of subresources */ @SuppressWarnings("unchecked") public T rewrite(RewriteSupplier supplier) { rewrite(supplier.get()); return (T) this; }
/** * Install a supplied Rewrite object to the list of subresources */ @SuppressWarnings("unchecked") public T rewrite(RewriteSupplier supplier) { rewrite(supplier.get()); return (T) this; }
/** * Create and configure a Rewrite object to the list of subresources * * @param key * The key for the Rewrite resource * @param config * The RewriteConsumer to use * @return this */ @SuppressWarnings("unchecked") public T rewrite(java.lang.String childKey, RewriteConsumer consumer) { Rewrite<? extends Rewrite> child = new Rewrite<>(childKey); if (consumer != null) { consumer.accept(child); } rewrite(child); return (T) this; }
/** * Create and configure a Rewrite object to the list of subresources * * @param key * The key for the Rewrite resource * @param config * The RewriteConsumer to use * @return this */ @SuppressWarnings("unchecked") public T rewrite(java.lang.String childKey, RewriteConsumer consumer) { Rewrite<? extends Rewrite> child = new Rewrite<>(childKey); if (consumer != null) { consumer.accept(child); } rewrite(child); return (T) this; }