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

org.apereo.cas.CasTomcatBanner Maven / Gradle / Ivy

package org.apereo.cas;

import org.apereo.cas.util.spring.boot.AbstractCasBanner;

import org.apache.catalina.util.ServerInfo;
import org.springframework.core.env.Environment;

import java.util.Formatter;

/**
 * This is {@link CasTomcatBanner}.
 *
 * @author Misagh Moayyed
 * @since 5.1.0
 */
public class CasTomcatBanner extends AbstractCasBanner {
    @Override
    public void injectEnvironmentInfo(final Formatter formatter, final Environment environment,
                                      final Class sourceClass) {
        super.injectEnvironmentInfo(formatter, environment, sourceClass);
        formatter.format("Apache Tomcat Version: %s%n", ServerInfo.getServerInfo());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy