xyz.capybara.clamav.commands.Reload.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clamav-client Show documentation
Show all versions of clamav-client Show documentation
Java Client for the ClamAV antivirus service.
package xyz.capybara.clamav.commands
import xyz.capybara.clamav.InvalidResponseException
object Reload : Command() {
override val commandString: String
get() = "RELOAD"
override val format: Command.CommandFormat
get() = Command.CommandFormat.NULL_CHAR
override fun parseResponse(responseString: String): Unit {
if (responseString != "RELOADING") {
throw InvalidResponseException(responseString)
}
logger.info("Reloading the virus databases")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy