Package ninja.utils
Interface NinjaConstant
-
public interface NinjaConstant
-
-
Field Summary
Fields Modifier and Type Field Description static String
APPLICATION_MODULES_BASE_PACKAGE
Used to specify static base package for configuration modules and routesstatic String
applicationCookieDomain
Enables session/cookie sharing between subdomains.static String
applicationCookieEncrypted
Encryption of session cookies.static String
applicationCookiePrefix
Prefix used for all Ninja cookies.static String
applicationLanguages
Comma separated list in application.conf.static String
applicationName
Used to verify client side cookie for instance.static String
applicationSecret
Used to verify client side cookie for instance.static String
AUTHENTICITY_TOKEN
static String
CACHE_IMPLEMENTATION
Constant used to bind custom cache implementation.static String
CONTROLLERS_DIR
static String
DB_CONNECTION_PASSWORD
Password for db connectionstatic String
DB_CONNECTION_URL
eg.static String
DB_CONNECTION_USERNAME
Username for db connectionstatic String
DIAGNOSTICS_KEY_NAME
static String
FLASH_SUFFIX
Suffix used for Ninja cookies.static String
HTTP_CACHE_CONTROL
Value to set max age in header.static String
HTTP_CACHE_CONTROL_DEFAULT
Default value for Cache-Control http header when not set in application.confstatic String
HTTP_USE_ETAG
Enable / disable etag E.g.static boolean
HTTP_USE_ETAG_DEFAULT
Default value / etag enabled by default.static String
I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_DEFAULT
static String
I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_KEY
static String
I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_DEFAULT
static String
I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_KEY
static String
I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_DEFAULT
static String
I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_KEY
static String
I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_DEFAULT
static String
I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_KEY
static String
I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_DEFAULT
static String
I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_KEY
static String
LANG_COOKIE_SUFFIX
A cookie that helps Ninja to set a default language.static String
LOCATION_VIEW_FTL_HTML_BAD_REQUEST
static String
LOCATION_VIEW_FTL_HTML_FORBIDDEN
static String
LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR
static String
LOCATION_VIEW_FTL_HTML_NOT_FOUND
static String
LOCATION_VIEW_FTL_HTML_UNAUTHORIZED
static String
LOCATION_VIEW_HTML_BAD_REQUEST_KEY
static String
LOCATION_VIEW_HTML_FORBIDDEN_KEY
static String
LOCATION_VIEW_HTML_INTERNAL_SERVER_ERROR_KEY
static String
LOCATION_VIEW_HTML_NOT_FOUND_KEY
static String
LOCATION_VIEW_HTML_UNAUTHORIZED_KEY
static String
MEMCACHED_HOST
Either a single host or a list of hosts (space separated)static String
MEMCACHED_PASSWORD
Password for memcached (OPTIONAL)static String
MEMCACHED_USER
Username for memcached (OPTIONAL)static String
MIGRATION_ENGINE_IMPLEMENTATION
run migrations on startup of applicationstatic String
MODE_DEV
static String
MODE_KEY_NAME
static String
MODE_PROD
static String
MODE_TEST
static String
MODELS_DIR
static String
NINJA_JSONP_CALLBACK_PARAMETER
static String
NINJA_MIGRATION_DROP_SCHEMA
boolean flag to determine if Flyway should drop the existing DB schemastatic String
NINJA_MIGRATION_LOCATIONS
Comma-separated list of locations to scan recursively for migrationsstatic String
NINJA_MIGRATION_RUN
run migrations on startup of applicationstatic String
NINJA_MIGRATION_SCHEMAS
Comma-separated list of schemas managed by Flywaystatic String
NINJA_SPLASH_DISPLAY
Whether to display logo at startup.static String
NINJA_STRICT_ARGUMENT_EXTRACTORS
If false it will allow null as argument in controller methods.static String
PERSISTENCE_UNIT_NAME
The name of the persistence unit to usestatic String
serverName
In many situations the server cannot know its own name.static String
SESSION_SUFFIX
Suffix used for Ninja cookies.static String
sessionExpireTimeInSeconds
Time until session expires.static String
sessionHttpOnly
Used to set the HttpOnly flag at the session cookie.static String
sessionSendOnlyIfChanged
Send session cookie only back when content has changed.static String
sessionTransferredOverHttpsOnly
Used to set the Secure flag if the cookie.static String
UNI_CODE_NULL_ENTITY
Used as spacer for instance in session cookiestatic String
UPLOADS_MAX_FILE_SIZE
The maximum allowed size of a single uploaded file.static String
UPLOADS_MAX_TOTAL_SIZE
The maximum allowed size of a complete request, i.e.static String
UPLOADS_TEMP_FOLDER
Directory where uploaded files are saved.static String
UTF_8
yea.static String
VIEWS_DIR
-
-
-
Field Detail
-
MODE_KEY_NAME
static final String MODE_KEY_NAME
- See Also:
- Constant Field Values
-
MODE_TEST
static final String MODE_TEST
- See Also:
- Constant Field Values
-
MODE_DEV
static final String MODE_DEV
- See Also:
- Constant Field Values
-
MODE_PROD
static final String MODE_PROD
- See Also:
- Constant Field Values
-
VIEWS_DIR
static final String VIEWS_DIR
- See Also:
- Constant Field Values
-
CONTROLLERS_DIR
static final String CONTROLLERS_DIR
- See Also:
- Constant Field Values
-
MODELS_DIR
static final String MODELS_DIR
- See Also:
- Constant Field Values
-
LOCATION_VIEW_FTL_HTML_NOT_FOUND
static final String LOCATION_VIEW_FTL_HTML_NOT_FOUND
- See Also:
- Constant Field Values
-
LOCATION_VIEW_FTL_HTML_BAD_REQUEST
static final String LOCATION_VIEW_FTL_HTML_BAD_REQUEST
- See Also:
- Constant Field Values
-
LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR
static final String LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
-
LOCATION_VIEW_FTL_HTML_UNAUTHORIZED
static final String LOCATION_VIEW_FTL_HTML_UNAUTHORIZED
- See Also:
- Constant Field Values
-
LOCATION_VIEW_FTL_HTML_FORBIDDEN
static final String LOCATION_VIEW_FTL_HTML_FORBIDDEN
- See Also:
- Constant Field Values
-
LOCATION_VIEW_HTML_NOT_FOUND_KEY
static final String LOCATION_VIEW_HTML_NOT_FOUND_KEY
- See Also:
- Constant Field Values
-
LOCATION_VIEW_HTML_BAD_REQUEST_KEY
static final String LOCATION_VIEW_HTML_BAD_REQUEST_KEY
- See Also:
- Constant Field Values
-
LOCATION_VIEW_HTML_INTERNAL_SERVER_ERROR_KEY
static final String LOCATION_VIEW_HTML_INTERNAL_SERVER_ERROR_KEY
- See Also:
- Constant Field Values
-
LOCATION_VIEW_HTML_UNAUTHORIZED_KEY
static final String LOCATION_VIEW_HTML_UNAUTHORIZED_KEY
- See Also:
- Constant Field Values
-
LOCATION_VIEW_HTML_FORBIDDEN_KEY
static final String LOCATION_VIEW_HTML_FORBIDDEN_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_KEY
static final String I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_DEFAULT
static final String I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_DEFAULT
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_KEY
static final String I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_DEFAULT
static final String I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_DEFAULT
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_KEY
static final String I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_DEFAULT
static final String I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_DEFAULT
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_KEY
static final String I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_DEFAULT
static final String I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_DEFAULT
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_KEY
static final String I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_KEY
- See Also:
- Constant Field Values
-
I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_DEFAULT
static final String I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_DEFAULT
- See Also:
- Constant Field Values
-
NINJA_STRICT_ARGUMENT_EXTRACTORS
static final String NINJA_STRICT_ARGUMENT_EXTRACTORS
If false it will allow null as argument in controller methods. If true Ninja will not execute controller method when argument would be null and redirect to Bad Request page. Note: Default is false, but will change to true in the future (breaking change). More: https://www.ninjaframework.org/documentation/basic_concepts/controllers.html- See Also:
- Constant Field Values
-
applicationLanguages
static final String applicationLanguages
Comma separated list in application.conf. Determines which languages are loaded for the application. Something like application.languages=de,en- See Also:
- Constant Field Values
-
LANG_COOKIE_SUFFIX
static final String LANG_COOKIE_SUFFIX
A cookie that helps Ninja to set a default language. Usually resolves to a cookie called NINJA_LANG. The cookie then looks like: "NINJA_LANG=en"- See Also:
- Constant Field Values
-
APPLICATION_MODULES_BASE_PACKAGE
static final String APPLICATION_MODULES_BASE_PACKAGE
Used to specify static base package for configuration modules and routes- See Also:
- Constant Field Values
-
applicationCookiePrefix
static final String applicationCookiePrefix
Prefix used for all Ninja cookies. Make sure you set the prefix in your application.conf file.- See Also:
- Constant Field Values
-
applicationCookieDomain
static final String applicationCookieDomain
Enables session/cookie sharing between subdomains. For example, to make cookies valid for all domains ending with ‘.example.com’, e.g. foo.example.com and bar.example.com:- See Also:
- Constant Field Values
-
applicationCookieEncrypted
static final String applicationCookieEncrypted
Encryption of session cookies. Specify a boolean value. False by default.- See Also:
- Constant Field Values
-
applicationName
static final String applicationName
Used to verify client side cookie for instance.- See Also:
- Constant Field Values
-
applicationSecret
static final String applicationSecret
Used to verify client side cookie for instance.- See Also:
- Constant Field Values
-
serverName
static final String serverName
In many situations the server cannot know its own name. So you can set the name using that variable.- See Also:
- Constant Field Values
-
NINJA_SPLASH_DISPLAY
static final String NINJA_SPLASH_DISPLAY
Whether to display logo at startup. Defaults to true if missing.- See Also:
- Constant Field Values
-
sessionExpireTimeInSeconds
static final String sessionExpireTimeInSeconds
Time until session expires.- See Also:
- Constant Field Values
-
sessionSendOnlyIfChanged
static final String sessionSendOnlyIfChanged
Send session cookie only back when content has changed.- See Also:
- Constant Field Values
-
sessionTransferredOverHttpsOnly
static final String sessionTransferredOverHttpsOnly
Used to set the Secure flag if the cookie. Means Session will only be transferrd over Https.- See Also:
- Constant Field Values
-
sessionHttpOnly
static final String sessionHttpOnly
Used to set the HttpOnly flag at the session cookie. On a supported browser, an HttpOnly session cookie will be used only when transmitting HTTP (or HTTPS) requests, thus restricting access from other, non-HTTP APIs (such as JavaScript). This restriction mitigates but does not eliminate the threat of session cookie theft via cross-site scripting (XSS).- See Also:
- Constant Field Values
-
DIAGNOSTICS_KEY_NAME
static final String DIAGNOSTICS_KEY_NAME
- See Also:
- Constant Field Values
-
CACHE_IMPLEMENTATION
static final String CACHE_IMPLEMENTATION
Constant used to bind custom cache implementation.- See Also:
- Constant Field Values
-
MEMCACHED_HOST
static final String MEMCACHED_HOST
Either a single host or a list of hosts (space separated)- See Also:
- Constant Field Values
-
MEMCACHED_USER
static final String MEMCACHED_USER
Username for memcached (OPTIONAL)- See Also:
- Constant Field Values
-
MEMCACHED_PASSWORD
static final String MEMCACHED_PASSWORD
Password for memcached (OPTIONAL)- See Also:
- Constant Field Values
-
SESSION_SUFFIX
static final String SESSION_SUFFIX
Suffix used for Ninja cookies. Usually results in cookies like "NINJA_SESSION- See Also:
- Constant Field Values
-
FLASH_SUFFIX
static final String FLASH_SUFFIX
Suffix used for Ninja cookies. Usually results in cookies like "NINJA_FLASH- See Also:
- Constant Field Values
-
UNI_CODE_NULL_ENTITY
static final String UNI_CODE_NULL_ENTITY
Used as spacer for instance in session cookie- See Also:
- Constant Field Values
-
UTF_8
static final String UTF_8
yea. utf-8- See Also:
- Constant Field Values
-
HTTP_CACHE_CONTROL
static final String HTTP_CACHE_CONTROL
Value to set max age in header. E.g. Cache-Control:max-age=XXXXXX- See Also:
- Constant Field Values
-
HTTP_CACHE_CONTROL_DEFAULT
static final String HTTP_CACHE_CONTROL_DEFAULT
Default value for Cache-Control http header when not set in application.conf- See Also:
- Constant Field Values
-
HTTP_USE_ETAG
static final String HTTP_USE_ETAG
Enable / disable etag E.g. ETag:"f0680fd3"- See Also:
- Constant Field Values
-
HTTP_USE_ETAG_DEFAULT
static final boolean HTTP_USE_ETAG_DEFAULT
Default value / etag enabled by default.- See Also:
- Constant Field Values
-
MIGRATION_ENGINE_IMPLEMENTATION
static final String MIGRATION_ENGINE_IMPLEMENTATION
run migrations on startup of application- See Also:
- Constant Field Values
-
NINJA_MIGRATION_RUN
static final String NINJA_MIGRATION_RUN
run migrations on startup of application- See Also:
- Constant Field Values
-
NINJA_MIGRATION_DROP_SCHEMA
static final String NINJA_MIGRATION_DROP_SCHEMA
boolean flag to determine if Flyway should drop the existing DB schema- See Also:
- Constant Field Values
-
NINJA_MIGRATION_LOCATIONS
static final String NINJA_MIGRATION_LOCATIONS
Comma-separated list of locations to scan recursively for migrations- See Also:
- Constant Field Values
-
NINJA_MIGRATION_SCHEMAS
static final String NINJA_MIGRATION_SCHEMAS
Comma-separated list of schemas managed by Flyway- See Also:
- Constant Field Values
-
PERSISTENCE_UNIT_NAME
static final String PERSISTENCE_UNIT_NAME
The name of the persistence unit to use- See Also:
- Constant Field Values
-
DB_CONNECTION_URL
static final String DB_CONNECTION_URL
eg. jdbc:hsqldb:mem:.- See Also:
- Constant Field Values
-
DB_CONNECTION_USERNAME
static final String DB_CONNECTION_USERNAME
Username for db connection- See Also:
- Constant Field Values
-
DB_CONNECTION_PASSWORD
static final String DB_CONNECTION_PASSWORD
Password for db connection- See Also:
- Constant Field Values
-
NINJA_JSONP_CALLBACK_PARAMETER
static final String NINJA_JSONP_CALLBACK_PARAMETER
- See Also:
- Constant Field Values
-
AUTHENTICITY_TOKEN
static final String AUTHENTICITY_TOKEN
- See Also:
- Constant Field Values
-
UPLOADS_MAX_FILE_SIZE
static final String UPLOADS_MAX_FILE_SIZE
The maximum allowed size of a single uploaded file.- See Also:
FileUploadBase.fileSizeMax
, Constant Field Values
-
UPLOADS_MAX_TOTAL_SIZE
static final String UPLOADS_MAX_TOTAL_SIZE
The maximum allowed size of a complete request, i.e. size of all uploaded files.- See Also:
FileUploadBase.sizeMax
, Constant Field Values
-
UPLOADS_TEMP_FOLDER
static final String UPLOADS_TEMP_FOLDER
Directory where uploaded files are saved. Defaults to system's temporary directory, i.e. "java.io.tmpdir" system property is consulted- See Also:
- Constant Field Values
-
-