public abstract class HTTPAbstractImpl extends Object implements Interruptible, HTTPConstantsInterface
Modifier and Type | Field and Description |
---|---|
protected HTTPSamplerBase |
testElement |
APPLICATION_X_WWW_FORM_URLENCODED, CACHE_CONTROL, CONNECT, CONNECTION_CLOSE, DATE, DEFAULT_HTTP_PORT, DEFAULT_HTTP_PORT_STRING, DEFAULT_HTTPS_PORT, DEFAULT_HTTPS_PORT_STRING, DELETE, ENCODING_GZIP, ETAG, EXPIRES, GET, HEAD, HEADER_AUTHORIZATION, HEADER_CONNECTION, HEADER_CONTENT_DISPOSITION, HEADER_CONTENT_ENCODING, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_HOST, HEADER_LOCATION, HEADER_SET_COOKIE, HTTP_1_1, IF_MODIFIED_SINCE, IF_NONE_MATCH, KEEP_ALIVE, LAST_MODIFIED, MULTIPART_FORM_DATA, OPTIONS, PATCH, POST, PROTOCOL_HTTP, PROTOCOL_HTTPS, PUT, TRACE, TRANSFER_ENCODING
Modifier | Constructor and Description |
---|---|
protected |
HTTPAbstractImpl(HTTPSamplerBase testElement) |
Modifier and Type | Method and Description |
---|---|
protected HTTPSampleResult |
errorResult(Throwable t,
HTTPSampleResult res)
|
protected Arguments |
getArguments()
Invokes
HTTPSamplerBase.getArguments() |
protected AuthManager |
getAuthManager()
Invokes
HTTPSamplerBase.getAuthManager() |
protected boolean |
getAutoRedirects()
|
protected CacheManager |
getCacheManager()
|
protected int |
getConnectTimeout()
|
protected String |
getContentEncoding()
|
protected CookieManager |
getCookieManager()
|
protected boolean |
getDoBrowserCompatibleMultipart()
|
protected HeaderManager |
getHeaderManager()
|
protected HTTPFileArg[] |
getHTTPFiles()
Invokes
HTTPSamplerBase.getHTTPFiles() |
protected String |
getIpSource()
Invokes
HTTPSamplerBase.getIpSource() |
protected String |
getProxyHost()
Invokes
HTTPSamplerBase.getProxyHost() |
protected String |
getProxyPass()
Invokes
HTTPSamplerBase.getProxyPass() |
protected int |
getProxyPortInt()
|
protected String |
getProxyUser()
Invokes
HTTPSamplerBase.getProxyUser() |
protected int |
getResponseTimeout()
|
protected boolean |
getSendFileAsPostBody()
Determine whether to send a file as the entire body of an
entity enclosing request such as POST, PUT or PATCH.
|
protected boolean |
getSendParameterValuesAsPostBody()
Determine whether to send concatenated parameters as the entire body of an
entity enclosing request such as POST, PUT or PATCH.
|
protected boolean |
getUseKeepAlive()
|
protected boolean |
getUseMultipartForPost()
|
protected boolean |
hasArguments()
Invokes
HTTPSamplerBase.hasArguments() |
protected boolean |
isMonitor()
Invokes
HTTPSamplerBase.isMonitor() |
protected boolean |
isSuccessCode(int errorLevel)
|
protected void |
notifySSLContextWasReset()
Called by testIterationStart if the SSL Context was reset.
|
protected byte[] |
readResponse(SampleResult res,
BufferedInputStream in,
int contentLength)
|
protected byte[] |
readResponse(SampleResult res,
InputStream instream,
int responseContentLength)
|
protected HTTPSampleResult |
resultProcessing(boolean areFollowingRedirect,
int frameDepth,
HTTPSampleResult res)
|
protected abstract HTTPSampleResult |
sample(URL url,
String method,
boolean areFollowingRedirect,
int frameDepth) |
protected void |
setUseKeepAlive(boolean b)
|
protected void |
threadFinished() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
interrupt
protected final HTTPSamplerBase testElement
protected HTTPAbstractImpl(HTTPSamplerBase testElement)
protected abstract HTTPSampleResult sample(URL url, String method, boolean areFollowingRedirect, int frameDepth)
protected void threadFinished()
protected HTTPSampleResult errorResult(Throwable t, HTTPSampleResult res)
protected Arguments getArguments()
HTTPSamplerBase.getArguments()
protected AuthManager getAuthManager()
HTTPSamplerBase.getAuthManager()
protected boolean getAutoRedirects()
protected CacheManager getCacheManager()
protected int getConnectTimeout()
protected String getContentEncoding()
protected CookieManager getCookieManager()
protected HeaderManager getHeaderManager()
protected HTTPFileArg[] getHTTPFiles()
HTTPSamplerBase.getHTTPFiles()
protected String getIpSource()
HTTPSamplerBase.getIpSource()
protected String getProxyHost()
HTTPSamplerBase.getProxyHost()
protected String getProxyPass()
HTTPSamplerBase.getProxyPass()
protected int getProxyPortInt()
protected String getProxyUser()
HTTPSamplerBase.getProxyUser()
protected int getResponseTimeout()
protected boolean getSendFileAsPostBody()
HTTPSamplerBase.getSendFileAsPostBody()
protected boolean getSendParameterValuesAsPostBody()
HTTPSamplerBase.getSendParameterValuesAsPostBody()
protected boolean getUseKeepAlive()
protected boolean getUseMultipartForPost()
protected boolean getDoBrowserCompatibleMultipart()
protected boolean hasArguments()
HTTPSamplerBase.hasArguments()
protected boolean isMonitor()
HTTPSamplerBase.isMonitor()
protected boolean isSuccessCode(int errorLevel)
protected byte[] readResponse(SampleResult res, InputStream instream, int responseContentLength) throws IOException
IOException
protected byte[] readResponse(SampleResult res, BufferedInputStream in, int contentLength) throws IOException
IOException
protected HTTPSampleResult resultProcessing(boolean areFollowingRedirect, int frameDepth, HTTPSampleResult res)
protected void setUseKeepAlive(boolean b)
protected void notifySSLContextWasReset()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.