Package jetbrains.buildServer.serverSide
Class SAXBasedDataFetcher
- java.lang.Object
-
- jetbrains.buildServer.serverSide.SAXBasedDataFetcher
-
- All Implemented Interfaces:
ProjectDataFetcher
,ServerExtension
,TeamCityExtension
public abstract class SAXBasedDataFetcher extends java.lang.Object implements ProjectDataFetcher
Base class for data fetchers retrieving data from single XML file. This implementation uses SAX to parse XML file, and notifies subclass about all found elements.- Since:
- 8.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SAXBasedDataFetcher.FileContentHandler
-
Constructor Summary
Constructors Constructor Description SAXBasedDataFetcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract SAXBasedDataFetcher.FileContentHandler
createContentHandler()
java.util.List<DataItem>
retrieveData(Browser fsBrowser, java.lang.String projectFilePath)
Retrieves project data associated with specified file path.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.ProjectDataFetcher
getType
-
-
-
-
Method Detail
-
retrieveData
@NotNull public java.util.List<DataItem> retrieveData(@NotNull Browser fsBrowser, @NotNull java.lang.String projectFilePath)
Description copied from interface:ProjectDataFetcher
Retrieves project data associated with specified file path. File path can point to build.xml, make file, IDEA project directory, etc- Specified by:
retrieveData
in interfaceProjectDataFetcher
- Parameters:
fsBrowser
- file system browserprojectFilePath
- project file path, depending on the type of extension, it can be path to build file, path to project root, or some other data- Returns:
- list of data items
DataItem
-
createContentHandler
@NotNull protected abstract SAXBasedDataFetcher.FileContentHandler createContentHandler()
-
-