public class HttpRequestHdr
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_LENGTH |
static java.lang.String |
CONTENT_TYPE |
Constructor and Description |
---|
HttpRequestHdr() |
HttpRequestHdr(java.lang.String httpSamplerName) |
HttpRequestHdr(java.lang.String prefix,
java.lang.String httpSamplerName) |
HttpRequestHdr(java.lang.String prefix,
java.lang.String httpSamplerName,
int httpSampleNameMode) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.lang.String |
getFirstLine() |
HeaderManager |
getHeaderManager() |
int |
getHttpSampleNameMode() |
java.lang.String |
getHttpSamplerName() |
java.lang.String |
getMethod()
Returns the method string extracted from the first line of the client request.
|
MultipartUrlConfig |
getMultipartConfig(java.lang.String contentType) |
java.lang.String |
getPath()
Find the /some/file.xxxx from http://server.ect:PORT/some/file.xxx
|
java.lang.String |
getPrefix() |
java.lang.String |
getProtocol(HTTPSamplerBase sampler) |
byte[] |
getRawPostData() |
java.lang.String |
getUrl()
Returns the url string extracted from the first line of the client request.
|
java.lang.String |
getUrlWithoutQuery(java.net.URL _url) |
byte[] |
parse(java.io.InputStream in)
Parses a http header from a stream.
|
java.lang.String |
serverName()
Find the //server.name from an url.
|
int |
serverPort()
Find the :PORT from http://server.ect:PORT/some/file.xxx
|
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String CONTENT_LENGTH
public HttpRequestHdr()
public HttpRequestHdr(java.lang.String httpSamplerName)
httpSamplerName
- the http sampler namepublic HttpRequestHdr(java.lang.String prefix, java.lang.String httpSamplerName)
prefix
- Sampler prefixhttpSamplerName
- the http sampler namepublic HttpRequestHdr(java.lang.String prefix, java.lang.String httpSamplerName, int httpSampleNameMode)
prefix
- Sampler prefixhttpSamplerName
- the http sampler namehttpSampleNameMode
- the naming mode of sampler namepublic byte[] parse(java.io.InputStream in) throws java.io.IOException
in
- the stream to parse.java.io.IOException
- when reading the input stream failspublic HeaderManager getHeaderManager()
public java.lang.String getContentType()
public MultipartUrlConfig getMultipartConfig(java.lang.String contentType)
public java.lang.String serverName()
public int serverPort()
public java.lang.String getPath()
public java.lang.String getUrl()
public java.lang.String getMethod()
public java.lang.String getFirstLine()
public java.lang.String getUrlWithoutQuery(java.net.URL _url)
public java.lang.String getHttpSamplerName()
public byte[] getRawPostData()
public java.lang.String getProtocol(HTTPSamplerBase sampler)
sampler
- HTTPSamplerBase
public java.lang.String getPrefix()
public int getHttpSampleNameMode()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.