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

    Constructors
    Constructor
    Description
    ArtifactUriToReferenceConverter(com.netflix.spinnaker.kork.artifacts.artifactstore.ArtifactStore artifactStore)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canConvert(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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      canConvert in interface org.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:
      convertValue in interface org.springframework.expression.TypeConverter