Class JsonBatch
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Batch<Content>
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.json.JsonBatch
- All Implemented Interfaces:
Content
Parser for JSON request.
-
Field Summary
Fields inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Batch
batchVersion, errors, isChangeSet, logIndent, parseFailed, parts, settings, userPrincipal -
Constructor Summary
ConstructorsConstructorDescriptionJsonBatch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet) -
Method Summary
Modifier and TypeMethodDescriptiongetContent(boolean allHeaders) Get the String content for response.Get the headers.booleanparse(ServiceRequest serviceRequest) Methods inherited from class de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Batch
addPart, getErrors, getParts, getUserPrincipal, isParseFailed, setLogIndent, setUserPrincipal
-
Constructor Details
-
JsonBatch
public JsonBatch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet)
-
-
Method Details
-
parse
-
getContent
Description copied from interface:ContentGet the String content for response.- 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.
-
getHeaders
Description copied from interface:ContentGet the headers. This will include the Content-Type header.- Returns:
- the headers.
-