Class Header
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.protocol.http.control.Header
- All Implemented Interfaces:
Serializable
,Cloneable
,Searchable
,org.apache.jmeter.testelement.TestElement
This class is an HTTP Header encapsulator.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfigElement
(ConfigElement config) boolean
getName()
Get the name for this object.org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends Header,
? extends org.apache.jmeter.protocol.http.control.HeaderSchema> getProps()
org.apache.jmeter.protocol.http.control.HeaderSchema
getValue()
Get the value for this object.void
Set the name for this object.void
Set the value for this object.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, getPropertyOrNull, 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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Constructor Details
-
Header
public Header()Create the header. Uses an empty name and value as default -
Header
Create the header.- Parameters:
name
- name of the headervalue
- name of the header
-
-
Method Details
-
getSchema
public org.apache.jmeter.protocol.http.control.HeaderSchema getSchema()- Specified by:
getSchema
in interfaceorg.apache.jmeter.testelement.TestElement
-
getProps
public org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends Header,? extends org.apache.jmeter.protocol.http.control.HeaderSchema> getProps()- Specified by:
getProps
in interfaceorg.apache.jmeter.testelement.TestElement
-
addConfigElement
-
expectsModification
public boolean expectsModification() -
getName
Get the name for this object.- Specified by:
getName
in interfaceorg.apache.jmeter.testelement.TestElement
- Overrides:
getName
in classAbstractTestElement
- Returns:
- the name of this header
-
setName
Set the name for this object.- Specified by:
setName
in interfaceorg.apache.jmeter.testelement.TestElement
- Overrides:
setName
in classAbstractTestElement
- Parameters:
name
- the name of this header
-
getValue
Get the value for this object.- Returns:
- the value of this header
-
setValue
Set the value for this object.- Parameters:
value
- the value of this header
-
toString
Creates a string representation of this header.
-