public class ICAPResult extends java.lang.Object implements AVScannerResult
AVScannerResult.STATUS
Constructor and Description |
---|
ICAPResult(GenericClientResponse response) |
Modifier and Type | Method and Description |
---|---|
SocketInputStream |
getBody()
The stream which contains the actual file, its not always "define" on if there will
be an actual stream back from the Antivirus so this might result in an null being returned
|
java.lang.String |
getHeaders()
The "Headers" which contains the Antivirus specific information/details.
|
Infection |
getInfectionFound()
Returns back the infection information if there was any.
|
GenericClientResponse.STATUS_CODES |
getServerStatus() |
AVScannerResult.STATUS |
getStatus()
The result from the scanner.
|
java.util.List<Violation> |
getViolationsFound()
A list of violations, there possibly can be more than one violation returned from
the virus scanner, such as "infected, and policy violation" for example.
|
public ICAPResult(GenericClientResponse response) throws ParsingException
ParsingException
public SocketInputStream getBody()
AVScannerResult
getBody
in interface AVScannerResult
public java.lang.String getHeaders()
AVScannerResult
getHeaders
in interface AVScannerResult
public Infection getInfectionFound() throws ParsingException
AVScannerResult
getInfectionFound
in interface AVScannerResult
ParsingException
public GenericClientResponse.STATUS_CODES getServerStatus()
getServerStatus
in interface AVScannerResult
public AVScannerResult.STATUS getStatus()
AVScannerResult
getStatus
in interface AVScannerResult
public java.util.List<Violation> getViolationsFound() throws ParsingException
AVScannerResult
getViolationsFound
in interface AVScannerResult
ParsingException