Package org.citrusframework.spi
Class SpringResourceWrapper
java.lang.Object
org.citrusframework.spi.SpringResourceWrapper
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource,org.springframework.core.io.Resource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpring bean converter able to convert from Citrus resource to Spring resource implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongorg.springframework.core.io.ResourcecreateRelative(String relativePath) booleanexists()static SpringResourceWrapperfrom(org.citrusframework.spi.Resource resource) getFile()getURI()getURL()longMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.io.Resource
getContentAsByteArray, getContentAsString, isFile, isOpen, isReadable, readableChannel
-
Constructor Details
-
SpringResourceWrapper
public SpringResourceWrapper(org.citrusframework.spi.Resource delegate)
-
-
Method Details
-
from
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.core.io.Resource
-
getURL
- Specified by:
getURLin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getURI
- Specified by:
getURIin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
contentLength
- Specified by:
contentLengthin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
lastModified
- Specified by:
lastModifiedin interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
createRelative
- Specified by:
createRelativein interfaceorg.springframework.core.io.Resource- Throws:
IOException
-
getFilename
- Specified by:
getFilenamein interfaceorg.springframework.core.io.Resource
-
getDescription
- Specified by:
getDescriptionin interfaceorg.springframework.core.io.Resource
-
getInputStream
- Specified by:
getInputStreamin interfaceorg.springframework.core.io.InputStreamSource- Throws:
IOException
-