Class HTTPArgumentsPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ClearGui, JMeterGUIComponent, Printable

public class HTTPArgumentsPanel extends ArgumentsPanel
A GUI panel allowing the user to enter HTTP Parameters. These have names and values, as well as check-boxes to determine whether or not to include the "=" sign in the output and whether or not to encode the output.
See Also:
  • Constructor Details

    • HTTPArgumentsPanel

      public HTTPArgumentsPanel()
  • Method Details

    • initializeTableModel

      protected void initializeTableModel()
      Description copied from class: ArgumentsPanel
      Initialize the table model used for the arguments table.
      Overrides:
      initializeTableModel in class ArgumentsPanel
    • testFunctors

      public static boolean testFunctors()
    • sizeColumns

      protected void sizeColumns(JTable table)
      Description copied from class: ArgumentsPanel
      Resize the table columns to appropriate widths.
      Overrides:
      sizeColumns in class ArgumentsPanel
      Parameters:
      table - the table to resize columns for
    • makeNewArgument

      protected HTTPArgument makeNewArgument()
      Description copied from class: ArgumentsPanel
      Create a new Argument object.
      Overrides:
      makeNewArgument in class ArgumentsPanel
      Returns:
      a new Argument object
    • createTestElement

      public Arguments createTestElement()
      Description copied from interface: JMeterGUIComponent
      JMeter test components are separated into a model and a GUI representation. The model holds the data and the GUI displays it. The GUI class is responsible for knowing how to create and initialize with data the model class that it knows how to display, and this method is called when new test elements are created.

      Since 5.6.3, the default implementation is as follows, and subclasses should override JMeterGUIComponent.makeTestElement()

       public TestElement createTestElement() {
           TestElement element = makeTestElement();
           assignDefaultValues(element);
           return el;
       }
       

      Before 5.6.3 the canonical implementation was as follows, however, it is recommended to avoid overriding JMeterGUIComponent.createTestElement() and override JMeterGUIComponent.makeTestElement() instead.

       public TestElement createTestElement() {
           TestElementXYZ el = new TestElementXYZ();
           modifyTestElement(el);
           return el;
       }
       
      Specified by:
      createTestElement in interface JMeterGUIComponent
      Overrides:
      createTestElement in class ArgumentsPanel
      Returns:
      the Test Element object that the GUI component represents.
    • getParameters

      public Arguments getParameters()
      Convert the argument panel contents to an Arguments collection.
      Returns:
      a collection of HTTPArgument entries
    • configure

      public void configure(org.apache.jmeter.testelement.TestElement el)
      Description copied from class: ArgumentsPanel
      A newly created component can be initialized with the contents of a Test Element object by calling this method. The component is responsible for querying the Test Element object for the relevant information to display in its GUI.
      Specified by:
      configure in interface JMeterGUIComponent
      Overrides:
      configure in class ArgumentsPanel
      Parameters:
      el - the TestElement to configure
    • isMetaDataNormal

      protected boolean isMetaDataNormal(HTTPArgument arg)
    • addFromClipboard

      protected void addFromClipboard()
      Overrides:
      addFromClipboard in class ArgumentsPanel
    • createArgumentFromClipboard

      protected Argument createArgumentFromClipboard(String[] clipboardCols)
      Overrides:
      createArgumentFromClipboard in class ArgumentsPanel