Class ParseCurlCommandAction
java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.protocol.http.gui.action.ParseCurlCommandAction
- All Implemented Interfaces:
- ActionListener,- EventListener,- Command,- MenuCreator
@AutoService({Command.class,MenuCreator.class})
public class ParseCurlCommandAction
extends AbstractAction
implements MenuCreator, ActionListener
Opens a popup where user can enter a cURL command line and create a test plan
 from it
- Since:
- 5.1
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.gui.plugin.MenuCreatorMenuCreator.MENU_LOCATION
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateCommentText(BasicCurlParser.Request request) voidMenuItems to be added in location menuJMenu[]voidUpdate Top Level menu on Locale ChangebooleanlocaleChanged(MenuElement menu) parseCommands(boolean isReadFromFile, List<String> commandsList) readFromFile(String pathname) readFromTextPanel(String commands) Methods inherited from class org.apache.jmeter.gui.action.AbstractActiongetParentFrame, popupCheckExistingFileListener, popupShouldSave
- 
Field Details- 
IMPORT_CURL- See Also:
 
 
- 
- 
Constructor Details- 
ParseCurlCommandActionpublic ParseCurlCommandAction()
 
- 
- 
Method Details- 
doAction- Specified by:
- doActionin interface- Command
- Overrides:
- doActionin class- AbstractAction
- See Also:
 
- 
getMenuItemsAtLocationDescription copied from interface:MenuCreatorMenuItems to be added in location menu- Specified by:
- getMenuItemsAtLocationin interface- MenuCreator
- Parameters:
- location- in top menu
- Returns:
- array of JMenuItem
 
- 
actionPerformed- Specified by:
- actionPerformedin interface- ActionListener
 
- 
parseCommandspublic List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList) 
- 
getActionNames- Specified by:
- getActionNamesin interface- Command
 
- 
getTopLevelMenus- Specified by:
- getTopLevelMenusin interface- MenuCreator
- Returns:
- array of JMenu to be put as top level menu between Options and Help
 
- 
localeChanged- Specified by:
- localeChangedin interface- MenuCreator
- Parameters:
- menu- MenuElement
- Returns:
- true if menu was concerned by Locale change
 
- 
localeChangedpublic void localeChanged()Description copied from interface:MenuCreatorUpdate Top Level menu on Locale Change- Specified by:
- localeChangedin interface- MenuCreator
 
- 
readFromFile- Throws:
- IOException
 
- 
readFromTextPanel
- 
createCommentText
 
-