|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HTTPRecording
Interface for recording HTTP stream information.
| 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. |
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. |
| Method Detail |
|---|
HTTPRecordingParameters getParameters()
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.
connectionDetails - The connection used to make the request.method - The HTTP method.relativeURI - The URI.
void markLastResponseTime()
void setTokenReference(String name,
String value,
TokenReferenceType tokenReference)
The reference source is cached for use by
tokenReferenceExists(String, String), so it should be set before
this method is called.
name - The name.value - The value.tokenReference - This reference is set with the appropriate
token ID, and the new value is set if appropriate.String getLastValueForToken(String name)
name - The token name.
null if no token reference
for this token has been seen.
boolean tokenReferenceExists(String name,
String source)
source.
name - 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.File createBodyDataFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||