public class ProxySearchResult
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
static java.lang.String |
SEARCH_RESULT_NOTES |
static java.lang.String |
SEARCH_RESULT_POST_DATA |
static java.lang.String |
SEARCH_RESULT_REQUEST_HEADER_KEY |
static java.lang.String |
SEARCH_RESULT_REQUEST_HEADER_VALUE |
static java.lang.String |
SEARCH_RESULT_REQUEST_LINE |
static java.lang.String |
SEARCH_RESULT_RESPONSE_BODY |
static java.lang.String |
SEARCH_RESULT_RESPONSE_HEADER_KEY |
static java.lang.String |
SEARCH_RESULT_RESPONSE_HEADER_VALUE |
static java.lang.String |
SEARCH_RESULT_RESPONSE_STATUS_LINE |
Constructor and Description |
---|
ProxySearchResult(HTTPTransaction httpTransaction,
java.lang.String location,
int startPoint,
int length) |
ProxySearchResult(HTTPTransaction httpTransaction,
java.lang.String location,
int startPoint,
int length,
java.lang.String headerName) |
ProxySearchResult(HTTPTransaction httpTransaction,
java.lang.String location,
int startPoint,
int length,
java.lang.String headerName,
java.lang.String cookie) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object psr)
Required by the
Comparable interface. |
void |
dumpToLog()
Dumps the object to the log.
|
java.lang.String |
getCookie()
If we're displaying JavaScript cookie search results this
will get the key and value of the cookie.
|
java.lang.String |
getHeaderName()
Gets the name of the header containing the result.
|
HTTPTransaction |
getHTTPTransaction()
Gets the HTTP transaction containing the found text.
|
int |
getLength()
Gets the length of the found text.
|
java.lang.String |
getLocation()
Gets the location of the search result, as defined by one of the constants
in this class.
|
int |
getStartPoint()
Gets the start point of the found text.
|
void |
setCookie(java.lang.String cookie)
If we're displaying JavaScript cookie search results this
will set the key and value of the cookie.
|
void |
setLength(int length)
Sets the length of the found text.
|
void |
setStartPoint(int startPoint)
Sets the start point of the found text.
|
public static org.apache.log4j.Logger log
public static final java.lang.String SEARCH_RESULT_REQUEST_LINE
public static final java.lang.String SEARCH_RESULT_REQUEST_HEADER_KEY
public static final java.lang.String SEARCH_RESULT_REQUEST_HEADER_VALUE
public static final java.lang.String SEARCH_RESULT_POST_DATA
public static final java.lang.String SEARCH_RESULT_RESPONSE_STATUS_LINE
public static final java.lang.String SEARCH_RESULT_RESPONSE_HEADER_KEY
public static final java.lang.String SEARCH_RESULT_RESPONSE_HEADER_VALUE
public static final java.lang.String SEARCH_RESULT_RESPONSE_BODY
public static final java.lang.String SEARCH_RESULT_NOTES
public ProxySearchResult(HTTPTransaction httpTransaction, java.lang.String location, int startPoint, int length)
public ProxySearchResult(HTTPTransaction httpTransaction, java.lang.String location, int startPoint, int length, @Nullable java.lang.String headerName)
public ProxySearchResult(HTTPTransaction httpTransaction, java.lang.String location, int startPoint, int length, java.lang.String headerName, java.lang.String cookie)
public HTTPTransaction getHTTPTransaction()
HTTPTransaction
.public java.lang.String getLocation()
public java.lang.String getHeaderName()
public int getStartPoint()
public void setStartPoint(int startPoint)
startPoint
- The start point.public int getLength()
public void setLength(int length)
length
- The length.public java.lang.String getCookie()
public void setCookie(java.lang.String cookie)
cookie
- The cookie in the form key=value.public int compareTo(java.lang.Object psr)
Comparable
interface.compareTo
in interface java.lang.Comparable
psr
- The result to compare to.public void dumpToLog()