Class Batch<C extends Content>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Batch<C>
-
-
Field Summary
Fields Modifier and Type Field Description protected de.fraunhofer.iosb.ilt.frostserver.path.VersionbatchVersionprotected List<String>errorsprotected booleanisChangeSetprotected StringlogIndentprotected booleanparseFailedFlag indicating there is a problem with the syntax of the content.protected List<Part<C>>partsprotected CoreSettingssettings
-
Constructor Summary
Constructors Modifier Constructor Description protectedBatch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Batch<C>addPart(Part<C> part)List<String>getErrors()Get the list of error messages generating during parsing.List<Part<C>>getParts()booleanisParseFailed()Flag indicating there were errors parsing the content.abstract booleanparse(ServiceRequest request)voidsetLogIndent(String logIndent)Sets the indentation of log messages.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Content
getContent, getHeaders
-
-
-
-
Field Detail
-
settings
protected final CoreSettings settings
-
logIndent
protected String logIndent
-
parseFailed
protected boolean parseFailed
Flag indicating there is a problem with the syntax of the content. If this is a changeSet, then the entire changeSet will be discarded.
-
isChangeSet
protected final boolean isChangeSet
-
batchVersion
protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion
-
-
Constructor Detail
-
Batch
protected Batch(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean isChangeSet)
-
-
Method Detail
-
parse
public abstract boolean parse(ServiceRequest request)
-
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
public List<String> getErrors()
Description copied from interface:ContentGet the list of error messages generating during parsing.
-
setLogIndent
public void setLogIndent(String logIndent)
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.
-
-