Class TestFileInitializer
- java.lang.Object
-
- org.eclipse.jetty.start.FileInitializer
-
- org.eclipse.jetty.start.fileinits.TestFileInitializer
-
public class TestFileInitializer extends FileInitializer
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 theFileInitializer
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.start.FileInitializer
_basehome, _scheme
-
-
Constructor Summary
Constructors Constructor Description TestFileInitializer(BaseHome basehome)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
create(java.net.URI uri, java.lang.String location)
Initialize a file resourceboolean
isApplicable(java.net.URI uri)
-
Methods inherited from class org.eclipse.jetty.start.FileInitializer
check, copyDirectory, download, getDestination, isFilePresent
-
-
-
-
Constructor Detail
-
TestFileInitializer
public TestFileInitializer(BaseHome basehome)
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.net.URI uri)
- Overrides:
isApplicable
in classFileInitializer
-
create
public boolean create(java.net.URI uri, java.lang.String location) throws java.io.IOException
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:
java.io.IOException
- if there was an attempt to initialize, but an error occurred.
-
-