public class HTTPIncomingDumperDirectoryBased extends Object implements IHTTPIncomingDumper
| Constructor and Description |
|---|
HTTPIncomingDumperDirectoryBased(File aDumpDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpIncomingRequest(List<String> aHeaderLines,
byte[] aPayload,
IBaseMessage aMsg)
Dump an incoming HTTP request.
|
File |
getDumpDirectory() |
protected String |
getStoreFilename(int nIndex)
The filename to be used to store the request in the folder provided in the
constructor.
|
String |
toString() |
protected void |
writeToFile(File aDestinationFile,
List<String> aHeaderLines,
byte[] aPayload,
IBaseMessage aMsg) |
@Nonnull protected String getStoreFilename(int nIndex)
nIndex - Unique index to avoid duplicate filenamesprotected void writeToFile(@Nonnull File aDestinationFile, @Nonnull List<String> aHeaderLines, @Nonnull byte[] aPayload, @Nullable IBaseMessage aMsg)
public void dumpIncomingRequest(@Nonnull List<String> aHeaderLines, @Nonnull byte[] aPayload, @Nullable IBaseMessage aMsg)
IHTTPIncomingDumperdumpIncomingRequest in interface IHTTPIncomingDumperaHeaderLines - All headers lines. Use ISO-8859-1 to convert to bytes.aPayload - The payload byte array.aMsg - The message stub. May be null for legacy reasons.Copyright © 2013–2022 Philip Helger. All rights reserved.