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 Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.gui.plugin.MenuCreator
MenuCreator.MENU_LOCATION
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createCommentText
(BasicCurlParser.Request request) void
MenuItems to be added in location menuJMenu[]
void
Update Top Level menu on Locale Changeboolean
localeChanged
(MenuElement menu) parseCommands
(boolean isReadFromFile, List<String> commandsList) readFromFile
(String pathname) readFromTextPanel
(String commands) Methods inherited from class org.apache.jmeter.gui.action.AbstractAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
-
Field Details
-
IMPORT_CURL
- See Also:
-
-
Constructor Details
-
ParseCurlCommandAction
public ParseCurlCommandAction()
-
-
Method Details
-
doAction
- Specified by:
doAction
in interfaceCommand
- Overrides:
doAction
in classAbstractAction
- See Also:
-
getMenuItemsAtLocation
Description copied from interface:MenuCreator
MenuItems to be added in location menu- Specified by:
getMenuItemsAtLocation
in interfaceMenuCreator
- Parameters:
location
- in top menu- Returns:
- array of
JMenuItem
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
parseCommands
public List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList) -
getActionNames
- Specified by:
getActionNames
in interfaceCommand
-
getTopLevelMenus
- Specified by:
getTopLevelMenus
in interfaceMenuCreator
- Returns:
- array of JMenu to be put as top level menu between Options and Help
-
localeChanged
- Specified by:
localeChanged
in interfaceMenuCreator
- Parameters:
menu
- MenuElement- Returns:
- true if menu was concerned by Locale change
-
localeChanged
public void localeChanged()Description copied from interface:MenuCreator
Update Top Level menu on Locale Change- Specified by:
localeChanged
in interfaceMenuCreator
-
readFromFile
- Throws:
IOException
-
readFromTextPanel
-
createCommentText
-