Class ClasspathFileSource
java.lang.Object
com.github.tomakehurst.wiremock.common.ClasspathFileSource
- All Implemented Interfaces:
FileSource
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathFileSource(Class<?> classpath, String path) ClasspathFileSource(ClassLoader classLoader, String path) ClasspathFileSource(String path) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteFile(String name) booleanexists()getBinaryFileNamed(String name) getPath()getTextFileNamed(String name) getUri()voidwriteBinaryFile(String name, byte[] contents) voidwriteTextFile(String name, String contents)
-
Constructor Details
-
ClasspathFileSource
-
ClasspathFileSource
-
ClasspathFileSource
-
-
Method Details
-
getBinaryFileNamed
- Specified by:
getBinaryFileNamedin interfaceFileSource
-
getTextFileNamed
- Specified by:
getTextFileNamedin interfaceFileSource
-
createIfNecessary
public void createIfNecessary()- Specified by:
createIfNecessaryin interfaceFileSource
-
child
- Specified by:
childin interfaceFileSource
-
getPath
- Specified by:
getPathin interfaceFileSource
-
getUri
- Specified by:
getUriin interfaceFileSource
-
listFilesRecursively
- Specified by:
listFilesRecursivelyin interfaceFileSource
-
writeTextFile
- Specified by:
writeTextFilein interfaceFileSource
-
writeBinaryFile
- Specified by:
writeBinaryFilein interfaceFileSource
-
exists
public boolean exists()- Specified by:
existsin interfaceFileSource
-
deleteFile
- Specified by:
deleteFilein interfaceFileSource
-