xyz.capybara.clamav.commands.Ping.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 Ping : Command() {
override val commandString: String
get() = "PING"
override val format: Command.CommandFormat
get() = Command.CommandFormat.NULL_CHAR
override fun parseResponse(responseString: String): Unit {
if (responseString != "PONG") {
throw InvalidResponseException(responseString)
}
logger.debug(responseString)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy