lucee.Component
models.AbstractProtocol
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com ---- An abstract class that gives identity to mail protocols when building custom or extending mail protocols the Mail Service uses. The `send()` function is the one you want to implement in your protocols
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
log
|
true
|
false
|
|
any
|
name
The protocol's human name.
|
true
|
false
|
|
struct
|
properties
A collection of configuration properties for a protocol.
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init([struct properties='[runtime expression]'])
Constructor. |
|
| Method Summary | |
|---|---|
string
|
getLog()
|
string
|
getName()
|
string
|
getProperties()
|
any
|
getProperty(any property, [any defaultValue])
Get a property, throws an exception if not found. |
boolean
|
propertyExists(any property)
Verifies if a property exists or not. |
struct
|
send(cbmailservices.models.Mail<cbmailservices.models.Mail> payload)
Implemented by concrete protocols to send a message. |
any
|
setLog(any log)
|
any
|
setName(any name)
|
any
|
setProperties(struct properties)
|
AbstractProtocol
|
setProperty(any property, any value)
Set a property with a value. |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
Constructor
properties - The protocol properties to instantiate| Property Detail |
|---|
access - publicrequired - falsereturntype - anyinject - logbox:logger:{this}serializable - trueThe protocol's human name
access - publicrequired - falsereturntype - anyserializable - trueA collection of configuration properties for a protocol
access - publicrequired - falsereturntype - anyserializable - true| Method Detail |
|---|
Get a property, throws an exception if not found.
property - The property to getdefaultValue - The default value to retrieve if property doesn't existVerifies if a property exists or not
property - The property keyImplemented by concrete protocols to send a message. The return is a struct with a minimum of the following two keys - `error` - A boolean flag if the message was sent or not - `messages` - An array of messages the protocol stored if any when sending the payload
payload - The paylod object to send the message withlognamepropertiesSet a property with a value
property - The property keyvalue - The property value