1 18 19 package org.apache.jmeter.protocol.http.control; 20 21 import java.io.Serializable ; 22 23 import org.apache.jmeter.config.ConfigElement; 24 import org.apache.jmeter.testelement.AbstractTestElement; 25 26 32 public class Header extends AbstractTestElement implements Serializable 33 { 34 private static String VALUE = "Header.value"; 35 36 39 public Header() 40 { 41 this.setName(""); 42 this.setValue(""); 43 } 44 45 48 public Header(String name, String value) 49 { 50 this.setName(name); 51 this.setValue(value); 52 } 53 54 public void addConfigElement(ConfigElement config) 55 { 56 } 57 58 public boolean expectsModification() 59 { 60 return false; 61 } 62 63 public String getClassLabel() 64 { 65 return "Header"; 66 } 67 68 71 public synchronized String getValue() 72 { 73 return getPropertyAsString(VALUE); 74 } 75 76 79 public synchronized void setValue(String value) 80 { 81 this.setProperty(VALUE, value); 82 } 83 84 87 public String toString() 88 { 89 return getName() + "\t" + getValue(); 90 } 91 } 92 | Popular Tags |