本文整理匯總了Java中org.apache.tapestry5.MetaDataConstants類的典型用法代碼示例。如果您正苦於以下問題:Java MetaDataConstants類的具體用法?Java MetaDataConstants怎麽用?Java MetaDataConstants使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
MetaDataConstants類屬於org.apache.tapestry5包,在下文中一共展示了MetaDataConstants類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: contributeMetaDataLocator
import org.apache.tapestry5.MetaDataConstants; //導入依賴的package包/類
public void contributeMetaDataLocator(MappedConfiguration<String, String> configuration)
{
// Enabling @Secure only on some pages (the remaining ones are insecure)
configuration.add("admin:" + MetaDataConstants.SECURE_PAGE, "true");
}
示例2: contributeMetaDataLocator
import org.apache.tapestry5.MetaDataConstants; //導入依賴的package包/類
/**
* When in production mode, all pages & actions should be presumed as "secure" (using HTTPS).
* Otherwise, Tapestry will try and over think what pages should be secure.
*
* @url http://tapestry.apache.org/https.html
* @param configuration
*/
public static
void contributeMetaDataLocator(MappedConfiguration<String,String> configuration)
{
configuration.add(MetaDataConstants.SECURE_PAGE, "true");
}