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

public class Header extends AbstractTestElement implements Serializable
This class is an HTTP Header encapsulator.
See Also:
  • Constructor Details

    • Header

      public Header()
      Create the header. Uses an empty name and value as default
    • Header

      public Header(String name, String value)
      Create the header.
      Parameters:
      name - name of the header
      value - name of the header
  • Method Details

    • getSchema

      public org.apache.jmeter.protocol.http.control.HeaderSchema getSchema()
      Specified by:
      getSchema in interface org.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 interface org.apache.jmeter.testelement.TestElement
    • addConfigElement

      public void addConfigElement(ConfigElement config)
    • expectsModification

      public boolean expectsModification()
    • getName

      public String getName()
      Get the name for this object.
      Specified by:
      getName in interface org.apache.jmeter.testelement.TestElement
      Overrides:
      getName in class AbstractTestElement
      Returns:
      the name of this header
    • setName

      public void setName(String name)
      Set the name for this object.
      Specified by:
      setName in interface org.apache.jmeter.testelement.TestElement
      Overrides:
      setName in class AbstractTestElement
      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
    • toString

      public String toString()
      Creates a string representation of this header.
      Overrides:
      toString in class Object