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

org.zodiac.template.velocity.spring.view.ViewVelocityConfigurationImpl Maven / Gradle / Ivy

The newest version!
package org.zodiac.template.velocity.spring.view;

import org.slf4j.Logger;
import org.zodiac.template.velocity.constants.VelocityTemplateConstants;
import org.zodiac.template.velocity.impl.VelocityConfigurationImpl;

public class ViewVelocityConfigurationImpl extends VelocityConfigurationImpl {

    public ViewVelocityConfigurationImpl(Logger log) {
        super(log);
    }

    @Override
    public void init() throws Exception {
        super.init();
    }

    protected void initMiscs() {
        getProperties().putIfAbsent(VelocityTemplateConstants.OUTPUT_ENCODING, VelocityTemplateConstants.DEFAULT_ENCODING_NAME);
        getProperties().putIfAbsent(VelocityTemplateConstants.CONTENT_TYPE, VelocityTemplateConstants.DEFAULT_CONTENT_TYPE);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy