Class UrlConfigDefaults
java.lang.Object
org.apache.jmeter.protocol.http.config.gui.UrlConfigDefaults
- All Implemented Interfaces:
Serializable
Default option value settings for
UrlConfigGui.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.String[]Return available HTTP methods to be shown in theUrlConfigGui, returningHTTPSamplerBase.getValidMethodsAsArray()by default if not reset.booleanDeprecated.booleanbooleanDeprecated.booleanbooleanDeprecated.booleanbooleanDeprecated.booleanbooleanDeprecated.booleanvoidsetAutoRedirects(boolean autoRedirects) Deprecated.voidsetAutoRedirectsVisible(boolean autoRedirectsVisible) Set the visibility of the autoRedirectsVisible checkbox in theUrlConfigGui.voidsetDefaultMethod(String defaultMethod) Deprecated.voidsetFollowRedirects(boolean followRedirects) Deprecated.voidsetFollowRedirectsVisible(boolean followRedirectsVisible) Set the visibility of the followRedirect checkbox in theUrlConfigGui.voidsetUseBrowserCompatibleMultipartMode(boolean useBrowserCompatibleMultipartMode) Deprecated.voidsetUseBrowserCompatibleMultipartModeVisible(boolean useBrowserCompatibleMultipartModeVisible) Set the visibility of the useBrowserCompatibleMultipartModeVisible checkbox in theUrlConfigGui.voidsetUseKeepAlive(boolean useKeepAlive) Deprecated.voidsetUseKeepAliveVisible(boolean useKeepAliveVisible) Set the visibility of the useKeepAliveVisible checkbox in theUrlConfigGui.voidsetUseMultipart(boolean useMultipart) Deprecated.voidsetUseMultipartVisible(boolean useMultipartVisible) Set the visibility of the useMultipartVisible checkbox in theUrlConfigGui.voidsetValidMethods(String[] validMethods) Set available HTTP methods to be shown in theUrlConfigGui.
-
Constructor Details
-
UrlConfigDefaults
public UrlConfigDefaults()
-
-
Method Details
-
getValidMethods
Return available HTTP methods to be shown in theUrlConfigGui, returningHTTPSamplerBase.getValidMethodsAsArray()by default if not reset.- Returns:
- available HTTP methods to be shown in the
UrlConfigGui
-
setValidMethods
Set available HTTP methods to be shown in theUrlConfigGui.- Parameters:
validMethods- available HTTP methods- Throws:
IllegalArgumentException- if the input array is empty
-
getDefaultMethod
Deprecated.Return the default HTTP method to be selected in theUrlConfigGui.- Returns:
- the default HTTP method to be selected in the
UrlConfigGui
-
setDefaultMethod
Deprecated.Set the default HTTP method to be selected in theUrlConfigGui.- Parameters:
defaultMethod- the default HTTP method to be selected in theUrlConfigGui
-
isFollowRedirects
Deprecated.- Returns:
- the default value to be set for the followRedirect checkbox in the
UrlConfigGui.
-
setFollowRedirects
Deprecated.Set the default value to be set for the followRedirect checkbox in theUrlConfigGui.- Parameters:
followRedirects- flag whether redirects should be followed
-
isAutoRedirects
Deprecated.- Returns:
- the default value to be set for the autoRedirects checkbox in the
UrlConfigGui.
-
setAutoRedirects
Deprecated.Set the default value to be set for the autoRedirects checkbox in theUrlConfigGui.- Parameters:
autoRedirects- flag whether redirects should be followed automatically
-
isUseKeepAlive
Deprecated.- Returns:
- the default value to be set for the useKeepAlive checkbox in the
UrlConfigGui.
-
setUseKeepAlive
Deprecated.Set the default value to be set for the useKeepAlive checkbox in theUrlConfigGui.- Parameters:
useKeepAlive- flag whether to use keep-alive on HTTP requests
-
isUseMultipart
Deprecated.- Returns:
- the default value to be set for the useMultipart checkbox in the
UrlConfigGui.
-
setUseMultipart
Deprecated.Set the default value to be set for the useMultipart checkbox in theUrlConfigGui.- Parameters:
useMultipart- flag whether request data should use multi-part feature
-
isUseBrowserCompatibleMultipartMode
Deprecated.- Returns:
- the default value to be set for the useBrowserCompatibleMultipartMode checkbox in the
UrlConfigGui.
-
setUseBrowserCompatibleMultipartMode
@Deprecated public void setUseBrowserCompatibleMultipartMode(boolean useBrowserCompatibleMultipartMode) Deprecated.Set the default value to be set for the useBrowserCompatibleMultipartMode checkbox in theUrlConfigGui.- Parameters:
useBrowserCompatibleMultipartMode- flag whether to use browser compatible multi-part mode
-
isFollowRedirectsVisible
public boolean isFollowRedirectsVisible()- Returns:
trueif the followRedirect checkbox should be visible in theUrlConfigGui.
-
setFollowRedirectsVisible
public void setFollowRedirectsVisible(boolean followRedirectsVisible) Set the visibility of the followRedirect checkbox in theUrlConfigGui.- Parameters:
followRedirectsVisible- flag to toggle visibility in GUI
-
isAutoRedirectsVisible
public boolean isAutoRedirectsVisible()- Returns:
- true if the autoRedirectsVisible checkbox should be visible in the
UrlConfigGui.
-
setAutoRedirectsVisible
public void setAutoRedirectsVisible(boolean autoRedirectsVisible) Set the visibility of the autoRedirectsVisible checkbox in theUrlConfigGui.- Parameters:
autoRedirectsVisible- flag to toggle visibility in GUI
-
isUseKeepAliveVisible
public boolean isUseKeepAliveVisible()- Returns:
trueif the useKeepAliveVisible checkbox should be visible in theUrlConfigGui.
-
setUseKeepAliveVisible
public void setUseKeepAliveVisible(boolean useKeepAliveVisible) Set the visibility of the useKeepAliveVisible checkbox in theUrlConfigGui.- Parameters:
useKeepAliveVisible- flag to toggle visibility in GUI
-
isUseMultipartVisible
public boolean isUseMultipartVisible()- Returns:
trueif the useMultipartVisible checkbox should by default in theUrlConfigGui.
-
setUseMultipartVisible
public void setUseMultipartVisible(boolean useMultipartVisible) Set the visibility of the useMultipartVisible checkbox in theUrlConfigGui.- Parameters:
useMultipartVisible- flag to toggle visibility in GUI
-
isUseBrowserCompatibleMultipartModeVisible
public boolean isUseBrowserCompatibleMultipartModeVisible()- Returns:
trueif the useBrowserCompatibleMultipartModeVisible checkbox should be visible in theUrlConfigGui.
-
setUseBrowserCompatibleMultipartModeVisible
public void setUseBrowserCompatibleMultipartModeVisible(boolean useBrowserCompatibleMultipartModeVisible) Set the visibility of the useBrowserCompatibleMultipartModeVisible checkbox in theUrlConfigGui.- Parameters:
useBrowserCompatibleMultipartModeVisible- flag to toggle visibility in GUI
-