org.zu.ardulink.mail.server.contentmanagement
Class SimpleContentManager

java.lang.Object
  extended by org.zu.ardulink.mail.server.contentmanagement.SimpleContentManager
All Implemented Interfaces:
IContentManager

public class SimpleContentManager
extends Object
implements IContentManager

This simple IContentManager implementation sends strings in values ACommand instance when mail body content contains (case insensitive) one or more than a mail content hook in a ACommand instance. It sends strings with Link.writeSerial(String) method. Link.writeSerial(String) method doesn't care about protocol in use with the Link instance.

Author:
Luciano Zu project Ardulink http://www.ardulink.org/

Constructor Summary
SimpleContentManager()
           
 
Method Summary
 String execute(String content, List<String> values, List<String> mailContentHooks, List<String> aLinkNames)
           
 boolean isForContent(String content, List<String> mailContentHooks)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleContentManager

public SimpleContentManager()
Method Detail

isForContent

public boolean isForContent(String content,
                            List<String> mailContentHooks)
Specified by:
isForContent in interface IContentManager

execute

public String execute(String content,
                      List<String> values,
                      List<String> mailContentHooks,
                      List<String> aLinkNames)
Specified by:
execute in interface IContentManager


Copyright © 2015. All rights reserved.