Package ninja.utils

Interface NinjaConstant


  • public interface NinjaConstant
    • Field Detail

      • LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR

        static final String LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR
        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
      • 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_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
      • 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
      • 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
      • 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
      • 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_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
      • 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