Class OptionsParamView
- java.lang.Object
-
- org.parosproxy.paros.common.AbstractParam
-
- org.parosproxy.paros.extension.option.OptionsParamView
-
- All Implemented Interfaces:
java.lang.Cloneable
public class OptionsParamView extends AbstractParam
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADVANCEDUI_OPTION
static java.lang.String
ALLOW_APP_INTEGRATION_IN_CONTAINERS
static java.lang.String
ASKONEXIT_OPTION
static java.lang.String
BASE_VIEW_KEY
static java.lang.String
BRK_PANEL_VIEW_OPTION
static java.lang.String
DEFAULT_LOCALE
static javax.swing.UIManager.LookAndFeelInfo
DEFAULT_LOOK_AND_FEEL
static java.lang.String
DEFAULT_LOOK_AND_FEEL_CLASS
static java.lang.String
DEFAULT_LOOK_AND_FEEL_NAME
The default look and feel: Flat Light.static java.lang.String
DISPLAY_OPTION
static java.lang.String
FONT_NAME
static java.lang.String
FONT_SIZE
static java.lang.String
LARGE_REQUEST_SIZE
Deprecated.(2.12.0) No longer in use.static java.lang.String
LARGE_RESPONSE_SIZE
Deprecated.(2.12.0) No longer in use.static java.lang.String
LOCALE
static java.lang.String
LOOK_AND_FEEL
static java.lang.String
LOOK_AND_FEEL_CLASS
static java.lang.String
MODE_OPTION
static java.lang.String
OUTPUT_TAB_TIMESTAMP_FORMAT
static java.lang.String
OUTPUT_TAB_TIMESTAMPING_OPTION
static java.lang.String
SCALE_IMAGES
static java.lang.String
SHOW_DEV_WARNING
static java.lang.String
SHOW_MAIN_TOOLBAR_OPTION
static java.lang.String
SPLASHSCREEN_OPTION
static java.lang.String
TAB_PIN_OPTION
static java.lang.String
WARN_ON_TAB_DOUBLE_CLICK_OPTION
static java.lang.String
WMUIHANDLING_OPTION
-
Constructor Summary
Constructors Constructor Description OptionsParamView()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addLatestSession(java.lang.String path)
int
getAdvancedViewOption()
int
getAskOnExitOption()
int
getBrkPanelViewOption()
java.lang.String
getConfigLocale()
int
getDisplayOption()
java.lang.String
getFontName()
Deprecated.(2.8.0) Replaced bygetFontName(org.zaproxy.zap.utils.FontUtils.FontType)
.java.lang.String
getFontName(FontUtils.FontType fontType)
int
getFontSize()
Deprecated.(2.8.0) Replaced bygetFontSize(org.zaproxy.zap.utils.FontUtils.FontType)
.int
getFontSize(FontUtils.FontType fontType)
int
getLargeRequestSize()
Deprecated.(2.12.0) No longer in use.int
getLargeResponseSize()
Deprecated.(2.12.0) No longer in use.java.lang.String
getLocale()
java.lang.String
getLookAndFeel()
Gets the the name of the selected look and feel.javax.swing.UIManager.LookAndFeelInfo
getLookAndFeelInfo()
Gets the info of the selected look and feel.java.lang.String
getMode()
java.lang.String
getOutputTabTimeStampsFormat()
int
getProcessImages()
java.util.List<java.lang.String>
getRecentSessions()
java.lang.String
getResponsePanelPosition()
Gets the name of the current response panel position.boolean
getShowTabNames()
boolean
getWarnOnTabDoubleClick()
int
getWmUiHandlingOption()
boolean
isAllowAppIntegrationInContainers()
boolean
isConfirmRemoveProxyExcludeRegex()
boolean
isConfirmRemoveScannerExcludeRegex()
boolean
isConfirmRemoveSpiderExcludeRegex()
boolean
isOutputTabTimeStampingEnabled()
boolean
isProcessImages()
boolean
isScaleImages()
boolean
isShowDevWarning()
boolean
isShowLocalConnectRequests()
Tells whether or not the HTTP CONNECT requests received by the local proxy should be (persisted and) shown in the UI.boolean
isShowMainToolbar()
Tells whether or not the main tool bar should be shown.boolean
isShowSplashScreen()
boolean
isUseSystemsLocaleForFormat()
Tells whether or not the system's locale should be used for formatting.protected void
parse()
Parses the configurations.void
setAdvancedViewOption(int isEnabled)
void
setAllowAppIntegrationInContainers(boolean allowAppIntegrationInContainers)
void
setAskOnExitOption(int isEnabled)
void
setBrkPanelViewOption(int brkPanelViewIdx)
void
setConfirmRemoveProxyExcludeRegex(boolean confirmRemove)
void
setConfirmRemoveScannerExcludeRegex(boolean confirmRemove)
void
setConfirmRemoveSpiderExcludeRegex(boolean confirmRemove)
void
setDisplayOption(int displayOption)
void
setFontName(java.lang.String fontName)
Deprecated.(2.8.0) Replaced bysetFontName(org.zaproxy.zap.utils.FontUtils.FontType, String)
.void
setFontName(FontUtils.FontType fontType, java.lang.String fontName)
void
setFontSize(int fontSize)
Deprecated.(2.8.0) Replaced bysetFontSize(org.zaproxy.zap.utils.FontUtils.FontType, int)
.void
setFontSize(FontUtils.FontType fontType, int fontSize)
void
setLargeRequestSize(int largeRequestSize)
Deprecated.(2.12.0) No longer in use.void
setLargeResponseSize(int largeResponseSize)
Deprecated.(2.12.0) No longer in use.void
setLocale(java.lang.String locale)
void
setLocale(java.util.Locale locale)
void
setLookAndFeel(java.lang.String lookAndFeel)
Deprecated.(2.10.0) UsesetLookAndFeelInfo(LookAndFeelInfo)
instead, which preserves the class of the look and feel.void
setLookAndFeelInfo(javax.swing.UIManager.LookAndFeelInfo lookAndFeelInfo)
Sets the info of the selected look and feel.void
setMode(java.lang.String mode)
void
setOutputTabTimeStampingEnabled(boolean enabled)
void
setOutputTabTimeStampsFormat(java.lang.String format)
void
setProcessImages(int processImages)
void
setResponsePanelPosition(java.lang.String position)
Sets the name of the current response panel position.void
setScaleImages(boolean scaleImages)
void
setShowDevWarning(boolean showDevWarning)
void
setShowLocalConnectRequests(boolean showConnectRequests)
Sets whether or not the HTTP CONNECT requests received by the local proxy should be (persisted and) shown in the UI.void
setShowMainToolbar(boolean show)
Sets whether or not the main tool bar should be shown.void
setShowSplashScreen(boolean showSplashScreen)
void
setShowTabNames(boolean showTabNames)
void
setUseSystemsLocaleForFormat(boolean useSystemsLocale)
Sets whether or not the system's locale should be used for formatting.void
setWarnOnTabDoubleClick(boolean warnOnTabDoubleClick)
void
setWmUiHandlingOption(int isEnabled)
-
Methods inherited from class org.parosproxy.paros.common.AbstractParam
clone, getBoolean, getConfig, getInt, getInteger, getString, load, load, load, logConversionException, reset
-
-
-
-
Field Detail
-
BASE_VIEW_KEY
public static final java.lang.String BASE_VIEW_KEY
- See Also:
- Constant Field Values
-
LOCALE
public static final java.lang.String LOCALE
- See Also:
- Constant Field Values
-
DISPLAY_OPTION
public static final java.lang.String DISPLAY_OPTION
- See Also:
- Constant Field Values
-
BRK_PANEL_VIEW_OPTION
public static final java.lang.String BRK_PANEL_VIEW_OPTION
- See Also:
- Constant Field Values
-
SHOW_MAIN_TOOLBAR_OPTION
public static final java.lang.String SHOW_MAIN_TOOLBAR_OPTION
- See Also:
- Constant Field Values
-
DEFAULT_LOCALE
public static final java.lang.String DEFAULT_LOCALE
- See Also:
- Constant Field Values
-
ADVANCEDUI_OPTION
public static final java.lang.String ADVANCEDUI_OPTION
- See Also:
- Constant Field Values
-
WMUIHANDLING_OPTION
public static final java.lang.String WMUIHANDLING_OPTION
- See Also:
- Constant Field Values
-
ASKONEXIT_OPTION
public static final java.lang.String ASKONEXIT_OPTION
- See Also:
- Constant Field Values
-
WARN_ON_TAB_DOUBLE_CLICK_OPTION
public static final java.lang.String WARN_ON_TAB_DOUBLE_CLICK_OPTION
- See Also:
- Constant Field Values
-
MODE_OPTION
public static final java.lang.String MODE_OPTION
- See Also:
- Constant Field Values
-
TAB_PIN_OPTION
public static final java.lang.String TAB_PIN_OPTION
- See Also:
- Constant Field Values
-
OUTPUT_TAB_TIMESTAMPING_OPTION
public static final java.lang.String OUTPUT_TAB_TIMESTAMPING_OPTION
- See Also:
- Constant Field Values
-
OUTPUT_TAB_TIMESTAMP_FORMAT
public static final java.lang.String OUTPUT_TAB_TIMESTAMP_FORMAT
- See Also:
- Constant Field Values
-
SPLASHSCREEN_OPTION
public static final java.lang.String SPLASHSCREEN_OPTION
- See Also:
- Constant Field Values
-
LARGE_REQUEST_SIZE
@Deprecated public static final java.lang.String LARGE_REQUEST_SIZE
Deprecated.(2.12.0) No longer in use.- See Also:
- Constant Field Values
-
LARGE_RESPONSE_SIZE
@Deprecated public static final java.lang.String LARGE_RESPONSE_SIZE
Deprecated.(2.12.0) No longer in use.- See Also:
- Constant Field Values
-
FONT_NAME
public static final java.lang.String FONT_NAME
- See Also:
- Constant Field Values
-
FONT_SIZE
public static final java.lang.String FONT_SIZE
- See Also:
- Constant Field Values
-
SCALE_IMAGES
public static final java.lang.String SCALE_IMAGES
- See Also:
- Constant Field Values
-
SHOW_DEV_WARNING
public static final java.lang.String SHOW_DEV_WARNING
- See Also:
- Constant Field Values
-
LOOK_AND_FEEL
public static final java.lang.String LOOK_AND_FEEL
- See Also:
- Constant Field Values
-
LOOK_AND_FEEL_CLASS
public static final java.lang.String LOOK_AND_FEEL_CLASS
- See Also:
- Constant Field Values
-
ALLOW_APP_INTEGRATION_IN_CONTAINERS
public static final java.lang.String ALLOW_APP_INTEGRATION_IN_CONTAINERS
- See Also:
- Constant Field Values
-
DEFAULT_LOOK_AND_FEEL_NAME
public static final java.lang.String DEFAULT_LOOK_AND_FEEL_NAME
The default look and feel: Flat Light.- Since:
- 2.10.0
- See Also:
- Constant Field Values
-
DEFAULT_LOOK_AND_FEEL_CLASS
public static final java.lang.String DEFAULT_LOOK_AND_FEEL_CLASS
- See Also:
- Constant Field Values
-
DEFAULT_LOOK_AND_FEEL
public static final javax.swing.UIManager.LookAndFeelInfo DEFAULT_LOOK_AND_FEEL
-
-
Method Detail
-
parse
protected void parse()
Description copied from class:AbstractParam
Parses the configurations.Called each time the configurations are loaded.
- Specified by:
parse
in classAbstractParam
- See Also:
AbstractParam.getConfig()
-
getProcessImages
public int getProcessImages()
- Returns:
- Returns the skipImage.
-
setProcessImages
public void setProcessImages(int processImages)
- Parameters:
processImages
- 0 = not to process. Other = process images
-
isProcessImages
public boolean isProcessImages()
-
isShowMainToolbar
public boolean isShowMainToolbar()
Tells whether or not the main tool bar should be shown.- Returns:
true
if the main tool bar should be shown,false
otherwise.- Since:
- 2.5.0
-
setShowMainToolbar
public void setShowMainToolbar(boolean show)
Sets whether or not the main tool bar should be shown.- Parameters:
show
-true
if the main tool bar should be shown,false
otherwise.- Since:
- 2.5.0
-
getLocale
public java.lang.String getLocale()
- Returns:
- the locale, which should be used. It will return a default value, if nothing was configured yet. Never null
- See Also:
getConfigLocale()
-
setLocale
public void setLocale(java.lang.String locale)
-
setLocale
public void setLocale(java.util.Locale locale)
-
getConfigLocale
public java.lang.String getConfigLocale()
- Returns:
- The really configured locale, can be null
- See Also:
getLocale()
-
getShowTabNames
public boolean getShowTabNames()
-
setShowTabNames
public void setShowTabNames(boolean showTabNames)
-
getBrkPanelViewOption
public int getBrkPanelViewOption()
-
setBrkPanelViewOption
public void setBrkPanelViewOption(int brkPanelViewIdx)
-
getDisplayOption
public int getDisplayOption()
-
setDisplayOption
public void setDisplayOption(int displayOption)
-
getResponsePanelPosition
public java.lang.String getResponsePanelPosition()
Gets the name of the current response panel position.- Returns:
- the name of the current position
- Since:
- 2.5.0
- See Also:
WorkbenchPanel.ResponsePanelPosition
-
setResponsePanelPosition
public void setResponsePanelPosition(java.lang.String position)
Sets the name of the current response panel position.- Parameters:
position
- the name of the position- Since:
- 2.5.0
-
getAdvancedViewOption
public int getAdvancedViewOption()
-
setAdvancedViewOption
public void setAdvancedViewOption(int isEnabled)
-
setAskOnExitOption
public void setAskOnExitOption(int isEnabled)
-
getAskOnExitOption
public int getAskOnExitOption()
-
setWmUiHandlingOption
public void setWmUiHandlingOption(int isEnabled)
-
getWmUiHandlingOption
public int getWmUiHandlingOption()
-
getWarnOnTabDoubleClick
public boolean getWarnOnTabDoubleClick()
-
setWarnOnTabDoubleClick
public void setWarnOnTabDoubleClick(boolean warnOnTabDoubleClick)
-
getMode
public java.lang.String getMode()
-
setMode
public void setMode(java.lang.String mode)
-
setOutputTabTimeStampingEnabled
public void setOutputTabTimeStampingEnabled(boolean enabled)
-
isOutputTabTimeStampingEnabled
public boolean isOutputTabTimeStampingEnabled()
-
setOutputTabTimeStampsFormat
public void setOutputTabTimeStampsFormat(java.lang.String format)
-
getOutputTabTimeStampsFormat
public java.lang.String getOutputTabTimeStampsFormat()
-
setShowLocalConnectRequests
public void setShowLocalConnectRequests(boolean showConnectRequests)
Sets whether or not the HTTP CONNECT requests received by the local proxy should be (persisted and) shown in the UI.- Parameters:
showConnectRequests
-true
if the HTTP CONNECT requests should be shown,false
otherwise- Since:
- 2.5.0
- See Also:
isShowLocalConnectRequests()
-
isShowLocalConnectRequests
public boolean isShowLocalConnectRequests()
Tells whether or not the HTTP CONNECT requests received by the local proxy should be (persisted and) shown in the UI.The default is to not show the HTTP CONNECT requests.
- Returns:
true
if the HTTP CONNECT requests should be shown,false
otherwise- Since:
- 2.5.0
- See Also:
setShowLocalConnectRequests(boolean)
-
isShowSplashScreen
public boolean isShowSplashScreen()
-
setShowSplashScreen
public void setShowSplashScreen(boolean showSplashScreen)
-
getLargeRequestSize
@Deprecated public int getLargeRequestSize()
Deprecated.(2.12.0) No longer in use.
-
setLargeRequestSize
@Deprecated public void setLargeRequestSize(int largeRequestSize)
Deprecated.(2.12.0) No longer in use.
-
getLargeResponseSize
@Deprecated public int getLargeResponseSize()
Deprecated.(2.12.0) No longer in use.
-
setLargeResponseSize
@Deprecated public void setLargeResponseSize(int largeResponseSize)
Deprecated.(2.12.0) No longer in use.
-
isAllowAppIntegrationInContainers
public boolean isAllowAppIntegrationInContainers()
- Since:
- 2.11.0
-
setAllowAppIntegrationInContainers
public void setAllowAppIntegrationInContainers(boolean allowAppIntegrationInContainers)
- Since:
- 2.11.0
-
getFontSize
@Deprecated public int getFontSize()
Deprecated.(2.8.0) Replaced bygetFontSize(org.zaproxy.zap.utils.FontUtils.FontType)
.
-
getFontSize
public int getFontSize(FontUtils.FontType fontType)
-
setFontSize
@Deprecated public void setFontSize(int fontSize)
Deprecated.(2.8.0) Replaced bysetFontSize(org.zaproxy.zap.utils.FontUtils.FontType, int)
.
-
setFontSize
public void setFontSize(FontUtils.FontType fontType, int fontSize)
-
getFontName
@Deprecated public java.lang.String getFontName()
Deprecated.(2.8.0) Replaced bygetFontName(org.zaproxy.zap.utils.FontUtils.FontType)
.
-
getFontName
public java.lang.String getFontName(FontUtils.FontType fontType)
-
setFontName
@Deprecated public void setFontName(java.lang.String fontName)
Deprecated.(2.8.0) Replaced bysetFontName(org.zaproxy.zap.utils.FontUtils.FontType, String)
.
-
setFontName
public void setFontName(FontUtils.FontType fontType, java.lang.String fontName)
-
getLookAndFeel
public java.lang.String getLookAndFeel()
Gets the the name of the selected look and feel.- Returns:
- the name, might be
null
or empty if none selected (i.e. using default). - Since:
- 2.8.0
- See Also:
getLookAndFeelInfo()
-
setLookAndFeel
@Deprecated public void setLookAndFeel(java.lang.String lookAndFeel)
Deprecated.(2.10.0) UsesetLookAndFeelInfo(LookAndFeelInfo)
instead, which preserves the class of the look and feel.Sets the name of the selected look and feel.- Parameters:
lookAndFeel
- the name.- Since:
- 2.8.0
-
getLookAndFeelInfo
public javax.swing.UIManager.LookAndFeelInfo getLookAndFeelInfo()
Gets the info of the selected look and feel.- Returns:
- the info of the look and feel.
- Since:
- 2.10.0
- See Also:
getLookAndFeel()
-
setLookAndFeelInfo
public void setLookAndFeelInfo(javax.swing.UIManager.LookAndFeelInfo lookAndFeelInfo)
Sets the info of the selected look and feel.- Parameters:
lookAndFeelInfo
- the info of the look and feel.- Throws:
java.lang.NullPointerException
- if the given parameter is null.- Since:
- 2.10.0
-
isScaleImages
public boolean isScaleImages()
-
setScaleImages
public void setScaleImages(boolean scaleImages)
-
isShowDevWarning
public boolean isShowDevWarning()
-
setShowDevWarning
public void setShowDevWarning(boolean showDevWarning)
-
isConfirmRemoveProxyExcludeRegex
public boolean isConfirmRemoveProxyExcludeRegex()
-
setConfirmRemoveProxyExcludeRegex
public void setConfirmRemoveProxyExcludeRegex(boolean confirmRemove)
-
isConfirmRemoveScannerExcludeRegex
public boolean isConfirmRemoveScannerExcludeRegex()
-
setConfirmRemoveScannerExcludeRegex
public void setConfirmRemoveScannerExcludeRegex(boolean confirmRemove)
-
isConfirmRemoveSpiderExcludeRegex
public boolean isConfirmRemoveSpiderExcludeRegex()
-
setConfirmRemoveSpiderExcludeRegex
public void setConfirmRemoveSpiderExcludeRegex(boolean confirmRemove)
-
setUseSystemsLocaleForFormat
public void setUseSystemsLocaleForFormat(boolean useSystemsLocale)
Sets whether or not the system's locale should be used for formatting.- Parameters:
useSystemsLocale
-true
if the system's locale should be used for formatting,false
otherwise.- Since:
- 2.7.0
- See Also:
isUseSystemsLocaleForFormat()
,Locale.Category.FORMAT
-
isUseSystemsLocaleForFormat
public boolean isUseSystemsLocaleForFormat()
Tells whether or not the system's locale should be used for formatting.- Returns:
true
if the system's locale should be used for formatting,false
otherwise.- Since:
- 2.7.0
- See Also:
setUseSystemsLocaleForFormat(boolean)
,Locale.Category.FORMAT
-
getRecentSessions
public java.util.List<java.lang.String> getRecentSessions()
-
addLatestSession
public void addLatestSession(java.lang.String path)
-
-