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