X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FFreenetRequest.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FFreenetRequest.java;h=0000000000000000000000000000000000000000;hp=ecbc0bbcc0d22cf3fcaa765986ddbbac743f76db;hb=03cec6a6772c2d836d94864adddaf544cbe9d72f;hpb=6f1f26e3998cfef155b0cf59152827accea70d30
diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetRequest.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetRequest.java
deleted file mode 100644
index ecbc0bb..0000000
--- a/src/main/java/net/pterodactylus/sone/web/page/FreenetRequest.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Sone - FreenetRequest.java - Copyright © 2011â2016 David Roden
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-package net.pterodactylus.sone.web.page;
-
-import java.net.URI;
-
-import net.pterodactylus.util.web.Method;
-import net.pterodactylus.util.web.Request;
-import freenet.clients.http.ToadletContext;
-import freenet.support.api.HTTPRequest;
-
-/**
- * Encapsulates all Freenet-specific properties of a request.
- *
- * @author David âBombeâ Roden
- */
-public class FreenetRequest extends Request {
-
- /** The underlying HTTP request from Freenet. */
- private final HTTPRequest httpRequest;
-
- /** The toadlet context. */
- private final ToadletContext toadletContext;
-
- /**
- * Creates a new freenet request.
- *
- * @param uri
- * The URI that is being accessed
- * @param method
- * The method used to access this page
- * @param httpRequest
- * The underlying HTTP request from Freenet
- * @param toadletContext
- * The toadlet context
- */
- public FreenetRequest(URI uri, Method method, HTTPRequest httpRequest, ToadletContext toadletContext) {
- super(uri, method);
- this.httpRequest = httpRequest;
- this.toadletContext = toadletContext;
- }
-
- //
- // ACCESSORS
- //
-
- /**
- * Returns the underlying HTTP request from Freenet.
- *
- * @return The underlying HTTP request from Freenet
- */
- public HTTPRequest getHttpRequest() {
- return httpRequest;
- }
-
- /**
- * Returns the toadlet context.
- *
- * @return The toadlet context
- */
- public ToadletContext getToadletContext() {
- return toadletContext;
- }
-
-}