A B C D E F G H I J L M N O P R S T U W X

A

accept(File, String) - Method in class org.apache.james.util.io.DirectoryFileFilter
 
accept(File, String) - Method in class org.apache.james.util.io.ExtensionFileFilter
 
addHam(Reader) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Adds a message to the ham list.
addIPAddress(String) - Static method in class org.apache.james.util.POP3BeforeSMTPHelper
Add the ipAddress to the authorized ipAddresses
addSpam(Reader) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Adds a message to the spam list.

B

Base64 - Class in org.apache.james.util.codec
Performs simple Base64 encoding and decode suitable for authentication.
Base64() - Constructor for class org.apache.james.util.codec.Base64
 
BayesianAnalyzer - Class in org.apache.james.util.bayesian
Determines probability that text contains Spam.
BayesianAnalyzer() - Constructor for class org.apache.james.util.bayesian.BayesianAnalyzer
Basic class constructor.
buildCorpus() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Builds the corpus from the existing ham & spam counts.

C

canI(Object) - Method in class org.apache.james.util.Lock
Check to see if we can lock on a given object.
CharTerminatedInputStream - Class in org.apache.james.util.stream
An InputStream class that terminates the stream when it encounters a particular byte sequence.
CharTerminatedInputStream(InputStream, char[]) - Constructor for class org.apache.james.util.stream.CharTerminatedInputStream
A constructor for this object that takes a stream to be wrapped and a terminating character sequence.
checkCRLFTerminator() - Method in class org.apache.james.util.stream.CRLFOutputStream
Ensure that the stream is CRLF terminated.
ClassLoaderObjectInputStream - Class in org.apache.james.util.io
A special ObjectInputStream to handle highly transient classes hosted by Avalon components that are juggling many classloaders.
ClassLoaderObjectInputStream(ClassLoader, InputStream) - Constructor for class org.apache.james.util.io.ClassLoaderObjectInputStream
 
clear() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Clears all analysis repositories and counters.
clearIP() - Static method in class org.apache.james.util.POP3BeforeSMTPHelper
Remove all ipAddresses from the authorized map
close() - Method in class org.apache.james.util.stream.DebugInputStream
 
close() - Method in class org.apache.james.util.stream.DisposeOnCloseInputStream
Close the wrapped InputStream and dispose it
closeJDBCConnection(Connection) - Method in class org.apache.james.util.sql.JDBCUtil
Closes database connection and logs if an error is encountered
closeJDBCResultSet(ResultSet) - Method in class org.apache.james.util.sql.JDBCUtil
Closes database result set and logs if an error is encountered
closeJDBCStatement(Statement) - Method in class org.apache.james.util.sql.JDBCUtil
Closes database statement and logs if an error is encountered
columnExists(DatabaseMetaData, String, String) - Method in class org.apache.james.util.sql.JDBCUtil
Checks database metadata to see if a column exists in a table Try UPPER, lower, and MixedCase, both on the table name and the column name, to see if the column is there.
columnExistsCaseSensitive(DatabaseMetaData, String, String) - Method in class org.apache.james.util.sql.JDBCUtil
Checks database metadata to see if a column exists in a table.
computeSpamProbability(Reader) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Computes the probability that the stream contains SPAM.
contains(InetAddress) - Method in class org.apache.james.util.inetnetwork.model.Inet4Network
 
contains(InetAddress) - Method in class org.apache.james.util.inetnetwork.model.Inet6Network
 
contains(InetAddress) - Method in interface org.apache.james.util.inetnetwork.model.InetNetwork
Return true if the network contains the given name
CRLFOutputStream - Class in org.apache.james.util.stream
A Filter for use with SMTP or other protocols in which lines must end with CRLF.
CRLFOutputStream(OutputStream) - Constructor for class org.apache.james.util.stream.CRLFOutputStream
Constructor that wraps an OutputStream.

D

DATABASE_LOCK - Static variable in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Public object representing a lock on database activity.
DebugInputStream - Class in org.apache.james.util.stream
Reads data off a stream, printing every byte read to System.err.
DebugInputStream(InputStream) - Constructor for class org.apache.james.util.stream.DebugInputStream
Constructor that takes an InputStream to be wrapped.
decode(String) - Static method in class org.apache.james.util.codec.Base64
Decode base64 encoded String
decodeAsString(String) - Static method in class org.apache.james.util.codec.Base64
Decode base64 encoded String
delegatedLog(String) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
An abstract method which child classes override to handle logging of errors in their particular environments.
delegatedLog(String) - Method in class org.apache.james.util.sql.JDBCUtil
An abstract method which child classes override to handle logging of errors in their particular environments.
DirectoryFileFilter - Class in org.apache.james.util.io
This filter accepts Files that are directories.
DirectoryFileFilter() - Constructor for class org.apache.james.util.io.DirectoryFileFilter
 
DisposableFileInputStream - Class in org.apache.james.util.stream
FileInputStream which offers a method to dispose the underlying File
DisposableFileInputStream(File) - Constructor for class org.apache.james.util.stream.DisposableFileInputStream
 
dispose() - Method in class org.apache.james.util.stream.DisposableFileInputStream
Dispose file
DisposeOnCloseInputStream - Class in org.apache.james.util.stream
FilterInputStream which dispose wrapped InputStream after close is called
DisposeOnCloseInputStream(InputStream) - Constructor for class org.apache.james.util.stream.DisposeOnCloseInputStream
 

E

encode(String) - Static method in class org.apache.james.util.codec.Base64
Encode String to base64
encodeAsString(String) - Static method in class org.apache.james.util.codec.Base64
Encode String to base64
equals(Object) - Method in class org.apache.james.util.inetnetwork.model.Inet4Network
 
equals(Object) - Method in class org.apache.james.util.inetnetwork.model.Inet6Network
 
EXPIRE_TIME - Static variable in class org.apache.james.util.POP3BeforeSMTPHelper
Default expire time in ms (1 hour)
ExtensionFileFilter - Class in org.apache.james.util.io
This filters files based on the extension (what the filename ends with).
ExtensionFileFilter(String[]) - Constructor for class org.apache.james.util.io.ExtensionFileFilter
 
ExtensionFileFilter(String) - Constructor for class org.apache.james.util.io.ExtensionFileFilter
 
ExtraDotOutputStream - Class in org.apache.james.util.stream
Adds extra dot if dot occurs in message body at beginning of line (according to RFC1939) Compare also org.apache.james.smtpserver.SMTPInputStream
ExtraDotOutputStream(OutputStream) - Constructor for class org.apache.james.util.stream.ExtraDotOutputStream
Constructor that wraps an OutputStream.

F

FLAG_MAIL_ATTRIBUTE_NAME - Static variable in class org.apache.james.util.scanner.SpamAssassinInvoker
The mail attribute under which the flag get stored

G

getCorpus() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public getter for corpus.
getDbOption(String) - Method in class org.apache.james.util.sql.SqlResources
Returns the dbOption string value set for the specified dbOption name.
getFromString(String) - Method in class org.apache.james.util.inetnetwork.InetNetworkBuilder
Creates a InetNetwork for the given String.
getHamMessageCount() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public getter for hamMessageCount.
getHamTokenCounts() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public getter for the hamTokenCounts Map.
getHeadersAsAttribute() - Method in class org.apache.james.util.scanner.SpamAssassinInvoker
Return the headers as attributes which spamd generates
getHits() - Method in class org.apache.james.util.scanner.SpamAssassinInvoker
Return the hits which was returned by spamd
getInputStream() - Method in class org.apache.james.util.stream.MessageStream
Return the DisposeOnCloseInputStream of the temporary file
getLastDatabaseUpdateTime() - Static method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Getter for static lastDatabaseUpdateTime.
getMilliSeconds(long, String) - Static method in class org.apache.james.util.TimeConverter
Helper method to get the milliseconds for the given amount and unit
getMilliSeconds(String) - Static method in class org.apache.james.util.TimeConverter
Helper method to get the milliseconds for the given rawstring.
getOutputStream() - Method in class org.apache.james.util.stream.MessageStream
Return the OutputStream of the temporary file
getRequiredHits() - Method in class org.apache.james.util.scanner.SpamAssassinInvoker
Return the required hits
getSpamMessageCount() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public getter for spamMessageCount.
getSpamTokenCounts() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public getter for the spamTokenCounts Map.
getSqlFileName() - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Getter for property sqlFileName.
getSqlParameters() - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Getter for property sqlParameters.
getSqlString(String) - Method in class org.apache.james.util.sql.SqlResources
Returns a named SQL string for the specified connection, replacing parameters with the values set.
getSqlString(String, boolean) - Method in class org.apache.james.util.sql.SqlResources
Returns a named SQL string for the specified connection, replacing parameters with the values set.
getString(String) - Method in class org.apache.james.util.XMLResources
Returns a named string for the specified key.
getString(String, boolean) - Method in class org.apache.james.util.XMLResources
Returns a named string for the specified key.
getString(String, Map) - Method in class org.apache.james.util.XMLResources
Returns a named string, replacing parameters with the values set in a Map.
getString(String, Map, boolean) - Method in class org.apache.james.util.XMLResources
Returns a named string, replacing parameters with the values set in a Map.

H

hashCode() - Method in class org.apache.james.util.inetnetwork.model.Inet4Network
 
hashCode() - Method in class org.apache.james.util.inetnetwork.model.Inet6Network
Return hashCode representation of this class

I

Inet4Network - Class in org.apache.james.util.inetnetwork.model
 
Inet4Network(InetAddress, InetAddress) - Constructor for class org.apache.james.util.inetnetwork.model.Inet4Network
You need a IP address and an subnetmask to construct an Inet4Network.
Inet6Network - Class in org.apache.james.util.inetnetwork.model
 
Inet6Network(InetAddress, Integer) - Constructor for class org.apache.james.util.inetnetwork.model.Inet6Network
You need a IP address (InetAddress) and an subnetmask (Integer) to construct an Inet6Network.
InetNetwork - Interface in org.apache.james.util.inetnetwork.model
An InetNetwork represents a IPv4 or IPv6 address with a subnet mask.
InetNetworkBuilder - Class in org.apache.james.util.inetnetwork
Builds a InetNetwork (Inet4Network or Inet6Network) in function on the provided string pattern that represents a subnet.
InetNetworkBuilder(DNSService) - Constructor for class org.apache.james.util.inetnetwork.InetNetworkBuilder
Constructs a InetNetwork.
init(File, String, Connection, Map<String, String>) - Method in class org.apache.james.util.sql.SqlResources
Configures a DbResources object to provide SQL statements from a file.
init(InputStream, String, Connection, Map<String, String>) - Method in class org.apache.james.util.sql.SqlResources
Configures a DbResources object to provide SQL statements from an InputStream.
init(Document, String, Connection, Map<String, String>) - Method in class org.apache.james.util.sql.SqlResources
Configures a SqlResources object from an xml document.
init(File, String, String, Map) - Method in class org.apache.james.util.XMLResources
Configures an XMLResources object to provide string statements from a file.
initSqlQueries(Connection, File) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Initializes the sql query environment from the SqlResources file.
InternetPrintWriter - Class in org.apache.james.util
Writes to a wrapped Writer class, ensuring that all line separators are '\r\n', regardless of platform.
InternetPrintWriter(Writer) - Constructor for class org.apache.james.util.InternetPrintWriter
Constructor that takes a writer to wrap.
InternetPrintWriter(Writer, boolean) - Constructor for class org.apache.james.util.InternetPrintWriter
Constructor that takes a writer to wrap.
InternetPrintWriter(OutputStream) - Constructor for class org.apache.james.util.InternetPrintWriter
Constructor that takes a stream to wrap.
InternetPrintWriter(OutputStream, boolean) - Constructor for class org.apache.james.util.InternetPrintWriter
Constructor that takes a stream to wrap.
ipMap - Static variable in class org.apache.james.util.POP3BeforeSMTPHelper
The map in which the ipAddresses and timestamp stored
isAuthorized(String) - Static method in class org.apache.james.util.POP3BeforeSMTPHelper
Return true if the ip is authorized to relay
isLocked(Object) - Method in class org.apache.james.util.Lock
Check to see if the object is locked
isV6(String) - Static method in class org.apache.james.util.inetnetwork.InetNetworkBuilder
Returns true if the string parameters is a IPv6 pattern.

J

JDBCBayesianAnalyzer - Class in org.apache.james.util.bayesian
Manages the persistence of the spam bayesian analysis corpus using a JDBC database.
JDBCBayesianAnalyzer() - Constructor for class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Default constructor.
JDBCUtil - Class in org.apache.james.util.sql
Helper class for managing common JDBC tasks.
JDBCUtil() - Constructor for class org.apache.james.util.sql.JDBCUtil
 

L

LAST_WAS_CR - Static variable in class org.apache.james.util.stream.CRLFOutputStream
 
LAST_WAS_LF - Static variable in class org.apache.james.util.stream.CRLFOutputStream
 
LAST_WAS_OTHER - Static variable in class org.apache.james.util.stream.CRLFOutputStream
 
loadHamNSpam(Connection) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Loads the token frequencies from the database.
Lock - Class in org.apache.james.util
Provides Lock functionality
Lock() - Constructor for class org.apache.james.util.Lock
 
lock(Object) - Method in class org.apache.james.util.Lock
Lock on a given object.
log(String) - Method in class org.apache.james.util.netmatcher.NetMatcher
Can be overwritten for logging

M

matchInetNetwork(String) - Method in class org.apache.james.util.netmatcher.NetMatcher
The given String may represent an IP address or a host name.
matchInetNetwork(InetAddress) - Method in class org.apache.james.util.netmatcher.NetMatcher
Return true if passed InetAddress match a network which was used to construct the Netmatcher.
MessageStream - Class in org.apache.james.util.stream
Helper class to write to temporary file for transfer data.
MessageStream() - Constructor for class org.apache.james.util.stream.MessageStream
Create new MessageStream on a temporary File

N

NetMatcher - Class in org.apache.james.util.netmatcher
NetMatcher Class is used to check if an ipAddress match a network.
NetMatcher(String[], DNSService) - Constructor for class org.apache.james.util.netmatcher.NetMatcher
Create a new instance of Netmatcher.
NetMatcher(Collection<String>, DNSService) - Constructor for class org.apache.james.util.netmatcher.NetMatcher
Create a new instance of Netmatcher.

O

org.apache.james.util - package org.apache.james.util
 
org.apache.james.util.bayesian - package org.apache.james.util.bayesian
 
org.apache.james.util.codec - package org.apache.james.util.codec
 
org.apache.james.util.inetnetwork - package org.apache.james.util.inetnetwork
 
org.apache.james.util.inetnetwork.model - package org.apache.james.util.inetnetwork.model
 
org.apache.james.util.io - package org.apache.james.util.io
 
org.apache.james.util.netmatcher - package org.apache.james.util.netmatcher
 
org.apache.james.util.scanner - package org.apache.james.util.scanner
 
org.apache.james.util.sql - package org.apache.james.util.sql
 
org.apache.james.util.stream - package org.apache.james.util.stream
 

P

POP3BeforeSMTPHelper - Class in org.apache.james.util
Helper class which is used to store ipAddresses and timestamps for pop before smtp support.
println() - Method in class org.apache.james.util.InternetPrintWriter
Print a line separator.
println(boolean) - Method in class org.apache.james.util.InternetPrintWriter
Print a boolean followed by a line separator.
println(char) - Method in class org.apache.james.util.InternetPrintWriter
Print a char followed by a line separator.
println(int) - Method in class org.apache.james.util.InternetPrintWriter
Print a int followed by a line separator.
println(long) - Method in class org.apache.james.util.InternetPrintWriter
Print a long followed by a line separator.
println(float) - Method in class org.apache.james.util.InternetPrintWriter
Print a float followed by a line separator.
println(double) - Method in class org.apache.james.util.InternetPrintWriter
Print a double followed by a line separator.
println(char[]) - Method in class org.apache.james.util.InternetPrintWriter
Print a character array followed by a line separator.
println(String) - Method in class org.apache.james.util.InternetPrintWriter
Print a String followed by a line separator.
println(Object) - Method in class org.apache.james.util.InternetPrintWriter
Print an Object followed by a line separator.

R

read() - Method in class org.apache.james.util.stream.CharTerminatedInputStream
Read a byte off this stream.
read() - Method in class org.apache.james.util.stream.DebugInputStream
Read a byte off the stream
removeExpiredIP() - Static method in class org.apache.james.util.POP3BeforeSMTPHelper
 
removeExpiredIP(long) - Static method in class org.apache.james.util.POP3BeforeSMTPHelper
Remove all ipAddress from the authorized map which are older then the given time
replaceParameters(String, Map) - Static method in class org.apache.james.util.XMLResources
Returns a named string, replacing parameters with the values set.
resetData(Connection) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Reset all trained data
resolveClass(ObjectStreamClass) - Method in class org.apache.james.util.io.ClassLoaderObjectInputStream
 

S

scanMail(MimeMessage) - Method in class org.apache.james.util.scanner.SpamAssassinInvoker
Scan a MimeMessage for spam by passing it to spamd.
setCorpus(Map) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public setter for corpus.
setHamMessageCount(int) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public setter for hamMessageCount.
setHamTokenCounts(Map) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public setter for the hamTokenCounts Map.
setSpamMessageCount(int) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public setter for spamMessageCount.
setSpamTokenCounts(Map) - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Public setter for the spamTokenCounts Map.
setSqlFileName(String) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Setter for property sqlFileName.
setSqlParameters(Map) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Setter for property sqlParameters.
SpamAssassinInvoker - Class in org.apache.james.util.scanner
Sends the message through daemonized SpamAssassin (spamd), visit SpamAssassin.org for info on configuration.
SpamAssassinInvoker(String, int) - Constructor for class org.apache.james.util.scanner.SpamAssassinInvoker
Init the spamassassin invoker
SqlResources - Class in org.apache.james.util.sql
Provides a set of SQL String resources (eg SQL Strings) to use for a database connection.
SqlResources() - Constructor for class org.apache.james.util.sql.SqlResources
 
startOfLine - Variable in class org.apache.james.util.stream.CRLFOutputStream
 
STATUS_MAIL_ATTRIBUTE_NAME - Static variable in class org.apache.james.util.scanner.SpamAssassinInvoker
The mail attribute under which the status get stored
statusLast - Variable in class org.apache.james.util.stream.CRLFOutputStream
Counter for number of last (0A or 0D).

T

tableExists(DatabaseMetaData, String) - Method in class org.apache.james.util.sql.JDBCUtil
Checks database metadata to see if a table exists.
tableExistsCaseSensitive(DatabaseMetaData, String) - Method in class org.apache.james.util.sql.JDBCUtil
Checks database metadata to see if a table exists.
TimeConverter - Class in org.apache.james.util
 
tokenCountsClear() - Method in class org.apache.james.util.bayesian.BayesianAnalyzer
Clears token counters.
toString() - Method in class org.apache.james.util.inetnetwork.model.Inet4Network
 
toString() - Method in class org.apache.james.util.inetnetwork.model.Inet6Network
Return String representation of this class.
toString() - Method in class org.apache.james.util.netmatcher.NetMatcher
 
touchLastDatabaseUpdateTime() - Static method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Sets static lastDatabaseUpdateTime to System.currentTimeMillis().

U

unlock(Object) - Method in class org.apache.james.util.Lock
Release the lock on a given object.
updateHamTokens(Connection) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Updates the database with new "ham" token frequencies.
updateSpamTokens(Connection) - Method in class org.apache.james.util.bayesian.JDBCBayesianAnalyzer
Updates the database with new "spam" token frequencies.

W

write(int) - Method in class org.apache.james.util.stream.CRLFOutputStream
Writes a byte to the stream Fixes any naked CR or LF to the RFC 2821 mandated CFLF pairing.
write(byte[], int, int) - Method in class org.apache.james.util.stream.CRLFOutputStream
 
write(int) - Method in class org.apache.james.util.stream.ExtraDotOutputStream
Writes a byte to the stream, adding dots where appropriate.
writeChunk(byte[], int, int) - Method in class org.apache.james.util.stream.CRLFOutputStream
Provides an extension point for ExtraDotOutputStream to be able to add dots at the beginning of new lines.
writeChunk(byte[], int, int) - Method in class org.apache.james.util.stream.ExtraDotOutputStream
Overrides super writeChunk in order to add a "." if the previous chunk ended with a new line and a new chunk starts with "."

X

XMLResources - Class in org.apache.james.util
 
XMLResources() - Constructor for class org.apache.james.util.XMLResources
 

A B C D E F G H I J L M N O P R S T U W X

Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.