Class Part<C extends Content>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Part<C>
-
-
Field Summary
Fields Modifier and Type Field Description protected de.fraunhofer.iosb.ilt.frostserver.path.VersionbatchVersionprotected Ccontentprotected Map<String,String>headersprotected booleaninChangeSetprotected StringlogIndentprotected CoreSettingssettings
-
Constructor Summary
Constructors Constructor Description Part(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, CoreSettings settings, boolean inChangeSet, String logIndent)Creates a new Part.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CgetContent()Get the Content of this Part.StringgetHeader(String name)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.StringtoString()
-
-
-
Field Detail
-
settings
protected final CoreSettings settings
-
logIndent
protected String logIndent
-
inChangeSet
protected boolean inChangeSet
-
batchVersion
protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion
-
-
Constructor Detail
-
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 Detail
-
getHeader
public String getHeader(String name)
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
public C getContent()
Get the Content of this Part.- Returns:
- the Content of this Part.
-
setContent
public void setContent(C content)
Set the Content of this Part.- Parameters:
content- the Content of this Part.
-
setInChangeSet
public void setInChangeSet(boolean inChangeSet)
-
setLogIndent
public void setLogIndent(String logIndent)
Sets the indentation of log messages. Since Content can be nested, this makes debug output better readable.- Parameters:
logIndent- the indentation of log messages.
-
-