类 AbstractEndpoint<T>

    • 构造器详细资料

      • AbstractEndpoint

        public AbstractEndpoint​(String id)
        Create a new sensitive endpoint instance. The endpoint will enabled flag will be based on the spring Environment unless explicitly set.
        参数:
        id - the endpoint ID
      • AbstractEndpoint

        public AbstractEndpoint​(String id,
                                boolean sensitive)
        Create a new endpoint instance. The endpoint will enabled flag will be based on the spring Environment unless explicitly set.
        参数:
        id - the endpoint ID
        sensitive - if the endpoint is sensitive by default
      • AbstractEndpoint

        public AbstractEndpoint​(String id,
                                boolean sensitive,
                                boolean enabled)
        Create a new endpoint instance.
        参数:
        id - the endpoint ID
        sensitive - if the endpoint is sensitive
        enabled - if the endpoint is enabled or not.
    • 方法详细资料

      • getEnvironment

        protected final org.springframework.core.env.Environment getEnvironment()
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware
      • getId

        public String getId()
        从接口复制的说明: Endpoint
        The logical ID of the endpoint. Must only contain simple letters, numbers and '_' characters (i.e. a "\w" regex).
        指定者:
        getId 在接口中 Endpoint<T>
        返回:
        the endpoint ID
      • isEnabled

        public boolean isEnabled()
        从接口复制的说明: Endpoint
        Return if the endpoint is enabled.
        指定者:
        isEnabled 在接口中 Endpoint<T>
        返回:
        if the endpoint is enabled
      • isSensitive

        public boolean isSensitive()
        从接口复制的说明: Endpoint
        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.
        指定者:
        isSensitive 在接口中 Endpoint<T>
        返回:
        if the endpoint is sensitive