Interface MultipartContent
-
- All Superinterfaces:
Content
- All Known Implementing Classes:
HttpContent,MixedContent,StringContent
public interface MultipartContent extends Content
- Author:
- scf
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMultipartContent.IsFinishedIndicates the parse-state of the Content.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultipartContent.IsFinishedisFinished()Gives the parse-state of the Content.voidparseLine(String line)Add the line to the content.voidstripLastNewline()Informs the Content that the last newline should be removed again.-
Methods inherited from interface de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Content
getContent, getErrors, getHeaders, isParseFailed, setLogIndent
-
-
-
-
Method Detail
-
parseLine
void parseLine(String line)
Add the line to the content.- Parameters:
line- The line to add.
-
stripLastNewline
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.
-
isFinished
MultipartContent.IsFinished isFinished()
Gives the parse-state of the Content. This indicates if more content is expected or not.- Returns:
- the parse-state of the Content.
-
-