org.apache.james.transport.mailets
Class ServerTime
java.lang.Object
|
+--org.apache.mailet.GenericMailet
|
+--org.apache.james.transport.mailets.ServerTime
- All Implemented Interfaces:
- Mailet, MailetConfig
- public class ServerTime
- extends GenericMailet
Returns the current time for the mail server. Sample configuration:
- Author:
- Serge Knystautas
Method Summary |
String |
getMailetInfo()
Return a string describing this mailet. |
void |
service(Mail mail)
Sends a message back to the sender indicating what time the server thinks it is. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerTime
public ServerTime()
service
public void service(Mail mail)
throws MessagingException
- Sends a message back to the sender indicating what time the server thinks it is.
- Specified by:
service
in interface Mailet
- Specified by:
service
in class GenericMailet
- Parameters:
mail
- the mail being processed
- Throws:
MessagingException
- if an error is encountered while formulating the reply message
MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
occurred
getMailetInfo
public String getMailetInfo()
- Return a string describing this mailet.
- Specified by:
getMailetInfo
in interface Mailet
- Overrides:
getMailetInfo
in class GenericMailet
- Returns:
- a string describing this mailet
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."