Class ParseCurlCommandAction
-
- All Implemented Interfaces:
-
java.awt.event.ActionListener,java.util.EventListener,org.apache.jmeter.gui.action.Command,org.apache.jmeter.gui.plugin.MenuCreator
@AutoService(value = {Command.class, MenuCreator.class}) public class ParseCurlCommandAction extends AbstractAction implements MenuCreator, ActionListenerOpens a popup where user can enter a cURL command line and create a test plan from it
- Since:
5.1
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringIMPORT_CURL
-
Constructor Summary
Constructors Constructor Description ParseCurlCommandAction()
-
Method Summary
Modifier and Type Method Description voiddoAction(ActionEvent e)Array<JMenuItem>getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)voidactionPerformed(ActionEvent e)List<BasicCurlParser.Request>parseCommands(boolean isReadFromFile, List<String> commandsList)Set<String>getActionNames()Array<JMenu>getTopLevelMenus()booleanlocaleChanged(MenuElement menu)voidlocaleChanged()List<String>readFromFile(String pathname)List<String>readFromTextPanel(String commands)StringcreateCommentText(BasicCurlParser.Request request)-
-
Method Detail
-
doAction
void doAction(ActionEvent e)
-
getMenuItemsAtLocation
Array<JMenuItem> getMenuItemsAtLocation(MenuCreator.MENU_LOCATION location)
-
actionPerformed
void actionPerformed(ActionEvent e)
-
parseCommands
List<BasicCurlParser.Request> parseCommands(boolean isReadFromFile, List<String> commandsList)
-
getActionNames
Set<String> getActionNames()
-
getTopLevelMenus
Array<JMenu> getTopLevelMenus()
-
localeChanged
boolean localeChanged(MenuElement menu)
-
localeChanged
void localeChanged()
-
readFromFile
List<String> readFromFile(String pathname)
-
readFromTextPanel
List<String> readFromTextPanel(String commands)
-
createCommentText
String createCommentText(BasicCurlParser.Request request)
-
-
-
-