Apache JMeter

org.apache.jmeter.protocol.http.proxy
Class HttpRequestHdr

java.lang.Object
  extended by org.apache.jmeter.protocol.http.proxy.HttpRequestHdr

public class HttpRequestHdr
extends java.lang.Object

The headers of the client HTTP request.


Constructor Summary
HttpRequestHdr()
           
HttpRequestHdr(HTTPSamplerBase sampler)
           
 
Method Summary
 HeaderManager getHeaderManager()
           
 HTTPSamplerBase getSampler()
          Deprecated. use the getSampler(HashMap pageEncodings, HashMap formEncodings) instead, since that properly handles the encodings of the page
 HTTPSamplerBase getSampler(java.util.Map pageEncodings, java.util.Map formEncodings)
           
 java.lang.String getUrl()
          Returns the url string extracted from the first line of the client request.
 byte[] parse(java.io.InputStream in)
          Parses a http header from a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestHdr

public HttpRequestHdr()

HttpRequestHdr

public HttpRequestHdr(HTTPSamplerBase sampler)
Parameters:
sampler - the http sampler
Method Detail

parse

public byte[] parse(java.io.InputStream in)
             throws java.io.IOException
Parses a http header from a stream.

Parameters:
in - the stream to parse.
Returns:
array of bytes from client.
Throws:
java.io.IOException

getHeaderManager

public HeaderManager getHeaderManager()

getSampler

public HTTPSamplerBase getSampler(java.util.Map pageEncodings,
                                  java.util.Map formEncodings)
                           throws java.net.MalformedURLException,
                                  java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

getSampler

public HTTPSamplerBase getSampler()
                           throws java.net.MalformedURLException,
                                  java.io.IOException,
                                  java.net.ProtocolException
Deprecated. use the getSampler(HashMap pageEncodings, HashMap formEncodings) instead, since that properly handles the encodings of the page

Returns:
the sampler
Throws:
java.net.MalformedURLException
java.io.IOException
java.net.ProtocolException

getUrl

public java.lang.String getUrl()
Returns the url string extracted from the first line of the client request.

Returns:
the url

Apache JMeter

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.