From: David ‘Bombe’ Roden Date: Sat, 23 May 2009 14:14:04 +0000 (+0200) Subject: Add request wrapper. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=06afd40ac14c5d00967a0fe1a8c80cf03b98c07a;hp=ec486cbd31c74a793931db92aca02b964aa83b93;p=jSite2.git Add request wrapper. --- 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; + } + +}