KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > recorder > GET


1 /* $Id: GET.java,v 1.3 2004/12/01 07:54:26 hengels Exp $ */
2 /*
3  * $Id: GET.java,v 1.3 2004/12/01 07:54:26 hengels Exp $
4  * Copyright 2000,2005 wingS development team.
5  *
6  * This file is part of wingS (http://www.j-wings.org).
7  *
8  * wingS is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; either version 2.1
11  * of the License, or (at your option) any later version.
12  *
13  * Please see COPYING for the complete licence.
14  */

15 package org.wings.recorder;
16
17 /**
18  * @author hengels
19  */

20 public class GET
21         extends Request {
22     public GET(String JavaDoc resource) {
23         super("GET", resource);
24     }
25
26     public GET addEvent(String JavaDoc name, String JavaDoc[] values) {
27         events.add(new Event(name, values));
28         return this;
29     }
30
31     public GET addHeader(String JavaDoc name, String JavaDoc header) {
32         headers.add(new Header(name, header));
33         return this;
34     }
35 }
36
Popular Tags