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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.String[]
Return available HTTP methods to be shown in theUrlConfigGui
, returningHTTPSamplerBase.getValidMethodsAsArray()
by default if not reset.boolean
Deprecated.boolean
boolean
Deprecated.boolean
boolean
Deprecated.boolean
boolean
Deprecated.boolean
boolean
Deprecated.boolean
void
setAutoRedirects
(boolean autoRedirects) Deprecated.void
setAutoRedirectsVisible
(boolean autoRedirectsVisible) Set the visibility of the autoRedirectsVisible checkbox in theUrlConfigGui
.void
setDefaultMethod
(String defaultMethod) Deprecated.void
setFollowRedirects
(boolean followRedirects) Deprecated.void
setFollowRedirectsVisible
(boolean followRedirectsVisible) Set the visibility of the followRedirect checkbox in theUrlConfigGui
.void
setUseBrowserCompatibleMultipartMode
(boolean useBrowserCompatibleMultipartMode) Deprecated.void
setUseBrowserCompatibleMultipartModeVisible
(boolean useBrowserCompatibleMultipartModeVisible) Set the visibility of the useBrowserCompatibleMultipartModeVisible checkbox in theUrlConfigGui
.void
setUseKeepAlive
(boolean useKeepAlive) Deprecated.void
setUseKeepAliveVisible
(boolean useKeepAliveVisible) Set the visibility of the useKeepAliveVisible checkbox in theUrlConfigGui
.void
setUseMultipart
(boolean useMultipart) Deprecated.void
setUseMultipartVisible
(boolean useMultipartVisible) Set the visibility of the useMultipartVisible checkbox in theUrlConfigGui
.void
setValidMethods
(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:
true
if 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:
true
if 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:
true
if 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:
true
if 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
-