/** * Create and configure a ResponseHeader object to the list of subresources * * @param key * The key for the ResponseHeader resource * @return this */ @SuppressWarnings("unchecked") public T responseHeader(java.lang.String childKey) { responseHeader(childKey, null); return (T) this; }
/** * Create and configure a ResponseHeader object to the list of subresources * * @param key * The key for the ResponseHeader resource * @return this */ @SuppressWarnings("unchecked") public T responseHeader(java.lang.String childKey) { responseHeader(childKey, null); return (T) this; }
/** * Install a supplied ResponseHeader object to the list of subresources */ @SuppressWarnings("unchecked") public T responseHeader(ResponseHeaderSupplier supplier) { responseHeader(supplier.get()); return (T) this; }
/** * Install a supplied ResponseHeader object to the list of subresources */ @SuppressWarnings("unchecked") public T responseHeader(ResponseHeaderSupplier supplier) { responseHeader(supplier.get()); return (T) this; }
/** * Create and configure a ResponseHeader object to the list of subresources * * @param key * The key for the ResponseHeader resource * @param config * The ResponseHeaderConsumer to use * @return this */ @SuppressWarnings("unchecked") public T responseHeader(java.lang.String childKey, ResponseHeaderConsumer consumer) { ResponseHeader<? extends ResponseHeader> child = new ResponseHeader<>( childKey); if (consumer != null) { consumer.accept(child); } responseHeader(child); return (T) this; }
/** * Create and configure a ResponseHeader object to the list of subresources * * @param key * The key for the ResponseHeader resource * @param config * The ResponseHeaderConsumer to use * @return this */ @SuppressWarnings("unchecked") public T responseHeader(java.lang.String childKey, ResponseHeaderConsumer consumer) { ResponseHeader<? extends ResponseHeader> child = new ResponseHeader<>( childKey); if (consumer != null) { consumer.accept(child); } responseHeader(child); return (T) this; }