Apache JMeter
2.2

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

java.lang.Object
  extended byorg.apache.jmeter.protocol.http.proxy.HttpRequestHdr

public class HttpRequestHdr
extends Object

The headers of the client HTTP request.


Constructor Summary
HttpRequestHdr()
           
 
Method Summary
 HeaderManager getHeaderManager()
           
 HTTPSamplerBase getSampler()
           
 byte[] parse(InputStream in)
          Parses a http header from a stream.
 int serverPort()
          Find the :PORT form http://server.ect:PORT/some/file.xxx
 String serverUrl()
          Find the /some/file.xxxx form 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
 

Constructor Detail

HttpRequestHdr

public HttpRequestHdr()
Method Detail

parse

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

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

getHeaderManager

public HeaderManager getHeaderManager()

getSampler

public HTTPSamplerBase getSampler()
                           throws MalformedURLException,
                                  IOException,
                                  ProtocolException
Throws:
MalformedURLException
IOException
ProtocolException

serverPort

public int serverPort()
Find the :PORT form http://server.ect:PORT/some/file.xxx

Returns:
server's port

serverUrl

public String serverUrl()
Find the /some/file.xxxx form http://server.ect:PORT/some/file.xxx

Returns:
the deproxied url

Apache JMeter
2.2

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