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