Class HttpContent
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Request
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.multipart.HttpContent
- All Implemented Interfaces:
Content,MultipartContent
- Author:
- scf
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.multipart.MultipartContent
MultipartContent.IsFinished -
Field Summary
Fields inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Request
batchVersion, contentId, contentIdValue, data, errors, executeFailed, headersInner, headersOuter, logIndent, method, parseFailed, path, requireContentId, userPrincipal, version -
Constructor Summary
ConstructorsConstructorDescriptionHttpContent(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion) HttpContent(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, boolean requireContentId) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetContent(boolean allHeaders) Get the String content for response.de.fraunhofer.iosb.ilt.frostserver.model.core.IdgetData()Get the data in the http request.getPath()Get the path part of the http request.Gives the parse-state of the Content.voidAdd the line to the content.voidsetContentId(String contentId) voidsetContentIdValue(de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue) voidvoidsetStatusLine(String statusLine) voidInforms the Content that the last newline should be removed again.voidupdateUsingContentIds(List<ContentIdPair> contentIds) Methods inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Request
getErrors, getHeaders, getHttpHeaders, getUserPrincipal, getVersion, isExecuteFailed, isParseFailed, parseUrl, setExecuteFailed, setLogIndent, setMethod, setPath, setUserPrincipalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Content
getErrors, getHeaders, isParseFailed, setLogIndent
-
Constructor Details
-
HttpContent
public HttpContent(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion) -
HttpContent
public HttpContent(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, boolean requireContentId)
-
-
Method Details
-
parseLine
Description copied from interface:MultipartContentAdd the line to the content.- Specified by:
parseLinein interfaceMultipartContent- Parameters:
line- The line to add.
-
getPath
Get the path part of the http request. -
getData
Get the data in the http request. This does not include the outer headers, command, nor inner headers. -
addData
-
getContentId
- Overrides:
getContentIdin classRequest
-
setContentId
- Overrides:
setContentIdin classRequest
-
getContentIdValue
public de.fraunhofer.iosb.ilt.frostserver.model.core.Id getContentIdValue()- Overrides:
getContentIdValuein classRequest
-
setContentIdValue
public void setContentIdValue(de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue) - Overrides:
setContentIdValuein classRequest
-
updateUsingContentIds
- Overrides:
updateUsingContentIdsin classRequest
-
getMethod
-
getStatusLine
-
setStatusLine
-
setStatus
-
getContent
Description copied from interface:ContentGet the String content for response.- Specified by:
getContentin interfaceContent- Parameters:
allHeaders- flag indicating all headers should be included. If the content is going to be added to a HttpServletResponse, the headers need to be set separately.- Returns:
- The content.
-
stripLastNewline
public void stripLastNewline()Description copied from interface:MultipartContentInforms the Content that the last newline should be removed again. The newline before a boundary is part of the boundary, not of the content.- Specified by:
stripLastNewlinein interfaceMultipartContent
-
isFinished
Description copied from interface:MultipartContentGives the parse-state of the Content. This indicates if more content is expected or not.- Specified by:
isFinishedin interfaceMultipartContent- Returns:
- the parse-state of the Content.
-