001// Licensed under the Apache License, Version 2.0 (the "License");
002// you may not use this file except in compliance with the License.
003// You may obtain a copy of the License at
004//
005// http://www.apache.org/licenses/LICENSE-2.0
006//
007// Unless required by applicable law or agreed to in writing, software
008// distributed under the License is distributed on an "AS IS" BASIS,
009// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
010// See the License for the specific language governing permissions and
011// limitations under the License.
012package org.apache.tapestry5.http;
013
014/**
015 * Class defining constants for Tapestry HTTP.
016 */
017final public class TapestryHttpConstants {
018
019    /**
020     * Request attribute key; if non-null, then automatic GZIP compression of response stream is
021     * suppressed. This is
022     * useful when the code opening the response stream wants to explicitly control whether GZIP
023     * compression occurs or
024     * not.
025     *
026     * @since 5.1.0.0
027     */
028    public static final String SUPPRESS_COMPRESSION = "tapestry.supress-compression";
029    
030    /**
031     * The version number of the core Tapestry framework, or UNKNOWN if the version number is not available (which
032     * should only occur when developing Tapestry).
033     * @deprecated use {@link TapestryHttpSymbolConstants#TAPESTRY_VERSION} instead.
034     */
035    public static final String TAPESTRY_VERSION = TapestryHttpSymbolConstants.TAPESTRY_VERSION;
036
037}