Interface Endpoint<T>

    • Method Detail

      • getId

        String getId()
        The logical ID of the endpoint. Must only contain simple letters, numbers and '_' characters (i.e. a "\w" regex).
        Returns:
        the endpoint ID
      • isEnabled

        boolean isEnabled()
        Return if the endpoint is enabled.
        Returns:
        if the endpoint is enabled
      • isSensitive

        boolean isSensitive()
        Return if the endpoint is sensitive, i.e. may return data that the average user should not see. Mappings can use this as a security hint.
        Returns:
        if the endpoint is sensitive
      • invoke

        T invoke()
        Called to invoke the endpoint.
        Returns:
        the results of the invocation