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 |
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
ParsingExceptionpublic SocketInputStream getBody()
AVScannerResultgetBody in interface AVScannerResultpublic java.lang.String getHeaders()
AVScannerResultgetHeaders in interface AVScannerResultpublic Infection getInfectionFound() throws ParsingException
AVScannerResultgetInfectionFound in interface AVScannerResultParsingExceptionpublic GenericClientResponse.STATUS_CODES getServerStatus()
getServerStatus in interface AVScannerResultpublic AVScannerResult.STATUS getStatus()
AVScannerResultgetStatus in interface AVScannerResultpublic java.util.List getViolationsFound()
throws ParsingException
AVScannerResultgetViolationsFound in interface AVScannerResultParsingException