public class ResponseBodyFileManager
extends java.lang.Object
ChromeHttpFlowObserver to serve request bodies.| Constructor and Description |
|---|
ResponseBodyFileManager(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateAsyncPrettyPrinterWithId(java.lang.String requestId,
AsyncPrettyPrinter asyncPrettyPrinter)
Associates an asynchronous pretty printer with a response request id
The pretty printer will be used to pretty print the response body that has
the particular request id
|
void |
cleanupFiles() |
java.io.OutputStream |
openResponseBodyFile(java.lang.String requestId,
boolean base64Encode) |
ResponseBodyData |
readFile(java.lang.String requestId) |
public ResponseBodyFileManager(android.content.Context context)
public void cleanupFiles()
public ResponseBodyData readFile(java.lang.String requestId) throws java.io.IOException
java.io.IOExceptionpublic java.io.OutputStream openResponseBodyFile(java.lang.String requestId,
boolean base64Encode)
throws java.io.IOException
java.io.IOExceptionpublic void associateAsyncPrettyPrinterWithId(java.lang.String requestId,
AsyncPrettyPrinter asyncPrettyPrinter)
requestId - Unique identifier for the response
as per NetworkEventReporter.InspectorResponse.requestId()asyncPrettyPrinter - Asynchronous Pretty Printer to pretty print the response body