contentbox.modules.contentbox-deps.modules.cbmailservices.models

Class AbstractProtocol

lucee.Component
    extended by contentbox.modules.contentbox-deps.modules.cbmailservices.models.AbstractProtocol

An abstract class that give identity to mail protocols when building custom or extending mail protocols the Mail Service uses.

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init([any properties='[runtime expression]'])
          Constructor called by a Concrete Protocol.
    Method Summary
    any getProperties()
         Get properties structure map.
    any getProperty(any property)
         Get a property, throws exception if not found.
    any propertyExists(any property)
         Checks wether a given property exists or not.
    struct send(any<cbmailservices.models.Mail> payload)
         I send a payload via the this protocol.
    void setProperties(any properties)
         Set the entire properties structure map.
    void setProperty(any property, any value)
         Set a property.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init([any properties='[runtime expression]'])

    Constructor called by a Concrete Protocol

    Parameters:
    properties - A map of configuration properties for the protocol

    Method Detail

    getProperties

    public any getProperties()

    Get properties structure map


    getProperty

    public any getProperty(any property)

    Get a property, throws exception if not found.

    Parameters:
    property - The key of the property to return.

    propertyExists

    public any propertyExists(any property)

    Checks wether a given property exists or not.

    Parameters:
    property - The property name

    send

    public struct send(any<cbmailservices.models.Mail> payload)

    I send a payload via the this protocol.

    Parameters:
    payload - I'm the payload to delivery

    setProperties

    public void setProperties(any properties)

    Set the entire properties structure map

    Parameters:
    properties

    setProperty

    public void setProperty(any property, any value)

    Set a property

    Parameters:
    property - The property name to set.
    value - The value of the property.