KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jmeter > protocol > http > util > accesslog > NVPair


1 // $Header: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/NVPair.java,v 1.6 2004/02/18 23:55:27 sebb Exp $
2
/*
3  * Copyright 2003-2004 The Apache Software Foundation.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17 */

18
19 package org.apache.jmeter.protocol.http.util.accesslog;
20
21 /**
22  * Description:<br>
23  * <br>
24  * @author Peter Lin<br>
25  * @version $Revision: 1.6 $ last updated $Date: 2004/02/18 23:55:27 $
26  * Created on: Jun 23, 2003<br>
27  */

28
29 public class NVPair {
30
31     protected String JavaDoc NAME = "";
32     protected String JavaDoc VALUE = "";
33     
34     public NVPair() {
35     }
36     
37     /**
38      * The constructor takes a name and value
39      * which represent HTTP request parameters.
40      * @param name
41      * @param value
42      */

43     public NVPair(String JavaDoc name, String JavaDoc value) {
44         this.NAME = name;
45         this.VALUE = value;
46     }
47
48     /**
49      * Set the name
50      * @param name
51      */

52     public void setName(String JavaDoc name) {
53         this.NAME = name;
54     }
55
56     /**
57      * Set the value
58      * @param value
59      */

60     public void setValue(String JavaDoc value) {
61         this.VALUE = value;
62     }
63
64     /**
65      * Return the name
66      * @return name
67      */

68     public String JavaDoc getName() {
69         return this.NAME;
70     }
71
72     /**
73      * Return the value
74      * @return value
75      */

76     public String JavaDoc getValue() {
77         return this.VALUE;
78     }
79 }
80
Popular Tags