Package org.projectnessie.model.types
Class GenericContent
java.lang.Object
org.projectnessie.model.Content
org.projectnessie.model.types.GenericContent
Special
Content reserved for cases when the actual content type
is not available.
Nessie servers cannot properly handle unknown content types, but
with this "fallback" clients can at least deserialize the content object and do not fail hard /
error out.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projectnessie.model.Content
Content.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GenericContentabstract StringgetId()Unique id for this object.abstract Content.TypegetType()Returns theContent.Typevalue for this content object.
-
Constructor Details
-
GenericContent
public GenericContent()
-
-
Method Details
-
getType
Description copied from class:ContentReturns theContent.Typevalue for this content object.The name of the returned value should match the JSON type name used for serializing the content object.
-
getId
Description copied from class:ContentUnique id for this object.This id is unique for the entire lifetime of this Content object and persists across renames. Two content objects with the same key will have different id.
-
getAttributes
-
contentUnknownType
-