Class CitrusResourceWrapper.ResourceConverter

java.lang.Object
org.citrusframework.spi.CitrusResourceWrapper.ResourceConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.ConditionalConverter, org.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>
Enclosing class:
CitrusResourceWrapper

public static class CitrusResourceWrapper.ResourceConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>, org.springframework.core.convert.converter.ConditionalConverter
Spring bean converter implementation able to convert from Spring resource to Citrus resource implementation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.citrusframework.spi.Resource
    convert(org.springframework.core.io.Resource source)
     
    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

    • ResourceConverter

      public ResourceConverter()
  • Method Details

    • 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
    • convert

      public org.citrusframework.spi.Resource convert(org.springframework.core.io.Resource source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.springframework.core.io.Resource,org.citrusframework.spi.Resource>