Package io.apicurio.registry.util
Class ArtifactTypeUtil
- java.lang.Object
-
- io.apicurio.registry.util.ArtifactTypeUtil
-
public final class ArtifactTypeUtil extends Object
- Author:
- eric.wittmann@gmail.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArtifactTypedetermineArtifactType(ContentHandle content, ArtifactType xArtifactType, String contentType)Figures out the artifact type in the following order of precedent:
-
-
-
Method Detail
-
determineArtifactType
public static ArtifactType determineArtifactType(ContentHandle content, ArtifactType xArtifactType, String contentType)
Figures out the artifact type in the following order of precedent:1) The provided X-Registry-ArtifactType header 2) A hint provided in the Content-Type header 3) Determined from the content itself
- Parameters:
content- the contentxArtifactType- the artifact typect- content type from request API
-
-