Return response object after setting a header.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 10 Apr 2011 18:14:34 +0000 (20:14 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 04:40:50 +0000 (06:40 +0200)
src/main/java/net/pterodactylus/sone/web/page/Page.java

index dd54f41..d26da79 100644 (file)
@@ -316,9 +316,11 @@ public interface Page {
                 *            The name of the header
                 * @param value
                 *            The value of the header
+                * @return This response
                 */
-               public void setHeader(String name, String value) {
+               public Response setHeader(String name, String value) {
                        headers.put(name, value);
+                       return this;
                }
 
                /**