Class DelegateFactory


  • public class DelegateFactory
    extends Object
    DelegateFactory is used to create delegate objects from their text representation.
    Author:
    https://github.com/ljucam [Mario Ljuca]
    • Constructor Detail

      • DelegateFactory

        public DelegateFactory​(org.swisspush.gateleen.core.http.ClientRequestCreator clientRequestCreator,
                               Map<String,​Object> properties,
                               String delegatesSchema)
        Creates a new instance of the DelegateFactory.
        Parameters:
        clientRequestCreator -
        properties -
        delegatesSchema -
    • Method Detail

      • parseDelegate

        public Delegate parseDelegate​(String delegateName,
                                      io.vertx.core.buffer.Buffer buffer)
                               throws org.swisspush.gateleen.validation.ValidationException
        Tries to create a Delegate object out of the buffer.
        Parameters:
        delegateName - name of the delegate
        buffer - buffer of the delegate
        Returns:
        a Delegate object
        Throws:
        org.swisspush.gateleen.validation.ValidationException