Class MixedPart
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part<MultipartContent>
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.multipart.MixedPart
- Author:
- scf
-
Field Summary
Fields inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part
batchVersion, content, headers, inChangeSet, logIndent, settings -
Constructor Summary
ConstructorsConstructorDescriptionMixedPart(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent) Creates a new Part. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendLine(String line) Parse the given line and add it to the Part.Gives the parse-state of the Content in this Part.voidInforms the Content that the last newline should be removed again.Methods inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part
getContent, getHeader, setContent, setInChangeSet, setLogIndent, toString
-
Constructor Details
-
MixedPart
public MixedPart(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent) Creates a new Part.- Parameters:
batchVersion- Batch request API versionsettings- The settings.inChangeSet- flag indicating the Part is part of a ChangeSet, and thus if the part itself can be a ChangeSet.
-
-
Method Details
-
isFinished
Gives the parse-state of the Content in this Part. This indicates if more content is expected or not.- Returns:
- the parse-state of the Content.
-
appendLine
Parse the given line and add it to the Part.- Parameters:
line- the line to parse.
-
stripLastNewline
public void stripLastNewline()Informs the Content that the last newline should be removed again. The newline before a boundary is part of the boundary, not of the content.
-