01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: *
25: * @author Peter Lin<br>
26: * @version $Revision: 493789 $ last updated $Date: 2007-01-07 18:10:21 +0000 (Sun, 07 Jan 2007) $ Created
27: * on: Jun 23, 2003<br>
28: */
29:
30: public class NVPair {
31:
32: protected String NAME = "";
33:
34: protected String VALUE = "";
35:
36: public NVPair() {
37: }
38:
39: /**
40: * The constructor takes a name and value which represent HTTP request
41: * parameters.
42: *
43: * @param name
44: * @param value
45: */
46: public NVPair(String name, String value) {
47: this .NAME = name;
48: this .VALUE = value;
49: }
50:
51: /**
52: * Set the name
53: *
54: * @param name
55: */
56: public void setName(String name) {
57: this .NAME = name;
58: }
59:
60: /**
61: * Set the value
62: *
63: * @param value
64: */
65: public void setValue(String value) {
66: this .VALUE = value;
67: }
68:
69: /**
70: * Return the name
71: *
72: * @return name
73: */
74: public String getName() {
75: return this .NAME;
76: }
77:
78: /**
79: * Return the value
80: *
81: * @return value
82: */
83: public String getValue() {
84: return this.VALUE;
85: }
86: }
|