infoservice.mailsystem.central.commands
Class GetForwarderCommand

java.lang.Object
  extended by infoservice.mailsystem.central.AbstractMailSystemCommand
      extended by infoservice.mailsystem.central.commands.GetForwarderCommand

public class GetForwarderCommand
extends AbstractMailSystemCommand

This is the implementation for generating a reply message for the GetForwarder command.


Constructor Summary
GetForwarderCommand(MailMessages a_localization)
          Creates a new instance of GetForwarderCommand.
 
Method Summary
 void createReplyMessage(javax.mail.internet.MimeMessage a_receivedMessage, javax.mail.internet.MimeMessage a_replyMessage)
          Creates the response for the GetForwarder command.
 
Methods inherited from class infoservice.mailsystem.central.AbstractMailSystemCommand
getLocalization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetForwarderCommand

public GetForwarderCommand(MailMessages a_localization)
Creates a new instance of GetForwarderCommand.

Parameters:
a_localization - The MailMessages instance with the localization to use when creating the response message.
Method Detail

createReplyMessage

public void createReplyMessage(javax.mail.internet.MimeMessage a_receivedMessage,
                               javax.mail.internet.MimeMessage a_replyMessage)
                        throws java.lang.Exception
Creates the response for the GetForwarder command. We connect to the infoservices in the InfoServiceDatabase and try to fetch a forwarder.

Specified by:
createReplyMessage in class AbstractMailSystemCommand
Parameters:
a_receivedMessage - The message we have received (not used).
a_replyMessage - A pre-initialized message (recipients and subject already set), which shall be filled with the GetForwarder reply.
Throws:
java.lang.Exception