Class Batch<C extends Content>
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Batch<C>
- Type Parameters:
C- The type of content.
- All Implemented Interfaces:
Content
- Direct Known Subclasses:
JsonBatch,MixedContent
Batch of requests or responses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final de.fraunhofer.iosb.ilt.frostserver.path.Versionprotected final booleanprotected Stringprotected booleanFlag indicating there is a problem with the syntax of the content.protected final CoreSettingsprotected Principal -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBatch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet) -
Method Summary
Modifier and TypeMethodDescriptionGet the list of error messages generating during parsing.getParts()booleanFlag indicating there were errors parsing the content.abstract booleanparse(ServiceRequest request) voidsetLogIndent(String logIndent) Sets the indentation of log messages.voidsetUserPrincipal(Principal userPrincipal) Methods 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
getContent, getHeaders
-
Field Details
-
settings
-
parts
-
logIndent
-
parseFailed
protected boolean parseFailedFlag indicating there is a problem with the syntax of the content. If this is a changeSet, then the entire changeSet will be discarded. -
errors
-
isChangeSet
protected final boolean isChangeSet -
batchVersion
protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion -
userPrincipal
-
-
Constructor Details
-
Batch
protected Batch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet)
-
-
Method Details
-
parse
-
isParseFailed
public boolean isParseFailed()Description copied from interface:ContentFlag indicating there were errors parsing the content.- Specified by:
isParseFailedin interfaceContent- Returns:
- true if there were parse errors.
-
getErrors
Description copied from interface:ContentGet the list of error messages generating during parsing. -
setLogIndent
Description copied from interface:ContentSets the indentation of log messages. Since Content can be nested, this makes debug output better readable.- Specified by:
setLogIndentin interfaceContent- Parameters:
logIndent- the indentation of log messages.
-
getParts
-
addPart
-
getUserPrincipal
-
setUserPrincipal
-