public class OMailPlugin extends OServerPluginAbstract implements OScriptInjection, OServerPluginConfigurable
enabled
Constructor and Description |
---|
OMailPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
bind(ScriptEngine engine,
Bindings binding,
ODatabaseDocument database) |
void |
changeConfig(ODocument document) |
void |
config(OServer oServer,
OServerParameterConfiguration[] iParams)
Configures the handler.
|
ODocument |
getConfig() |
String |
getName() |
OMailProfile |
getProfile(String iName) |
Set<String> |
getProfileNames() |
OMailPlugin |
registerProfile(String iName,
OMailProfile iProfile) |
void |
send(Map<String,Object> iMessage)
Sends an email.
|
void |
unbind(ScriptEngine engine,
Bindings binding) |
void |
writeConfiguration() |
getContent, onAfterClientRequest, onBeforeClientRequest, onClientConnection, onClientDisconnection, onClientError, sendShutdown, shutdown, startup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSocketAccepted, onSocketDestroyed
public void config(OServer oServer, OServerParameterConfiguration[] iParams)
OServerPlugin
config
in interface OServerPlugin
config
in class OServerPluginAbstract
public void writeConfiguration() throws IOException
IOException
public void send(Map<String,Object> iMessage)
iMessage
- Configuration as MapParseException
public void bind(ScriptEngine engine, Bindings binding, ODatabaseDocument database)
bind
in interface OScriptInjection
public void unbind(ScriptEngine engine, Bindings binding)
unbind
in interface OScriptInjection
public OMailProfile getProfile(String iName)
public OMailPlugin registerProfile(String iName, OMailProfile iProfile)
public ODocument getConfig()
getConfig
in interface OServerPluginConfigurable
public void changeConfig(ODocument document)
changeConfig
in interface OServerPluginConfigurable
Copyright © 2009–2020 OrientDB. All rights reserved.