Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

oracle.mail.sdk.esmail
Class ScanTerm

java.lang.Object
  |
  +--javax.mail.search.SearchTerm
        |
        +--javax.mail.search.StringTerm
              |
              +--oracle.mail.sdk.esmail.ScanTerm

public class ScanTerm
extends javax.mail.search.StringTerm
See Also:
Serialized Form

Constructor Summary
ScanTerm(java.lang.String vendor, java.lang.String definition)
Construct a ScanTerm object.

Method Summary
java.lang.String getDefinition()
Retrieve the virus definition
java.lang.String getVendor()
Retrieve the vendor name
boolean match(javax.mail.Message msg)
Matching is not supported for runtime searching.
java.lang.String toString()
Prints the "SCANNEDBY" representation

Methods inherited from class javax.mail.search.StringTerm
equals, getIgnoreCase, getPattern, hashCode

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

ScanTerm

public ScanTerm(java.lang.String vendor,
                java.lang.String definition)
Construct a ScanTerm object.
Parameters:
vendor - the virus scanner vendor name
definition - the virus definition ID

Method Detail

getVendor

public java.lang.String getVendor()
Retrieve the vendor name
Returns:
virus scanner vendor name

getDefinition

public java.lang.String getDefinition()
Retrieve the virus definition
Returns:
virus definition ID string

match

public boolean match(javax.mail.Message msg)
Matching is not supported for runtime searching.
Overrides:
match in class javax.mail.search.SearchTerm
Parameters:
msg - the message object to be compared
Returns:
always return false

toString

public java.lang.String toString()
Prints the "SCANNEDBY" representation
Overrides:
toString in class java.lang.Object
Returns:
the string representation of the ScanTerm object

Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

Copyright © 1988, 2005, Oracle. All rights reserved.