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

org.zodiac.template.velocity.constants.VelocityTemplateConstants Maven / Gradle / Ivy

The newest version!
package org.zodiac.template.velocity.constants;

import org.apache.velocity.tools.Toolbox;
import org.zodiac.sdk.toolkit.constants.CharsetConstants;
import org.zodiac.template.base.constants.TemplateConstants;

public interface VelocityTemplateConstants extends TemplateConstants {

    String CONTENT_TYPE = "default.contentType";
    String INPUT_ENCODING = "input.encoding";
    String OUTPUT_ENCODING = "output.encoding";
    String DEFAULT_TOOLBOX_KEY = Toolbox.KEY;
    String LOCALES = "locales";
    String LOCALE = "locale";
    String REQUEST_PATH = "requestPath";
    String CONFIGURATION_KEY = "org.apache.velocity.tools";

    /** Key used for the HTTP request object. */
    String REQUEST = "request";

    /** Key used for the HTTP response object. */
    String RESPONSE = "response";

    /** Key used for the HTTP session object. */
    String SESSION = "session";

    String EXCHANGE = "exchange";

    //String DEFAULT_CONFIG_PATH = "classpath:META-INF/velocity/velocity.proerties";
    String DEFAULT_CONFIG_PATH = "/META-INF/velocity/velocity.proerties";
    String USER_TOOLS_PATH = "classpath:META-INF/velocity/tools.xml";

    /**
     * Default Runtime properties.
     */
    String DEFAULT_PROPERTIES_PATH =
        "/org/apache/velocity/tools/view/velocity.properties";

    /**
     * This is the string that is looked for when getInitParameter is
     * called ("org.apache.velocity.properties").
     */
    String PROPERTIES_KEY =
        "org.apache.velocity.properties";

    /**
     * Default velocity properties file path. If no alternate value for
     * this is specified, the servlet will look here.
     */
    String USER_PROPERTIES_PATH = DEFAULT_CONFIG_PATH;

    /**
     * Controls loading of available default tool configurations
     * provided by VelocityTools. The default is false.
     */
    String LOAD_DEFAULTS_KEY =
        "org.apache.velocity.tools.loadDefaults";

    /**
     * Controls removal of tools or data with invalid configurations
     * before initialization is finished.
     * The default is false; set to {@code true} to turn this feature on.
     */
    String CLEAN_CONFIGURATION_KEY =
        "org.apache.velocity.tools.cleanConfiguration";

    /**
     * Controls whether or not templates can overwrite tool and servlet API
     * variables in the local context. The default is true; set to {@code false}
     * to prevent overwriting of any tool variables.
     */
    String USER_OVERWRITE_KEY =
        "org.apache.velocity.tools.userCanOverwriteTools";

    String DEFAULT_CONTENT_TYPE = "text/html";
    String DEFAULT_RESOURCE_LOADER_PATH = "classpath:/templates";
    int DEFAULT_MODIFICATION_CHECK_SECONDS = 2;
    String DEFAULT_PREFIX = "";
    String DEFAULT_SUFFIX = ".vm";
    int DEFAULT_PARSER_POOL_SIZE = 50;
    String DEFAULT_OUTPUT_ENCODING = CharsetConstants.UTF_8_NAME;

    String SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE = "springMacroRequestContext";

    String VELOCITY_VIEW_RESOLVER_BEAN_NAME = "velocityViewResolver";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy