public class UrlConfigDefaults extends Object implements Serializable
UrlConfigGui
.Constructor and Description |
---|
UrlConfigDefaults() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultMethod()
Return the default HTTP method to be selected in the
UrlConfigGui . |
String[] |
getValidMethods()
Return available HTTP methods to be shown in the
UrlConfigGui , returning HTTPSamplerBase.getValidMethodsAsArray()
by default if not reset. |
boolean |
isAutoRedirects() |
boolean |
isAutoRedirectsVisible() |
boolean |
isFollowRedirects() |
boolean |
isFollowRedirectsVisible() |
boolean |
isUseBrowserCompatibleMultipartMode() |
boolean |
isUseBrowserCompatibleMultipartModeVisible() |
boolean |
isUseKeepAlive() |
boolean |
isUseKeepAliveVisible() |
boolean |
isUseMultipart() |
boolean |
isUseMultipartVisible() |
void |
setAutoRedirects(boolean autoRedirects)
Set the default value to be set for the autoRedirects checkbox in the
UrlConfigGui . |
void |
setAutoRedirectsVisible(boolean autoRedirectsVisible)
Set the visibility of the autoRedirectsVisible checkbox in the
UrlConfigGui . |
void |
setDefaultMethod(String defaultMethod)
Set the default HTTP method to be selected in the
UrlConfigGui . |
void |
setFollowRedirects(boolean followRedirects)
Set the default value to be set for the followRedirect checkbox in the
UrlConfigGui . |
void |
setFollowRedirectsVisible(boolean followRedirectsVisible)
Set the visibility of the followRedirect checkbox in the
UrlConfigGui . |
void |
setUseBrowserCompatibleMultipartMode(boolean useBrowserCompatibleMultipartMode)
Set the default value to be set for the useBrowserCompatibleMultipartMode checkbox in the
UrlConfigGui . |
void |
setUseBrowserCompatibleMultipartModeVisible(boolean useBrowserCompatibleMultipartModeVisible)
Set the visibility of the useBrowserCompatibleMultipartModeVisible checkbox in the
UrlConfigGui . |
void |
setUseKeepAlive(boolean useKeepAlive)
Set the default value to be set for the useKeepAlive checkbox in the
UrlConfigGui . |
void |
setUseKeepAliveVisible(boolean useKeepAliveVisible)
Set the visibility of the useKeepAliveVisible checkbox in the
UrlConfigGui . |
void |
setUseMultipart(boolean useMultipart)
Set the default value to be set for the useMultipart checkbox in the
UrlConfigGui . |
void |
setUseMultipartVisible(boolean useMultipartVisible)
Set the visibility of the useMultipartVisible checkbox in the
UrlConfigGui . |
void |
setValidMethods(String[] validMethods)
Set available HTTP methods to be shown in the
UrlConfigGui . |
public String[] getValidMethods()
UrlConfigGui
, returning HTTPSamplerBase.getValidMethodsAsArray()
by default if not reset.UrlConfigGui
public void setValidMethods(String[] validMethods)
UrlConfigGui
.validMethods
- available HTTP methodsIllegalArgumentException
- if the input array is emptypublic String getDefaultMethod()
UrlConfigGui
.UrlConfigGui
public void setDefaultMethod(String defaultMethod)
UrlConfigGui
.defaultMethod
- the default HTTP method to be selected in the UrlConfigGui
public boolean isFollowRedirects()
UrlConfigGui
.public void setFollowRedirects(boolean followRedirects)
UrlConfigGui
.followRedirects
- flag whether redirects should be followedpublic boolean isAutoRedirects()
UrlConfigGui
.public void setAutoRedirects(boolean autoRedirects)
UrlConfigGui
.autoRedirects
- flag whether redirects should be followed automaticallypublic boolean isUseKeepAlive()
UrlConfigGui
.public void setUseKeepAlive(boolean useKeepAlive)
UrlConfigGui
.useKeepAlive
- flag whether to use keep-alive on HTTP requestspublic boolean isUseMultipart()
UrlConfigGui
.public void setUseMultipart(boolean useMultipart)
UrlConfigGui
.useMultipart
- flag whether request data should use multi-part featurepublic boolean isUseBrowserCompatibleMultipartMode()
UrlConfigGui
.public void setUseBrowserCompatibleMultipartMode(boolean useBrowserCompatibleMultipartMode)
UrlConfigGui
.useBrowserCompatibleMultipartMode
- flag whether to use browser compatible multi-part modepublic boolean isFollowRedirectsVisible()
true
if the followRedirect checkbox should be visible in the UrlConfigGui
.public void setFollowRedirectsVisible(boolean followRedirectsVisible)
UrlConfigGui
.followRedirectsVisible
- flag to toggle visibility in GUIpublic boolean isAutoRedirectsVisible()
UrlConfigGui
.public void setAutoRedirectsVisible(boolean autoRedirectsVisible)
UrlConfigGui
.autoRedirectsVisible
- flag to toggle visibility in GUIpublic boolean isUseKeepAliveVisible()
true
if the useKeepAliveVisible checkbox should be visible in the UrlConfigGui
.public void setUseKeepAliveVisible(boolean useKeepAliveVisible)
UrlConfigGui
.useKeepAliveVisible
- flag to toggle visibility in GUIpublic boolean isUseMultipartVisible()
true
if the useMultipartVisible checkbox should by default in the UrlConfigGui
.public void setUseMultipartVisible(boolean useMultipartVisible)
UrlConfigGui
.useMultipartVisible
- flag to toggle visibility in GUIpublic boolean isUseBrowserCompatibleMultipartModeVisible()
true
if the useBrowserCompatibleMultipartModeVisible checkbox should be visible in the UrlConfigGui
.public void setUseBrowserCompatibleMultipartModeVisible(boolean useBrowserCompatibleMultipartModeVisible)
UrlConfigGui
.useBrowserCompatibleMultipartModeVisible
- flag to toggle visibility in GUICopyright © 1998-2021 Apache Software Foundation. All Rights Reserved.