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.portal.base.events;
020
021import java.net.URI;
022import java.time.Instant;
023
024import org.jdrupes.httpcodec.protocols.http.HttpRequest;
025import org.jgrapes.http.Session;
026import org.jgrapes.io.IOSubchannel;
027import org.jgrapes.portal.base.RenderSupport;
028
029/**
030 * An event that signals the request of a resource that is to be added
031 * to the `<HEAD>` section of the page.
032 *
033 * Requests for such resources are usually
034 * generated during portal boot. See the description of
035 * {@link AddPageResources} for details.
036 */
037public class PageResourceRequest extends ResourceRequest {
038
039    /**
040     * Creates a new request.
041     * 
042     * @param resourceUri the requested resource
043     * @param httpRequest the original HTTP request
044     * @param httpChannel the channel that the HTTP request was received on
045     * @param renderSupport the render support
046     */
047    public PageResourceRequest(URI resourceUri, Instant ifModifiedSince,
048            HttpRequest httpRequest, IOSubchannel httpChannel,
049            Session session, RenderSupport renderSupport) {
050        super(resourceUri, ifModifiedSince, httpRequest, httpChannel, session,
051            renderSupport);
052    }
053
054}