Class MixedPart
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part<MultipartContent>
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.multipart.MixedPart
-
public class MixedPart extends Part<MultipartContent>
- 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
Constructors Constructor Description MixedPart(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent)Creates a new Part.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendLine(String line)Parse the given line and add it to the Part.MultipartContent.IsFinishedisFinished()Gives the parse-state of the Content in this Part.voidstripLastNewline()Informs 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 Detail
-
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 Detail
-
isFinished
public MultipartContent.IsFinished 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
public void appendLine(String line)
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.
-
-