Package com.helger.as2lib.util.dump
Class HTTPIncomingDumperDirectoryBased
java.lang.Object
com.helger.as2lib.util.dump.HTTPIncomingDumperDirectoryBased
- All Implemented Interfaces:
IHTTPIncomingDumper
Directory based incoming HTTP dumper.
- Since:
- 3.0.1
- Author:
- Philip Helger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dumpIncomingRequest
(List<String> aHeaderLines, byte[] aPayload, IBaseMessage aMsg) Dump an incoming HTTP request.protected String
getStoreFilename
(int nIndex) The filename to be used to store the request in the folder provided in the constructor.toString()
protected void
writeToFile
(File aDestinationFile, List<String> aHeaderLines, byte[] aPayload, IBaseMessage aMsg)
-
Constructor Details
-
HTTPIncomingDumperDirectoryBased
-
-
Method Details
-
getDumpDirectory
-
getStoreFilename
The filename to be used to store the request in the folder provided in the constructor.- Parameters:
nIndex
- Unique index to avoid duplicate filenames- Returns:
- The local filename without any path
-
writeToFile
-
dumpIncomingRequest
public void dumpIncomingRequest(@Nonnull List<String> aHeaderLines, @Nonnull byte[] aPayload, @Nullable IBaseMessage aMsg) Description copied from interface:IHTTPIncomingDumper
Dump an incoming HTTP request.- Specified by:
dumpIncomingRequest
in interfaceIHTTPIncomingDumper
- Parameters:
aHeaderLines
- All headers lines. Use ISO-8859-1 to convert to bytes.aPayload
- The payload byte array.aMsg
- The message stub. May benull
for legacy reasons.
-
toString
-