Class

net.scalytica.clammyscan

BaseScanParser

Related Doc: package clammyscan

Permalink

abstract class BaseScanParser extends ClammyScan

Linear Supertypes
ClammyScan, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseScanParser
  2. ClammyScan
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseScanParser(sys: ActorSystem, mat: Materializer, config: Configuration)

    Permalink

Abstract Value Members

  1. abstract def scan[A](save: ToSaveSink[A], remove: (A) ⇒ Unit)(implicit ec: ExecutionContext): ClamParser[A]

    Permalink

    Scans a file for virus and persists it with the save function.

    Scans a file for virus and persists it with the save function. By default, any infected files will be immediately removed using the remove function.

    Definition Classes
    ClammyScan
  2. abstract def scanOnly(implicit ec: ExecutionContext): ClamParser[Unit]

    Permalink

    Scans the file for virus without persisting.

    Scans the file for virus without persisting.

    Definition Classes
    ClammyScan
  3. abstract def scanWithTmpFile(implicit e: ExecutionContext): ClamParser[TemporaryFile]

    Permalink

    Scans file for virus and writes to a temporary file.

    Scans file for virus and writes to a temporary file.

    Definition Classes
    ClammyScan

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def broadcastGraph[A](c: ClamSink, s: SaveSink[A])(implicit e: ExecutionContext): Sink[ByteString, Future[ScannedBody[A]]]

    Permalink

    Graph that broadcasts each chunk from the incoming stream to both sinks, before materializing the result from both into a ScannedBody.

    Graph that broadcasts each chunk from the incoming stream to both sinks, before materializing the result from both into a ScannedBody.

    Attributes
    protected
  6. val cbpLogger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    ClammyScan
  7. val clamConfig: ClamConfig

    Permalink
    Definition Classes
    BaseScanParserClammyScan
  8. def clammySink(filename: String)(implicit ec: ExecutionContext): ClamSink

    Permalink

    Specifically sets up a ClamSink that is ready to receive the incoming stream.

    Specifically sets up a ClamSink that is ready to receive the incoming stream. Or one that is cancelled with success status.

    Controlled by the config property clammyscan.scanDisabled.

    Attributes
    protected
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def fileNameValid(filename: String): Boolean

    Permalink

    Will validate the filename based on the configured regular expression defined in application.conf.

    Will validate the filename based on the configured regular expression defined in application.conf.

    Attributes
    protected
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def handleError[A](fud: MultipartFormData[ScannedBody[A]], err: ClamError)(remove: ⇒ Unit)(implicit ec: ExecutionContext): Future[Either[Result, ClamMultipart[A]]]

    Permalink

    Function specifically for handling the ClamError cases in the validation step.

    Function specifically for handling the ClamError cases in the validation step. The logic here is highly dependent on how the parser is configured.

    Attributes
    protected
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. implicit val materializer: Materializer

    Permalink
    Definition Classes
    BaseScanParserClammyScan
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def sinks[A](filename: String, contentType: Option[String])(save: ToSaveSink[A])(implicit ec: ExecutionContext): (ClamSink, SaveSink[A])

    Permalink

    Determines the two sinks that are to be used for processing the stream.

    Determines the two sinks that are to be used for processing the stream. The function will try to validate the filename against the clammyscan.validFilenameRegex property if configured. In the case of an invalid filename, two cancelled sinks are returned.

    Attributes
    protected
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. implicit val system: ActorSystem

    Permalink
    Definition Classes
    BaseScanParserClammyScan
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ClammyScan

Inherited from AnyRef

Inherited from Any

Ungrouped