|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.plugin.http.tcpproxyfilter.HTTPRecordingImplementation
public class HTTPRecordingImplementation
Contains common state for HTTP recording.
| Constructor Summary | |
|---|---|
HTTPRecordingImplementation(HTTPRecordingParameters parameters,
HTTPRecordingResultProcessor resultProcessor,
org.slf4j.Logger logger,
RegularExpressions regularExpressions,
URIParser uriParser)
Constructor. |
|
| Method Summary | |
|---|---|
RequestType |
addRequest(ConnectionDetails connectionDetails,
String method,
String relativeURI)
Add a new request to the recording. |
File |
createBodyDataFileName()
Create a new file name for body data. |
void |
dispose()
Called after the component has been stopped. |
String |
getLastValueForToken(String name)
Return the last value recorded for the given token. |
HTTPRecordingParameters |
getParameters()
Return the parameters to use for the recording. |
void |
markLastResponseTime()
Called when a response message starts. |
void |
setTokenReference(String name,
String value,
TokenReferenceType tokenReference)
Fill in token reference details, creating the token if necessary. |
boolean |
tokenReferenceExists(String name,
String source)
Check for existence of token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HTTPRecordingImplementation(HTTPRecordingParameters parameters,
HTTPRecordingResultProcessor resultProcessor,
org.slf4j.Logger logger,
RegularExpressions regularExpressions,
URIParser uriParser)
parameters - Recording parameters.resultProcessor - Component which handles result.logger - A logger.regularExpressions - Compiled regular expressions.uriParser - A URI parser.| Method Detail |
|---|
public HTTPRecordingParameters getParameters()
getParameters in interface HTTPRecording
public RequestType addRequest(ConnectionDetails connectionDetails,
String method,
String relativeURI)
The request is returned to allow the caller to add things it doesn't know yet, e.g. headers, body, response.
addRequest in interface HTTPRecordingconnectionDetails - The connection used to make the request.method - The HTTP method.relativeURI - The URI.
public void markLastResponseTime()
markLastResponseTime in interface HTTPRecording
public void setTokenReference(String name,
String value,
TokenReferenceType tokenReference)
The reference source is cached for use by
HTTPRecording.tokenReferenceExists(String, String), so it should be set before
this method is called.
setTokenReference in interface HTTPRecordingname - The name.value - The value.tokenReference - This reference is set with the appropriate
token ID, and the new value is set if appropriate.public String getLastValueForToken(String name)
getLastValueForToken in interface HTTPRecordingname - The token name.
null if no token reference
for this token has been seen.
public boolean tokenReferenceExists(String name,
String source)
source.
tokenReferenceExists in interface HTTPRecordingname - Token name.source - Token source.
true if a token with name name
exists, and has at least one reference with a source type of
source.public File createBodyDataFileName()
createBodyDataFileName in interface HTTPRecordingpublic void dispose()
dispose in interface org.picocontainer.Disposable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||