Package org.swisspush.gateleen.delegate
Class DelegateFactory
- java.lang.Object
-
- org.swisspush.gateleen.delegate.DelegateFactory
-
public class DelegateFactory extends java.lang.ObjectDelegateFactory 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 DelegateparseDelegate(java.lang.String delegateName, io.vertx.core.buffer.Buffer buffer)Tries to create a Delegate object out of the buffer.
-
-
-
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 delegatebuffer- buffer of the delegate- Returns:
- a Delegate object
- Throws:
org.swisspush.gateleen.validation.ValidationException
-
-