Package org.swisspush.gateleen.delegate
Class DelegateFactory
- java.lang.Object
-
- org.swisspush.gateleen.delegate.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 Summary
Constructors Constructor Description DelegateFactory(org.swisspush.gateleen.core.http.ClientRequestCreator clientRequestCreator, Map<String,Object> properties, String delegatesSchema)Creates a new instance of the DelegateFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelegateparseDelegate(String delegateName, io.vertx.core.buffer.Buffer buffer)Tries to create a Delegate object out of the buffer.
-
-
-
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 delegatebuffer- buffer of the delegate- Returns:
- a Delegate object
- Throws:
org.swisspush.gateleen.validation.ValidationException
-
-