Add client token.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 15:35:20 +0000 (17:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 15:35:20 +0000 (17:35 +0200)
src/net/pterodactylus/jsite/core/Request.java

index 6aa9018..395bce1 100644 (file)
@@ -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;
+       }
+
 }