All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nicklaus4.http.config.DefaultHttpCondition Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package com.github.nicklaus4.http.config;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * default http condition
 *
 * @author weishibai
 * @date 2019/03/24 12:26 PM
 */
public class DefaultHttpCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return Boolean.valueOf(context.getEnvironment().getProperty("okhttp-default-enabled"));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy