Class Part<C extends Content>
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part<C>
- Direct Known Subclasses:
MixedPart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final de.fraunhofer.iosb.ilt.frostserver.path.Versionprotected Cprotected booleanprotected Stringprotected final CoreSettings -
Constructor Summary
ConstructorsConstructorDescriptionPart(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent) Creates a new Part. -
Method Summary
Modifier and TypeMethodDescriptionGet the Content of this Part.Get the value of the header with the given name.voidsetContent(C content) Set the Content of this Part.voidsetInChangeSet(boolean inChangeSet) voidsetLogIndent(String logIndent) Sets the indentation of log messages.toString()
-
Field Details
-
settings
-
headers
-
-
logIndent
-
inChangeSet
protected boolean inChangeSet -
batchVersion
protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion
-
-
Constructor Details
-
Part
public Part(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent) Creates a new Part.- Parameters:
batchVersion- Batch request API versionsettings- The settings.inChangeSet- flag indicating the Part is part of a ChangeSet, and thus if the part itself can be a ChangeSet.logIndent-
-
-
Method Details
-
getHeader
Get the value of the header with the given name.- Parameters:
name- The name of the header to get.- Returns:
- The value of the header with the given name.
-
getContent
Get the Content of this Part.- Returns:
- the Content of this Part.
-
setContent
Set the Content of this Part.- Parameters:
content- the Content of this Part.
-
setInChangeSet
public void setInChangeSet(boolean inChangeSet) -
setLogIndent
Sets the indentation of log messages. Since Content can be nested, this makes debug output better readable.- Parameters:
logIndent- the indentation of log messages.
-
toString
-