org.apache.jmeter.protocol.http.gui

Class HTTPArgumentsPanel

Implemented Interfaces:
ActionListener, 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.

Field Summary

Fields inherited from class org.apache.jmeter.config.gui.ArgumentsPanel

COLUMN_RESOURCE_NAMES_0, COLUMN_RESOURCE_NAMES_1, tableModel

Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

namePanel

Constructor Summary

HTTPArgumentsPanel()
Create a new ArgumentsPanel as a standalone component.

Method Summary

void
configure(TestElement el)
A newly created component can be initialized with the contents of a Test Element object by calling this method.
TestElement
createTestElement()
JMeter test components are separated into a model and a GUI representation.
protected void
initializeTableModel()
Initialize the table model used for the arguments table.
protected boolean
isMetaDataNormal(HTTPArgument arg)
protected Object
makeNewArgument()
Create a new Argument object.
protected void
sizeColumns(JTable table)
Resize the table columns to appropriate widths.
static boolean
testFunctors()

Methods inherited from class org.apache.jmeter.config.gui.ArgumentsPanel

actionPerformed, addArgument, checkDeleteStatus, clear, clearGui, configure, createTestElement, deleteArgument, getAddButton, getDeleteButton, getLabelResource, getMenuCategories, getTable, getTableLabel, initializeTableModel, makeLabelPanel, makeNewArgument, modifyTestElement, sizeColumns, stopTableEditing, testFunctors

Methods inherited from class org.apache.jmeter.config.gui.AbstractConfigGui

createPopupMenu, getMenuCategories

Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent

clearGui, configure, configureTestElement, createTitleLabel, getComment, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setComment, setEnabled, setName, setNode

Constructor Details

HTTPArgumentsPanel

public HTTPArgumentsPanel()
Create a new ArgumentsPanel as a standalone component.

Method Details

configure

public void configure(TestElement el)
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 interface ArgumentsPanel
Parameters:
el - the TestElement to configure

createTestElement

public TestElement createTestElement()
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.
Specified by:
createTestElement in interface JMeterGUIComponent
Overrides:
createTestElement in interface ArgumentsPanel
Returns:
the Test Element object that the GUI component represents.

initializeTableModel

protected void initializeTableModel()
Initialize the table model used for the arguments table.
Overrides:
initializeTableModel in interface ArgumentsPanel

isMetaDataNormal

protected boolean isMetaDataNormal(HTTPArgument arg)

makeNewArgument

protected Object makeNewArgument()
Create a new Argument object.
Overrides:
makeNewArgument in interface ArgumentsPanel
Returns:
a new Argument object

sizeColumns

protected void sizeColumns(JTable table)
Resize the table columns to appropriate widths.
Overrides:
sizeColumns in interface ArgumentsPanel
Parameters:

testFunctors

public static boolean testFunctors()
Overrides:
testFunctors in interface ArgumentsPanel

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.