infoservice.mailsystem.forwarder
Class MailForwarder

java.lang.Object
  extended by infoservice.mailsystem.forwarder.MailForwarder

public class MailForwarder
extends java.lang.Object

This class reads a mail from the input pipe and forwards it to the mailsystem main process. The port where the main process is listening is read from the configuration file specified in the command line.


Field Summary
private static int BUFFER_SIZE
          This is the size of the buffer in bytes used when reading the mail from the input pipe and forwarding it to the main process.
private static java.lang.String DEFAULT_CONFIG_FILE
          This is the default name and location of the mailsystem configuration file.
 
Constructor Summary
MailForwarder()
           
 
Method Summary
static void main(java.lang.String[] a_args)
          The main method for the mailsystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG_FILE

private static final java.lang.String DEFAULT_CONFIG_FILE
This is the default name and location of the mailsystem configuration file. As default we look in the current path for the "mailsystem.conf" file.

See Also:
Constant Field Values

BUFFER_SIZE

private static final int BUFFER_SIZE
This is the size of the buffer in bytes used when reading the mail from the input pipe and forwarding it to the main process.

See Also:
Constant Field Values
Constructor Detail

MailForwarder

public MailForwarder()
Method Detail

main

public static void main(java.lang.String[] a_args)
                 throws java.lang.Exception
The main method for the mailsystem. The following command-line options are supported at the moment: -config FILENAME, which uses the specified filename as configuration file.

Parameters:
a_args - The command-line options.
Throws:
java.lang.Exception