001/*
002 * JGrapes Event Driven Framework
003 * Copyright (C) 2017-2018 Michael N. Lipp
004 * 
005 * This program is free software; you can redistribute it and/or modify it 
006 * under the terms of the GNU Affero General Public License as published by 
007 * the Free Software Foundation; either version 3 of the License, or 
008 * (at your option) any later version.
009 * 
010 * This program is distributed in the hope that it will be useful, but 
011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
012 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License 
013 * for more details.
014 * 
015 * You should have received a copy of the GNU Affero General Public License along 
016 * with this program; if not, see <http://www.gnu.org/licenses/>.
017 */
018
019package org.jgrapes.webconsole.base.events;
020
021import java.net.URI;
022import java.time.Instant;
023import org.jdrupes.httpcodec.protocols.http.HttpRequest;
024import org.jgrapes.http.Session;
025import org.jgrapes.io.IOSubchannel;
026import org.jgrapes.webconsole.base.RenderSupport;
027
028/**
029 * An event that signals the request of a resource that is to be added
030 * to the `<head>` section of the page.
031 *
032 * Requests for such resources are usually
033 * generated during web console boot. See the description of
034 * {@link AddPageResources} for details.
035 */
036public class PageResourceRequest extends ResourceRequest {
037
038    /**
039     * Creates a new request.
040     * 
041     * @param resourceUri the requested resource
042     * @param httpRequest the original HTTP request
043     * @param httpChannel the channel that the HTTP request was received on
044     * @param renderSupport the render support
045     */
046    public PageResourceRequest(URI resourceUri, Instant ifModifiedSince,
047            HttpRequest httpRequest, IOSubchannel httpChannel,
048            Session session, RenderSupport renderSupport) {
049        super(resourceUri, ifModifiedSince, httpRequest, httpChannel, session,
050            renderSupport);
051    }
052
053}