Class TestFileInitializer
java.lang.Object
org.eclipse.jetty.start.FileInitializer
org.eclipse.jetty.start.fileinits.TestFileInitializer
In a start testing scenario, it is often not important to actually download
or initialize a file, this implementation is merely a no-op for the
FileInitializer
-
Field Summary
Fields inherited from class org.eclipse.jetty.start.FileInitializer
_basehome, _scheme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Initialize a file resourceboolean
isApplicable
(URI uri) Methods inherited from class org.eclipse.jetty.start.FileInitializer
check, copyDirectory, getDestination, isFilePresent
-
Constructor Details
-
TestFileInitializer
-
-
Method Details
-
isApplicable
- Overrides:
isApplicable
in classFileInitializer
-
create
Description copied from class:FileInitializer
Initialize a file resource- Specified by:
create
in classFileInitializer
- Parameters:
uri
- the URI of the resource acting as its sourcelocation
- the simple string reference to the output file, suitable for searching for the file in other locations (like ${jetty.home} or ${jetty.dir}) *- Returns:
- true if local file system is modified.
- Throws:
IOException
- if there was an attempt to initialize, but an error occurred.
-