public class PayloadLogger extends Object
Constructor and Description |
---|
PayloadLogger() |
Modifier and Type | Method and Description |
---|---|
String |
getID() |
static void |
main(String[] args) |
static String |
parseBoundary(String headerLine)
Parses something like this
Content-type: multipart/mixed; boundary="simple boundary"
|
static List<org.dynamide.restreplay.PayloadLogger.HttpTraffic> |
process(String httpSessionTraffic) |
static String |
readFile(String dir,
String relPath) |
protected static int |
readHeaders(org.dynamide.restreplay.PayloadLogger.HttpTraffic traffic,
String[] lines,
int i)
places the boundary on the HttpTraffic in parameter object if boundary found in header "Content-Type:".
|
protected static int |
readPayloads(org.dynamide.restreplay.PayloadLogger.HttpTraffic traffic,
String[] lines,
int i) |
static org.dynamide.restreplay.PayloadLogger.HttpTraffic |
readPayloads(String fullPayload,
String boundary,
long contentLength) |
static File |
saveFile(String dir,
String relativeName,
String content) |
static void |
saveReport() |
public static void saveReport()
public String getID()
public static String parseBoundary(String headerLine)
protected static int readHeaders(org.dynamide.restreplay.PayloadLogger.HttpTraffic traffic, String[] lines, int i)
public static org.dynamide.restreplay.PayloadLogger.HttpTraffic readPayloads(String fullPayload, String boundary, long contentLength)
protected static int readPayloads(org.dynamide.restreplay.PayloadLogger.HttpTraffic traffic, String[] lines, int i)
public static String readFile(String dir, String relPath) throws Exception
Exception
public static List<org.dynamide.restreplay.PayloadLogger.HttpTraffic> process(String httpSessionTraffic)
Copyright © 2016. All rights reserved.