Class ArtifactUriToReferenceConverter
java.lang.Object
com.netflix.spinnaker.kork.expressions.ArtifactUriToReferenceConverter
- All Implemented Interfaces:
org.springframework.expression.TypeConverter
public class ArtifactUriToReferenceConverter
extends Object
implements org.springframework.expression.TypeConverter
This converter is used to check if a String is a Artifact reference URI. If it is, this will then
pull the reference from the artifact store and return the reference back base64 encoded.
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactUriToReferenceConverter(com.netflix.spinnaker.kork.artifacts.artifactstore.ArtifactStore artifactStore) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(org.springframework.core.convert.TypeDescriptor sourceType, @NotNull org.springframework.core.convert.TypeDescriptor targetType) convertValue(Object value, org.springframework.core.convert.TypeDescriptor sourceType, @NotNull org.springframework.core.convert.TypeDescriptor targetType)
-
Constructor Details
-
ArtifactUriToReferenceConverter
public ArtifactUriToReferenceConverter(com.netflix.spinnaker.kork.artifacts.artifactstore.ArtifactStore artifactStore)
-
-
Method Details
-
canConvert
public boolean canConvert(org.springframework.core.convert.TypeDescriptor sourceType, @NotNull @NotNull org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
canConvertin interfaceorg.springframework.expression.TypeConverter
-
convertValue
public Object convertValue(Object value, org.springframework.core.convert.TypeDescriptor sourceType, @NotNull @NotNull org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convertValuein interfaceorg.springframework.expression.TypeConverter
-