Package org.swisspush.gateleen.delegate
Class Delegate
- java.lang.Object
-
- org.swisspush.gateleen.delegate.Delegate
-
public class Delegate extends Object
Represents a Delegate.- Author:
- https://github.com/ljucam [Mario Ljuca]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of the delegate.voidhandle(io.vertx.core.http.HttpServerRequest request)Handles the given request.
-
-
-
Constructor Detail
-
Delegate
public Delegate(org.swisspush.gateleen.core.http.ClientRequestCreator clientRequestCreator, String name, Pattern pattern, Set<io.vertx.core.http.HttpMethod> methods, List<DelegateRequest> requests)Creates a new instance of a Delegate.- Parameters:
clientRequestCreator- selfClientname- name of delegatepattern- pattern for the delegatemethods- methods of the delegaterequests- requests of the delegate
-
-
Method Detail
-
getName
public String getName()
Returns the name of the delegate.- Returns:
- name
-
handle
public void handle(io.vertx.core.http.HttpServerRequest request)
Handles the given request.- Parameters:
request- original request
-
-