com.ibm.tivoli.maximo.antivirus.impl.icap.result

Class ICAPInfection

  • java.lang.Object
    • com.ibm.tivoli.maximo.antivirus.impl.icap.result.ICAPInfection
  • All Implemented Interfaces:
    Infection


    public class ICAPInfection
    extends java.lang.Object
    implements Infection
    • Constructor Summary

      Constructors 
      Constructor and Description
      ICAPInfection() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Infection.RESOLUTION getResolution() 
      java.lang.String getThreat() 
      Infection.TYPE getType() 
      void setResolution(int resolution)
      This function takes care of the mapping from an integer to an actual enumeration for the "resolution" type...
      void setThreat(java.lang.String threat)
      This function stores the name of the threat, typically a virus name...
      void setType(int type)
      This function takes care of mapping from an integer to an actual enumeration for the infection type...
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ICAPInfection

        public ICAPInfection()
    • Method Detail

      • setType

        public void setType(int type)
                     throws ParsingException
        This function takes care of mapping from an integer to an actual enumeration for the infection type...
        Parameters:
        type - An integer representing the type of "infection"
        Throws:
        ParsingException - This is thrown when the integer does not map to a type
      • setResolution

        public void setResolution(int resolution)
                           throws ParsingException
        This function takes care of the mapping from an integer to an actual enumeration for the "resolution" type...
        Parameters:
        resolution - An integer representing the type of "resolution"
        Throws:
        ParsingException - This is thrown when the integer does not map to a resolution type
      • getThreat

        public java.lang.String getThreat()
        Specified by:
        getThreat in interface Infection
        Returns:
        The name of the threat, typically the virus name
      • setThreat

        public void setThreat(java.lang.String threat)
                       throws ParsingException
        This function stores the name of the threat, typically a virus name...
        Parameters:
        threat - A string representing the name of the threat
        Throws:
        ParsingException - Thrown for invalid input strings
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object