public final class Platform.Property extends Object
Properties
-object and can
be accessed via the Environment
as follows:
org.appng.api.model.Properties platformConfig = environment.getAttribute(Scope.PLATFORM, Platform.Environment.PLATFORM_CONFIG); String platformRootPath = platformConfig.getString(Platform.Property.PLATFORM_ROOT_PATH);Note: A
Application
can only access the Scope.PLATFORM
if it's a privileged application, i.e.
Application.isPrivileged()
returns true
.Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_CACHE_FOLDER
The folder for the application-cache, relative to
CACHE_FOLDER . |
static String |
APPLICATION_DIR
The folder used for installing file-based-applications, relative to the webapp-root
|
static String |
CACHE_FOLDER
The cache folder, relative to WEB-INF.
|
static String |
CONSTRAINTS_AS_RULE
|
static String |
CSRF_FILTER_ENABLED
Set to
true to enable a filter preventing CSRF-attacks |
static String |
DATABASE_PREFIX
The prefix to use when generating database names
|
static String |
DATABASE_VALIDATION_PERIOD
The idle database connection test period in minutes.
|
static String |
DEFAULT_TEMPLATE
The name of the default template to use (must be a folder located under
TEMPLATE_FOLDER ) |
static String |
DEV_MODE
Disable for production use.
|
static String |
EHCACHE_CONFIG
The global page cache configuration using the Ehcache XML configuration format.
|
static String |
ENCODING
The charset/encoding used for http-responses.
|
static String |
FILEBASED_DEPLOYMENT
Set to 'true' if applications should be deployed to the local filesystem, 'false' otherwise.
|
static String |
FORMAT_OUTPUT
Disable for production use.
|
static String |
IMAGE_CACHE_FOLDER
The folder used for caching images, within the
APPLICATION_CACHE_FOLDER |
static String |
IMAGEMAGICK_PATH
The path to the ImageMagick executables
|
static String |
JSP_FILE_TYPE
The file-extension for JSP-files.
|
static String |
LOCALE
The default
Locale . |
static String |
LOGFILE
The name of the logfile generated by appNG
|
static String |
MAIL_DISABLED
Set to 'true' to disable mailing and log the e-mails instead.
|
static String |
MAIL_HOST
The mail-host to use
|
static String |
MAIL_PORT
The mail-port to use
|
static String |
MANAGE_DATABASES
If set to 'true', appNG will manage the databases (create schemas and users) required by the
Application s. |
static String |
MAX_UPLOAD_SIZE
The maximum size for file uploads in bytes
|
static String |
MAX_WAIT_TIME
The overall maximum time to wait for a
Site to become available/to finish its requests (milliseconds). |
static String |
MDC_ENABLED
set to
true to enable support for Mapped Diagnostic Context (MDC) Logging. |
static String |
MESSAGING_ENABLED
Set to true to enable cluster messaging
|
static String |
MESSAGING_GROUP_ADDRESS
The multicast address used for messaging
|
static String |
MESSAGING_GROUP_PORT
The port used for multicast messaging
|
static String |
MESSAGING_RECEIVER
Class name of the desired messaging Receiver implementation.
|
static String |
MONITOR_PERFORMANCE
Set to true to enable performance monitoring for the target XML
|
static String |
PASSWORD_POLICY_ERROR_MSSG_KEY
The resource-bundle key (for messages-core) for the message which is being displayed when the password does
not match the policy.
|
static String |
PASSWORD_POLICY_REGEX
A regular expression describing the password-policy
|
static String |
PLATFORM_CACHE_FOLDER
The folder for the platform-cache, relative to
CACHE_FOLDER . |
static String |
PLATFORM_ROOT_PATH
The absolute root-path of the platform
|
static String |
REPOSITORY_CERT
The certificate to use when verifying a signed remote repository (PEM format)
|
static String |
REPOSITORY_DEFAULT_DIGEST
The default digest for a published local application repository
|
static String |
REPOSITORY_PATH
The folder used for the repositories of the site, relative to the webapp-root
|
static String |
REPOSITORY_SIGNATURE
The private key to use when signing a local published repository (PEM format)
|
static String |
REPOSITORY_TRUST_STORE_PASSWORD
The truststore's password
|
static String |
REPOSITORY_TRUSTSTORE
The truststore used when verifying a signed remote repository, using
file:// -protocol. |
static String |
REPOSITORY_VERIFY_SIGNATURE
When set to
true , signed remote repositories are validated against the configured (or default)
truststore. |
static String |
SESSION_TIMEOUT
The timeout for a user session in seconds
|
static String |
SHARED_SECRET
The shared secret used for digest authentication
|
static String |
TEMPLATE_FOLDER
The folder used for templates, relative to the webapp-root
|
static String |
TEMPLATE_PREFIX
The path under which the resources of the active template are beeing served.
|
static String |
TIME_ZONE
The default
TimeZone . |
static String |
UPLOAD_DIR
The folder for saving uploads, relative to the webapp-root
|
static String |
VHOST_MODE
Defines whether the server is identified by its IP ('IP_BASED') or by its name ('NAME_BASED')
|
static String |
WAIT_ON_SITE_SHUTDOWN
When set to
true , appNG waits until a Site has finished processing its requests before shutting it down. |
static String |
WAIT_TIME
The time to wait (in a single waiting loop) for a
Site to become available/to finish its requests (milliseconds). |
static String |
WRITE_DEBUG_FILES
When set to
true , the XML, XSLT and potential Exceptions occurring on a request to the appNG manager
GUI are written to <platformRootPath>/debug |
static String |
XSS_ALLOWED_TAGS
A list of allowed HTML Tags, separated by '|', optionally followed by a space-separated list of allowed
attributes.
Example: |
static String |
XSS_PROTECT
Set to
true to enable XSS protection |
Constructor and Description |
---|
Property() |
public static final String PLATFORM_ROOT_PATH
public static final String APPLICATION_CACHE_FOLDER
CACHE_FOLDER
. Applications might use this folder
to cache temporary data.public static final String CACHE_FOLDER
PLATFORM_CACHE_FOLDER
and the
APPLICATION_CACHE_FOLDER
.public static final String CONSTRAINTS_AS_RULE
public static final String CSRF_FILTER_ENABLED
true
to enable a filter preventing CSRF-attackspublic static final String DATABASE_PREFIX
public static final String DATABASE_VALIDATION_PERIOD
public static final String DEFAULT_TEMPLATE
TEMPLATE_FOLDER
)public static final String DEV_MODE
public static final String ENCODING
public static final String EHCACHE_CONFIG
public static final String FILEBASED_DEPLOYMENT
public static final String FORMAT_OUTPUT
public static final String IMAGE_CACHE_FOLDER
APPLICATION_CACHE_FOLDER
public static final String IMAGEMAGICK_PATH
public static final String JSP_FILE_TYPE
public static final String LOCALE
Locale
. Use one of Locale.getAvailableLocales()
public static final String LOGFILE
public static final String MAIL_DISABLED
public static final String MAIL_HOST
public static final String MAIL_PORT
public static final String MANAGE_DATABASES
Application
s.public static final String MDC_ENABLED
true
to enable support for Mapped Diagnostic Context (MDC) Logging.public static final String MESSAGING_ENABLED
public static final String MESSAGING_RECEIVER
public static final String MESSAGING_GROUP_ADDRESS
public static final String MESSAGING_GROUP_PORT
public static final String MAX_UPLOAD_SIZE
public static final String MONITOR_PERFORMANCE
public static final String PASSWORD_POLICY_ERROR_MSSG_KEY
public static final String PASSWORD_POLICY_REGEX
public static final String PLATFORM_CACHE_FOLDER
CACHE_FOLDER
. The platform cache is used by appNG to
cache application resources.public static final String APPLICATION_DIR
public static final String REPOSITORY_PATH
public static final String SESSION_TIMEOUT
public static final String SHARED_SECRET
public static final String TEMPLATE_FOLDER
public static final String TEMPLATE_PREFIX
public static final String TIME_ZONE
TimeZone
. Use one of TimeZone.getAvailableIDs()
public static final String UPLOAD_DIR
public static final String VHOST_MODE
public static final String WRITE_DEBUG_FILES
true
, the XML, XSLT and potential Exceptions occurring on a request to the appNG manager
GUI are written to <platformRootPath>/debug
public static final String REPOSITORY_DEFAULT_DIGEST
public static final String REPOSITORY_CERT
public static final String REPOSITORY_SIGNATURE
public static final String REPOSITORY_TRUSTSTORE
file://
-protocol. If empty, the
default $java.home/lib/security/cacerts
is being used.public static final String REPOSITORY_TRUST_STORE_PASSWORD
public static final String REPOSITORY_VERIFY_SIGNATURE
true
, signed remote repositories are validated against the configured (or default)
truststore.public static final String XSS_PROTECT
true
to enable XSS protectionpublic static final String XSS_ALLOWED_TAGS
h1|h2|a href class style|div align style
public static final String WAIT_ON_SITE_SHUTDOWN
true
, appNG waits until a Site
has finished processing its requests before shutting it down.public static final String WAIT_TIME
Site
to become available/to finish its requests (milliseconds).public static final String MAX_WAIT_TIME
Site
to become available/to finish its requests (milliseconds).Copyright © 2011–2018 aiticon GmbH. All rights reserved.