Class UrlConfigGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener
Direct Known Subclasses:
MultipartUrlConfigGui

public class UrlConfigGui extends JPanel implements ChangeListener
Basic URL / HTTP Request configuration:
  • host and port
  • connect and response timeouts
  • path, method, encoding, parameters
  • redirects and keepalive
See Also:
  • Constructor Details

    • UrlConfigGui

      public UrlConfigGui()
      Constructor which is setup to show HTTP implementation, raw body pane and sampler fields.
    • UrlConfigGui

      public UrlConfigGui(boolean showSamplerFields)
      Constructor which is setup to show HTTP implementation and raw body pane.
      Parameters:
      showSamplerFields - flag whether sampler fields should be shown.
    • UrlConfigGui

      public UrlConfigGui(boolean showSamplerFields, boolean showImplementation, boolean showRawBodyPane)
      Parameters:
      showSamplerFields - flag whether sampler fields should be shown
      showImplementation - Show HTTP Implementation
      showRawBodyPane - flag whether the raw body pane should be shown
  • Method Details

    • clear

      public void clear()
    • createTestElement

      public TestElement createTestElement()
    • modifyTestElement

      public void modifyTestElement(TestElement element)
      Save the GUI values in the sampler.
      Parameters:
      element - TestElement to modify
    • configure

      public void configure(TestElement el)
      Set the text, etc. in the UI.
      Parameters:
      el - contains the data to be displayed
    • getWebServerTimeoutPanel

      protected final JPanel getWebServerTimeoutPanel()
      Create a panel containing the webserver (domain+port) and timeouts (connect+request).
      Returns:
      the panel
    • getProxyServerPanel

      protected final JPanel getProxyServerPanel()
      Create a panel containing the proxy server details
      Returns:
      the panel
    • getPathPanel

      protected Component getPathPanel()
      This method defines the Panel for the HTTP path, 'Follow Redirects' 'Use KeepAlive', and 'Use multipart for HTTP POST' elements.
      Returns:
      JPanel The Panel for the path, 'Follow Redirects' and 'Use KeepAlive' elements.
    • getProtocolAndMethodPanel

      protected JPanel getProtocolAndMethodPanel()
    • getParameterPanel

      protected JTabbedPane getParameterPanel()
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener