From: David ‘Bombe’ Roden Date: Sat, 23 May 2009 15:35:20 +0000 (+0200) Subject: Add client token. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8cc98c6a21ffdd97f9546a9f4fafdb1baceeebba;hp=c4ecc65b0832a2edce1a043db39a7c678e218af9;p=jSite2.git Add client token. --- diff --git a/src/net/pterodactylus/jsite/core/Request.java b/src/net/pterodactylus/jsite/core/Request.java index 6aa9018..395bce1 100644 --- a/src/net/pterodactylus/jsite/core/Request.java +++ b/src/net/pterodactylus/jsite/core/Request.java @@ -29,6 +29,9 @@ public class Request { /** The ID of the request. */ private final String id; + /** The client token of the request. */ + private String clientToken; + /** * Creates a new request. * @@ -48,4 +51,23 @@ public class Request { return id; } + /** + * Returns the client token of the request. + * + * @return The request’s client token + */ + public String getClientToken() { + return clientToken; + } + + /** + * Sets the client token of the request + * + * @param clientToken + * The request’s new client token + */ + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + } + }