Class StringToResourceConverter

java.lang.Object
org.citrusframework.spi.StringToResourceConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter, org.springframework.core.convert.converter.Converter<String,org.citrusframework.spi.Resource>

public class StringToResourceConverter extends Object implements org.springframework.core.convert.converter.Converter<String,org.citrusframework.spi.Resource>, org.springframework.core.convert.converter.ConditionalConverter
Spring bean converter able to construct proper Citrus resource object from given file path as String.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.citrusframework.spi.Resource
    convert(String filePath)
     
    boolean
    matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • StringToResourceConverter

      public StringToResourceConverter()
  • Method Details

    • convert

      public org.citrusframework.spi.Resource convert(String filePath)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,org.citrusframework.spi.Resource>
    • matches

      public boolean matches(org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
      Specified by:
      matches in interface org.springframework.core.convert.converter.ConditionalConverter