You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by se...@apache.org on 2013/08/30 01:58:46 UTC
svn commit: r1518860 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
Author: sebb
Date: Thu Aug 29 23:58:45 2013
New Revision: 1518860
URL: http://svn.apache.org/r1518860
Log:
Allow access to first line for debug purposes
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java?rev=1518860&r1=1518859&r2=1518860&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/HttpRequestHdr.java Thu Aug 29 23:58:45 2013
@@ -85,8 +85,11 @@ public class HttpRequestHdr {
private HeaderManager headerManager;
+ private String firstLine; // saved copy of first line for error reports
+
public HttpRequestHdr() {
this.httpSamplerName = ""; // $NON-NLS-1$
+ this.firstLine = "" ; // $NON-NLS-1$
}
/**
@@ -151,6 +154,7 @@ public class HttpRequestHdr {
}
private void parseFirstLine(String firstLine) {
+ this.firstLine = firstLine;
if (log.isDebugEnabled()) {
log.debug("browser request: " + firstLine);
}
@@ -365,6 +369,10 @@ public class HttpRequestHdr {
return method;
}
+ public String getFirstLine() {
+ return firstLine;
+ }
+
/**
* Returns the next token in a string.
*