|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.extensions.surf.util.AbstractLifecycleBean
org.alfresco.email.server.EmailServer
public abstract class EmailServer
Base implementation of an email server.
| Field Summary |
|---|
| Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
log |
| Constructor Summary | |
|---|---|
protected |
EmailServer()
|
| Method Summary | |
|---|---|
protected void |
filterSender(java.lang.String sender)
Filter incoming message by its sender e-mail address. |
protected java.lang.String |
getDomain()
|
protected EmailService |
getEmailService()
|
protected int |
getMaxConnections()
Returns the maximum number of connection accepted by the server. |
protected int |
getPort()
|
static void |
main(java.lang.String[] args)
|
protected void |
onBootstrap(org.springframework.context.ApplicationEvent event)
|
protected void |
onShutdown(org.springframework.context.ApplicationEvent event)
|
void |
setAllowedSenders(java.util.List allowedSenders)
|
void |
setAllowedSenders(java.lang.String allowedSenders)
Set the allowed senders as a comma separated list. |
void |
setBlockedSenders(java.util.List blockedSenders)
|
void |
setBlockedSenders(java.lang.String blockedSenders)
Set the blocked senders as a comma separated list. |
void |
setDomain(java.lang.String domain)
|
void |
setEmailService(EmailService emailService)
|
void |
setEnabled(boolean enabled)
|
void |
setMaxConnections(int maxConnections)
Sets the maximum number of connection accepted by the server |
void |
setPort(int port)
|
abstract void |
shutdown()
Method is called when server is shutting down. |
abstract void |
startup()
Method is called when server is starting up. |
| Methods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean |
|---|
getApplicationContext, onApplicationEvent, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EmailServer()
serverConfiguration - Server configuration| Method Detail |
|---|
public void setEnabled(boolean enabled)
enabled - Enable/disable serverprotected java.lang.String getDomain()
public void setDomain(java.lang.String domain)
protected int getPort()
public void setPort(int port)
port - SMTP port (25 is default)protected int getMaxConnections()
public void setMaxConnections(int maxConnections)
maxConnections - public void setBlockedSenders(java.lang.String blockedSenders)
blockedSenders - a comman separated list of blocked senderspublic void setBlockedSenders(java.util.List blockedSenders)
blockedSenders - a list of senders that are not allowed to email inpublic void setAllowedSenders(java.lang.String allowedSenders)
allowedSenders - a comman separated list of blocked senderspublic void setAllowedSenders(java.util.List allowedSenders)
allowedSenders - a list of senders that are allowed to email inprotected EmailService getEmailService()
public void setEmailService(EmailService emailService)
emailService - the service interface to interact withprotected void filterSender(java.lang.String sender)
sender - An e-mail address of sender
EmailMessageException - if the e-mail is rejected accordingly with blocked and allowed listspublic abstract void startup()
public abstract void shutdown()
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
onBootstrap in class org.springframework.extensions.surf.util.AbstractLifecycleBeanprotected void onShutdown(org.springframework.context.ApplicationEvent event)
onShutdown in class org.springframework.extensions.surf.util.AbstractLifecycleBeanpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||