|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.protocol.http.proxy.HttpRequestHdr
public class HttpRequestHdr
The headers of the client HTTP request.
Field Summary | |
---|---|
static String |
CONTENT_LENGTH
|
static String |
CONTENT_TYPE
|
Constructor Summary | |
---|---|
HttpRequestHdr()
|
|
HttpRequestHdr(String httpSamplerName)
|
Method Summary | |
---|---|
String |
getContentType()
|
HeaderManager |
getHeaderManager()
|
String |
getHttpSamplerName()
|
String |
getMethod()
Returns the method string extracted from the first line of the client request. |
MultipartUrlConfig |
getMultipartConfig(String contentType)
|
String |
getPath()
Find the /some/file.xxxx from http://server.ect:PORT/some/file.xxx |
String |
getProtocol(HTTPSamplerBase sampler)
|
byte[] |
getRawPostData()
|
String |
getUrl()
Returns the url string extracted from the first line of the client request. |
String |
getUrlWithoutQuery(URL _url)
|
byte[] |
parse(InputStream in)
Parses a http header from a stream. |
String |
serverName()
Find the //server.name from an url. |
int |
serverPort()
Find the :PORT from http://server.ect:PORT/some/file.xxx |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTENT_TYPE
public static final String CONTENT_LENGTH
Constructor Detail |
---|
public HttpRequestHdr()
public HttpRequestHdr(String httpSamplerName)
httpSamplerName
- the http sampler nameMethod Detail |
---|
public byte[] parse(InputStream in) throws IOException
in
- the stream to parse.
IOException
public HeaderManager getHeaderManager()
public String getContentType()
public MultipartUrlConfig getMultipartConfig(String contentType)
public String serverName()
public int serverPort()
public String getPath()
public String getUrl()
public String getMethod()
public String getUrlWithoutQuery(URL _url)
public String getHttpSamplerName()
public byte[] getRawPostData()
public String getProtocol(HTTPSamplerBase sampler)
sampler
- HTTPSamplerBase
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |