From 06afd40ac14c5d00967a0fe1a8c80cf03b98c07a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 23 May 2009 16:14:04 +0200 Subject: [PATCH] Add request wrapper. --- src/net/pterodactylus/jsite/core/Request.java | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/net/pterodactylus/jsite/core/Request.java diff --git a/src/net/pterodactylus/jsite/core/Request.java b/src/net/pterodactylus/jsite/core/Request.java new file mode 100644 index 0000000..6aa9018 --- /dev/null +++ b/src/net/pterodactylus/jsite/core/Request.java @@ -0,0 +1,51 @@ +/* + * jSite-next - Request.java - + * Copyright © 2009 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 2 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.core; + +/** + * Wraps a request that is executed by the Freenet node. + * + * @author David ‘Bombe’ Roden + */ +public class Request { + + /** The ID of the request. */ + private final String id; + + /** + * Creates a new request. + * + * @param id + * The ID of the request + */ + public Request(String id) { + this.id = id; + } + + /** + * Returns the ID of the request. + * + * @return The request’s ID + */ + public String getId() { + return id; + } + +} -- 2.7.4