001 // Copyright 2008, 2011 The Apache Software Foundation
002 //
003 // Licensed under the Apache License, Version 2.0 (the "License");
004 // you may not use this file except in compliance with the License.
005 // You may obtain a copy of the License at
006 //
007 // http://www.apache.org/licenses/LICENSE-2.0
008 //
009 // Unless required by applicable law or agreed to in writing, software
010 // distributed under the License is distributed on an "AS IS" BASIS,
011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012 // See the License for the specific language governing permissions and
013 // limitations under the License.
014
015 package org.apache.tapestry5;
016
017 /**
018 * Meta-data keys that are applied to components and pages. In addition, in many cases a {@linkplain
019 * org.apache.tapestry5.SymbolConstants symbol constant key} is also a meta data key (where the symbol value is the
020 * ultimate default).
021 *
022 * @see org.apache.tapestry5.services.MetaDataLocator
023 * @see org.apache.tapestry5.MetaDataConstants
024 */
025 public class MetaDataConstants
026 {
027 /**
028 * Meta data key applied to pages that sets the response content type. A factory default provides the value
029 * "text/html" when not overridden.
030 */
031 public static final String RESPONSE_CONTENT_TYPE = "tapestry.response-content-type";
032
033 /**
034 * Meta data key applied to pages that may only be accessed via secure methods (HTTPS).
035 */
036 public static final String SECURE_PAGE = "tapestry.secure-page";
037
038 /**
039 * Meta-data for identifying pages that should only be accessible from clients on the whitelist.
040 * The meta-default is "false".
041 *
042 * @see org.apache.tapestry5.services.security.ClientWhitelist
043 * @since 5.3
044 */
045 public static final String WHITELIST_ONLY_PAGE = "tapestry.white-list-only-page";
046 }