trait ToolDataProvider[DataTypes] extends Closeable
An abstraction of a tool "report".
Most tool reports will either be a File, or an API endpoint that can be accessed somewhere. Some tool reports have "extra data" that is referenced by the main report that needs to be looked up via some separate mechanism. Some tool reports may be comprised of multiple files.
A tool reader generally will want to iterate the "primary entry points" of a report, and as it reads through the report data, it may need to look up some "supporting" information.
- DataTypes
This type parameter represents the possible "extra data" records that may be requested. For example, Veracode has "Flow Data" that needs to be accessed separately.
- Alphabetic
- By Inheritance
- ToolDataProvider
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
close(): Unit
- Definition Classes
- Closeable → AutoCloseable
- Annotations
- @throws( classOf[java.io.IOException] )
-
abstract
def
get(dataType: DataTypes): Task[Option[ToolData]]
Return a task that knows how to acquire a given entry, as specified by the
dataType
.Return a task that knows how to acquire a given entry, as specified by the
dataType
. For tools that don't support -
abstract
def
getPrimaryEntries: Iterant[Task, ContextedToolData]
Return a stream of
ToolData
s that represent the primary entry point(s) of a tool report.Return a stream of
ToolData
s that represent the primary entry point(s) of a tool report. For tool readers, this will typically be a File, or an entry in a Zip File. For tool connectors, this will typically be the body of an HTTP response.- returns
A stream representing the possibly-multiple primary entry points of a tool report.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
closeT: Task[Unit]
- returns
A task that, when run, will close this ToolDataProvider.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()