Package org.zaproxy.zap.extension.brk
Class BreakpointsParam
- java.lang.Object
-
- org.parosproxy.paros.common.AbstractParam
-
- org.zaproxy.zap.extension.brk.BreakpointsParam
-
- All Implemented Interfaces:
java.lang.Cloneable
public class BreakpointsParam extends AbstractParam
Manages the breakpoints configurations saved in the configuration file.It allows to change, programmatically, the following breakpoints options:
- Confirm drop message - asks for confirmation when a trapped message is dropped.
- See Also:
BreakPanelToolbarFactory.getBtnDrop()
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUTTON_MODE_DUAL
static int
BUTTON_MODE_SIMPLE
-
Constructor Summary
Constructors Constructor Description BreakpointsParam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getAlwaysOnTop()
int
getButtonMode()
java.lang.String
getCssAndFontsUrlRegex()
java.lang.String
getJavascriptUrlRegex()
java.lang.String
getMultimediaUrlRegex()
boolean
isConfirmDropMessage()
Tells whether the user should confirm the drop of the trapped message.boolean
isInScopeOnly()
boolean
isShowIgnoreFilesButtons()
protected void
parse()
Parses the breakpoints options.void
setAlwaysOnTop(java.lang.Boolean alwaysOnTop)
void
setButtonMode(int buttonMode)
void
setConfirmDropMessage(boolean confirmDrop)
Sets whether the user should confirm the drop of the trapped message.void
setCssAndFontsUrlRegex(java.lang.String cssAndFontsUrlRegex)
void
setInScopeOnly(boolean inScopeOnly)
void
setJavascriptUrlRegex(java.lang.String javascriptUrlRegex)
void
setMultimediaUrlRegex(java.lang.String multimediaUrlRegex)
void
setShowIgnoreFilesButtons(boolean showIgnoreFilesButtons)
-
Methods inherited from class org.parosproxy.paros.common.AbstractParam
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
-
-
-
-
Field Detail
-
BUTTON_MODE_SIMPLE
public static final int BUTTON_MODE_SIMPLE
- See Also:
- Constant Field Values
-
BUTTON_MODE_DUAL
public static final int BUTTON_MODE_DUAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
protected void parse()
Parses the breakpoints options.The following options are parsed:
- Confirm drop message.
- Specified by:
parse
in classAbstractParam
- See Also:
AbstractParam.getConfig()
-
isConfirmDropMessage
public boolean isConfirmDropMessage()
Tells whether the user should confirm the drop of the trapped message.- Returns:
true
if the user should confirm the drop,false
otherwise- See Also:
setConfirmDropMessage(boolean)
-
setConfirmDropMessage
public void setConfirmDropMessage(boolean confirmDrop)
Sets whether the user should confirm the drop of the trapped message.- Parameters:
confirmDrop
-true
if the user should confirm the drop,false
otherwise- See Also:
isConfirmDropMessage()
,BreakPanelToolbarFactory.getBtnDrop()
-
getButtonMode
public int getButtonMode()
-
setButtonMode
public void setButtonMode(int buttonMode)
-
getAlwaysOnTop
public java.lang.Boolean getAlwaysOnTop()
-
setAlwaysOnTop
public void setAlwaysOnTop(java.lang.Boolean alwaysOnTop)
-
isInScopeOnly
public boolean isInScopeOnly()
-
setInScopeOnly
public void setInScopeOnly(boolean inScopeOnly)
-
isShowIgnoreFilesButtons
public boolean isShowIgnoreFilesButtons()
-
setShowIgnoreFilesButtons
public void setShowIgnoreFilesButtons(boolean showIgnoreFilesButtons)
-
getJavascriptUrlRegex
public java.lang.String getJavascriptUrlRegex()
-
setJavascriptUrlRegex
public void setJavascriptUrlRegex(java.lang.String javascriptUrlRegex)
-
getCssAndFontsUrlRegex
public java.lang.String getCssAndFontsUrlRegex()
-
setCssAndFontsUrlRegex
public void setCssAndFontsUrlRegex(java.lang.String cssAndFontsUrlRegex)
-
getMultimediaUrlRegex
public java.lang.String getMultimediaUrlRegex()
-
setMultimediaUrlRegex
public void setMultimediaUrlRegex(java.lang.String multimediaUrlRegex)
-
-