Class Header
- java.lang.Object
-
- org.apache.jmeter.testelement.AbstractTestElement
-
- org.apache.jmeter.protocol.http.control.Header
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,TestElement
public class Header extends AbstractTestElement implements Serializable
This class is an HTTP Header encapsulator.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfigElement(ConfigElement config)
boolean
expectsModification()
String
getName()
Get the name for this object.String
getValue()
Get the value for this object.void
setName(String name)
Set the name for this object.void
setValue(String value)
Set the value for this object.String
toString()
Creates a string representation of this header.-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
-
-
-
-
Method Detail
-
addConfigElement
public void addConfigElement(ConfigElement config)
-
expectsModification
public boolean expectsModification()
-
getName
public String getName()
Get the name for this object.- Specified by:
getName
in interfaceTestElement
- Overrides:
getName
in classAbstractTestElement
- Returns:
- the name of this header
-
setName
public void setName(String name)
Set the name for this object.- Specified by:
setName
in interfaceTestElement
- Overrides:
setName
in classAbstractTestElement
- Parameters:
name
- the name of this header
-
getValue
public String getValue()
Get the value for this object.- Returns:
- the value of this header
-
setValue
public void setValue(String value)
Set the value for this object.- Parameters:
value
- the value of this header
-
-