Class Delegate


  • public class Delegate
    extends Object
    Represents a Delegate.
    Author:
    https://github.com/ljucam [Mario Ljuca]
    • 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,
                        @Nullable
                        org.swisspush.gateleen.core.util.StatusCode unmatchedDelegateStatusCode)
        Creates a new instance of a Delegate.
        Parameters:
        clientRequestCreator - selfClient
        name - name of delegate
        pattern - pattern for the delegate
        methods - methods of the delegate
        requests - 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