Package com.avoka.fc.core.service.impl
Class SSEVirusScanService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.impl.SSEVirusScanService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IVirusScanService
public class SSEVirusScanService extends BaseService implements IVirusScanService, IServiceDefinitionAware
Provides an Symantec Scan Engine Virus Scan Service.
-
-
Constructor Summary
Constructors Constructor Description SSEVirusScanService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceDefinition
getServiceDefinition()
Return the service definition for the service.boolean
isFileVirusFree(String filename, byte[] fileData)
Scan the provided file and return true if virus free.void
setServiceDefinition(ServiceDefinition serviceDefinition)
Set the service definition for the service.-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
isFileVirusFree
public boolean isFileVirusFree(String filename, byte[] fileData) throws VirusScanException
Scan the provided file and return true if virus free.- Specified by:
isFileVirusFree
in interfaceIVirusScanService
- Parameters:
filename
- the name of the file to scanfileData
- the file data- Returns:
- true if the file is virus free
- Throws:
VirusScanException
- if there occurs a virus scan service configuration error- See Also:
IVirusScanService.isFileVirusFree(String, byte[])
-
getServiceDefinition
public ServiceDefinition getServiceDefinition()
Return the service definition for the service.- Specified by:
getServiceDefinition
in interfaceIServiceDefinitionAware
- Returns:
- the service definition for the service.
- See Also:
IServiceDefinitionAware.getServiceDefinition()
-
setServiceDefinition
public void setServiceDefinition(ServiceDefinition serviceDefinition)
Set the service definition for the service.- Specified by:
setServiceDefinition
in interfaceIServiceDefinitionAware
- Parameters:
serviceDefinition
- the service definition for the service.- See Also:
IServiceDefinitionAware.setServiceDefinition(ServiceDefinition)
-
-