Class DelegateFactory


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

      Constructors 
      Constructor Description
      DelegateFactory​(DelegateClientRequestCreator clientRequestCreator, java.util.Map<java.lang.String,​java.lang.Object> properties, java.lang.String delegatesSchema)
      Creates a new instance of the DelegateFactory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Delegate parseDelegate​(java.lang.String delegateName, io.vertx.core.buffer.Buffer buffer)
      Tries to create a Delegate object out of the buffer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegateFactory

        public DelegateFactory​(DelegateClientRequestCreator clientRequestCreator,
                               java.util.Map<java.lang.String,​java.lang.Object> properties,
                               java.lang.String delegatesSchema)
        Creates a new instance of the DelegateFactory.
        Parameters:
        clientRequestCreator -
        properties -
        delegatesSchema -
    • Method Detail

      • parseDelegate

        public Delegate parseDelegate​(java.lang.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