A B C D E F G H I J K L M N O P Q R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- absolute(String, String) - Method in class ninja.ReverseRouter.Builder
-
Make this an absolute route by including the current scheme (e.g.
- absolute(Context) - Method in class ninja.ReverseRouter.Builder
-
Make this an absolute route by including the current scheme (e.g.
- AbstractConsole<T extends AbstractConsole> - Class in ninja.standalone
-
Abstract Console that implements most functionality required to write a concrete Console.
- AbstractConsole(String) - Constructor for class ninja.standalone.AbstractConsole
- AbstractContext - Class in ninja.utils
-
Abstract Context.Impl that implements features that are not reliant on the concrete Context implementation.
- AbstractContext(BodyParserEngineManager, FlashScope, NinjaProperties, Session, Validation, Injector, ParamParsers) - Constructor for class ninja.utils.AbstractContext
- AbstractStandalone<T extends AbstractStandalone> - Class in ninja.standalone
-
Abstract Standalone that implements most functionality required to write a concrete Standalone.
- AbstractStandalone(String) - Constructor for class ninja.standalone.AbstractStandalone
- AbstractWebSocketHandshake - Class in ninja.websockets
- AbstractWebSocketHandshake() - Constructor for class ninja.websockets.AbstractWebSocketHandshake
- add(String, Object) - Method in class ninja.cache.NinjaCache
-
Add an element only if it doesn't exist and store it indefinitely.
- add(String, Object, int) - Method in interface ninja.cache.Cache
-
Add object to cache.
- add(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- add(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- add(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Add an element only if it doesn't exist.
- addBeanViolation(FieldViolation) - Method in interface ninja.validation.Validation
-
Deprecated.
- addBeanViolation(FieldViolation) - Method in class ninja.validation.ValidationImpl
- addCookie(Cookie) - Method in interface ninja.Context
-
Adds a cookie to the response
- addCookie(Cookie) - Method in class ninja.Result
- addCookie(Cookie) - Method in class ninja.WrappedContext
- addEtag(Context, Result, Long) - Method in interface ninja.utils.HttpCacheToolkit
-
Adds etag to result.
- addEtag(Context, Result, Long) - Method in class ninja.utils.HttpCacheToolkitImpl
- addFieldViolation(String, ConstraintViolation) - Method in interface ninja.validation.Validation
-
Deprecated.
- addFieldViolation(String, ConstraintViolation) - Method in class ninja.validation.ValidationImpl
- addFieldViolation(FieldViolation) - Method in interface ninja.validation.Validation
-
Deprecated.
- addFieldViolation(FieldViolation) - Method in class ninja.validation.ValidationImpl
- addFilters(List<Class<? extends Filter>>) - Method in interface ninja.application.ApplicationFilters
- addHeader(String, String) - Method in class ninja.Result
- addModule(Module) - Method in class ninja.Bootstrap
- addViolation(ConstraintViolation) - Method in interface ninja.validation.Validation
-
Add a violation
- addViolation(ConstraintViolation) - Method in class ninja.validation.ValidationImpl
- ALGORITHM - Static variable in class ninja.utils.CookieEncryption
- ANONYMOUS_METHOD_REFERENCE - ninja.utils.Lambdas.Kind
- ANY_INSTANCE_METHOD_REFERENCE - ninja.utils.Lambdas.Kind
- AopUtils - Class in ninja.utils
-
AOP utility methods.
- AopUtils() - Constructor for class ninja.utils.AopUtils
- APPLICATION_GUICE_MODULE_CONVENTION_LOCATION - Static variable in class ninja.Bootstrap
- APPLICATION_GUICE_SERVLET_MODULE_CONVENTION_LOCATION - Static variable in class ninja.Bootstrap
- APPLICATION_JSON - Static variable in interface ninja.ContentTypes
- APPLICATION_JSON - Static variable in class ninja.Result
- APPLICATION_JSONP - Static variable in interface ninja.ContentTypes
- APPLICATION_JSONP - Static variable in class ninja.Result
- APPLICATION_MODULES_BASE_PACKAGE - Static variable in interface ninja.utils.NinjaConstant
-
Used to specify static base package for configuration modules and routes
- APPLICATION_OCTET_STREAM - Static variable in class ninja.Result
- APPLICATION_POST_FORM - Static variable in interface ninja.ContentTypes
- APPLICATION_XML - Static variable in interface ninja.ContentTypes
- APPLICATION_XML - Static variable in class ninja.Result
- applicationCookieDomain - Static variable in interface ninja.utils.NinjaConstant
-
Enables session/cookie sharing between subdomains.
- applicationCookieEncrypted - Static variable in interface ninja.utils.NinjaConstant
-
Encryption of session cookies.
- applicationCookiePrefix - Static variable in interface ninja.utils.NinjaConstant
-
Prefix used for all Ninja cookies.
- ApplicationFilters - Interface in ninja.application
-
Allows to define filters that are applied to every request of your application.
- applicationLanguages - Static variable in interface ninja.utils.NinjaConstant
-
Comma separated list in application.conf.
- applicationName - Static variable in interface ninja.utils.NinjaConstant
-
Used to verify client side cookie for instance.
- ApplicationRoutes - Interface in ninja.application
-
Implement this file in directory conf/Routes.java to set up your routes...
- applicationSecret - Static variable in interface ninja.utils.NinjaConstant
-
Used to verify client side cookie for instance.
- APPLICATON_JSON - Static variable in class ninja.Result
-
Deprecated.
- APPLICATON_JSONP - Static variable in class ninja.Result
-
Deprecated.
- apply() - Method in interface ninja.ControllerMethods.ControllerMethod0
- apply(A) - Method in interface ninja.ControllerMethods.ControllerMethod1
- apply(A, B) - Method in interface ninja.ControllerMethods.ControllerMethod2
- apply(A, B, C) - Method in interface ninja.ControllerMethods.ControllerMethod3
- apply(A, B, C, D) - Method in interface ninja.ControllerMethods.ControllerMethod4
- apply(A, B, C, D, E) - Method in interface ninja.ControllerMethods.ControllerMethod5
- apply(A, B, C, D, E, F) - Method in interface ninja.ControllerMethods.ControllerMethod6
- apply(A, B, C, D, E, F, G) - Method in interface ninja.ControllerMethods.ControllerMethod7
- apply(A, B, C, D, E, F, G, H) - Method in interface ninja.ControllerMethods.ControllerMethod8
- apply(A, B, C, D, E, F, G, H, I) - Method in interface ninja.ControllerMethods.ControllerMethod9
- apply(A, B, C, D, E, F, G, H, I, J) - Method in interface ninja.ControllerMethods.ControllerMethod10
- apply(A, B, C, D, E, F, G, H, I, J, K) - Method in interface ninja.ControllerMethods.ControllerMethod11
- apply(A, B, C, D, E, F, G, H, I, J, K, L) - Method in interface ninja.ControllerMethods.ControllerMethod12
- apply(A, B, C, D, E, F, G, H, I, J, K, L, M) - Method in interface ninja.ControllerMethods.ControllerMethod13
- apply(A, B, C, D, E, F, G, H, I, J, K, L, M, N) - Method in interface ninja.ControllerMethods.ControllerMethod14
- apply(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) - Method in interface ninja.ControllerMethods.ControllerMethod15
- areMethodParameterCountsEqual() - Method in class ninja.utils.Lambdas.LambdaInfo
- ArgumentClassHolder - Class in ninja.params
-
This is used to hold the argument class, so that it can be injected into extractors/validators so they can know what type they are extracting.
- ArgumentClassHolder(Class<?>) - Constructor for class ninja.params.ArgumentClassHolder
- ArgumentExtractor<T> - Interface in ninja.params
-
Extracts a controller argument from the context
- ArgumentExtractors - Class in ninja.params
-
Built in argument extractors
- ArgumentExtractors() - Constructor for class ninja.params.ArgumentExtractors
- ArgumentExtractors.AttributeExtractor - Class in ninja.params
- ArgumentExtractors.BodyAsExtractor<T> - Class in ninja.params
- ArgumentExtractors.ContextExtractor - Class in ninja.params
- ArgumentExtractors.FileItemParamExtractor - Class in ninja.params
- ArgumentExtractors.FileItemParamsExtractor - Class in ninja.params
- ArgumentExtractors.FileParamExtractor - Class in ninja.params
- ArgumentExtractors.FileParamsExtractor - Class in ninja.params
- ArgumentExtractors.FlashExtractor - Class in ninja.params
- ArgumentExtractors.HeaderExtractor - Class in ninja.params
- ArgumentExtractors.HeadersExtractor - Class in ninja.params
- ArgumentExtractors.InputStreamParamExtractor - Class in ninja.params
- ArgumentExtractors.InputStreamParamsExtractor - Class in ninja.params
- ArgumentExtractors.ParamExtractor - Class in ninja.params
- ArgumentExtractors.ParamsExtractor - Class in ninja.params
- ArgumentExtractors.PathParamExtractor - Class in ninja.params
- ArgumentExtractors.SessionExtractor - Class in ninja.params
- ArgumentExtractors.SessionParamExtractor - Class in ninja.params
- ArgumentExtractors.ValidationExtractor - Class in ninja.params
- ArrayParamParser(Class<T[]>, ParamParser<T>) - Constructor for class ninja.params.ParamParsers.ArrayParamParser
- assertViolation(int, int, int, int) - Method in interface ninja.scheduler.cron.CronExpressionPart
-
Checks that CRON expression has valid attributes.
- ASSETS_DIR - Static variable in class ninja.AssetsController
- AssetsController - Class in ninja
-
This controller serves public resources under /assets.
- AssetsController(AssetsControllerHelper, HttpCacheToolkit, MimeTypes, NinjaProperties) - Constructor for class ninja.AssetsController
- AssetsControllerHelper - Class in ninja
- AssetsControllerHelper() - Constructor for class ninja.AssetsControllerHelper
- async() - Static method in class ninja.Results
- asyncRequestComplete() - Method in interface ninja.Context
-
Indicate that processing this request is complete.
- asyncRequestComplete() - Method in class ninja.utils.AbstractContext
- asyncRequestComplete() - Method in class ninja.WrappedContext
- AsyncResult - Class in ninja
-
An async result
- AsyncResult() - Constructor for class ninja.AsyncResult
- Attribute - Annotation Type in ninja.params
-
Injects an attribute value into a controller method invocation.
- ATTRIBUTE_ENDPOINT - Static variable in class ninja.websockets.WebSocketUtils
- ATTRIBUTE_HANDSHAKE - Static variable in class ninja.websockets.WebSocketUtils
- AttributeExtractor(Attribute, ArgumentClassHolder) - Constructor for class ninja.params.ArgumentExtractors.AttributeExtractor
- AUTHENTICITY_KEY - Static variable in interface ninja.session.Session
- AUTHENTICITY_TOKEN - Static variable in interface ninja.utils.NinjaConstant
- AuthenticityFilter - Class in ninja
- AuthenticityFilter(Ninja) - Constructor for class ninja.AuthenticityFilter
- AutoStandalone - Class in ninja.standalone
-
Automatically finds a standalone to start a Ninja app.
- AutoStandalone() - Constructor for class ninja.standalone.AutoStandalone
B
- BadCronExpressionException - Exception in ninja.scheduler.cron
-
Exception thrown if there is a problem when parsing a CRON expression.
- BadCronExpressionException(String, Object...) - Constructor for exception ninja.scheduler.cron.BadCronExpressionException
-
Build a new instance.
- BadCronExpressionException(BadCronExpressionException, String, Object...) - Constructor for exception ninja.scheduler.cron.BadCronExpressionException
-
Build a new instance.
- badRequest() - Static method in class ninja.Results
- badRequest400 - ninja.Context.HTTP_STATUS
-
Deprecated.
- BadRequestException - Exception in ninja.exceptions
-
A convenience unchecked exception.
- BadRequestException() - Constructor for exception ninja.exceptions.BadRequestException
- BadRequestException(String) - Constructor for exception ninja.exceptions.BadRequestException
- BadRequestException(String, Throwable) - Constructor for exception ninja.exceptions.BadRequestException
- BadRequestException(Throwable) - Constructor for exception ninja.exceptions.BadRequestException
- baseUrls - Variable in class ninja.standalone.AbstractStandalone
- BasicAuthFilter - Class in ninja
-
A Ninja filter that implements HTTP BASIC Authentication.
- BasicAuthFilter(Ninja, NinjaProperties, UsernamePasswordValidator) - Constructor for class ninja.BasicAuthFilter
- bindProperties(Binder) - Method in class ninja.utils.NinjaPropertiesImpl
- BodyAsExtractor(Class<T>) - Constructor for class ninja.params.ArgumentExtractors.BodyAsExtractor
- BodyParserEngine - Interface in ninja.bodyparser
- BodyParserEngineJson - Class in ninja.bodyparser
-
Built in Json body parser.
- BodyParserEngineJson(ObjectMapper) - Constructor for class ninja.bodyparser.BodyParserEngineJson
- bodyParserEngineManager - Variable in class ninja.utils.AbstractContext
- BodyParserEngineManager - Interface in ninja.bodyparser
- BodyParserEngineManagerImpl - Class in ninja.bodyparser
- BodyParserEngineManagerImpl(Injector) - Constructor for class ninja.bodyparser.BodyParserEngineManagerImpl
- BodyParserEngineMultipartPost - Class in ninja.bodyparser
- BodyParserEngineMultipartPost(ParamParsers) - Constructor for class ninja.bodyparser.BodyParserEngineMultipartPost
- BodyParserEnginePost - Class in ninja.bodyparser
- BodyParserEnginePost(ParamParsers) - Constructor for class ninja.bodyparser.BodyParserEnginePost
- BodyParserEngineXml - Class in ninja.bodyparser
-
Built in Xml body parser.
- BodyParserEngineXml(XmlMapper) - Constructor for class ninja.bodyparser.BodyParserEngineXml
- BooleanParamParser() - Constructor for class ninja.params.ParamParsers.BooleanParamParser
- boot() - Method in class ninja.Bootstrap
- Bootstrap - Class in ninja
-
Bootstrap for a Ninja application.
- Bootstrap(NinjaPropertiesImpl) - Constructor for class ninja.Bootstrap
- Bootstrap(NinjaPropertiesImpl, Optional<Module>) - Constructor for class ninja.Bootstrap
- build() - Method in class ninja.Cookie.Builder
- build() - Method in class ninja.ReverseRouter.Builder
-
Builds the final url.
- build() - Method in class ninja.utils.NinjaPropertiesImpl.Builder
- build(Method, Method, Injector, NinjaProperties) - Static method in class ninja.params.ControllerMethodInvoker
-
Builds an invoker for a functional method.
- build(Context, Result, DiagnosticError) - Static method in class ninja.diagnostics.DiagnosticErrorRenderer
- build400BadRequestDiagnosticError(Throwable, boolean) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build401UnauthorizedDiagnosticError() - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build403ForbiddenDiagnosticError() - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build403ForbiddenDiagnosticError(Throwable, boolean) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build404NotFoundDiagnosticError(boolean) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build404NotFoundDiagnosticError(Throwable, boolean) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- build500InternalServerErrorDiagnosticError(Throwable, boolean, Result) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- buildDiagnosticError(String, Throwable, boolean, Result) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- buildDiagnosticError(String, Throwable, String, int, Result) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- buildDiagnosticError(String, Throwable, String, String, int, Result) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- buildDiagnosticError(String, Throwable, SourceSnippet, int, Result) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- builder() - Static method in class ninja.utils.NinjaPropertiesImpl
- builder(String, String) - Static method in class ninja.Cookie
- builder(Cookie) - Static method in class ninja.Cookie
- Builder(String, Route) - Constructor for class ninja.ReverseRouter.Builder
- buildErrorMessage(Context, String, String, Optional<Throwable>, Optional<Result>) - Method in class ninja.NinjaDefault
- buildRoute(Injector) - Method in class ninja.RouteBuilderImpl
-
Build the route.
- ByteParamParser() - Constructor for class ninja.params.ParamParsers.ByteParamParser
C
- cache(boolean) - Method in class ninja.conf.NinjaClassicModule
- Cache - Interface in ninja.cache
-
Interface hiding cache implementation.
- CACHE_CONTROL - Static variable in class ninja.Result
- CACHE_CONTROL - Static variable in interface ninja.utils.HttpHeaderConstants
- CACHE_CONTROL_DEFAULT_NOCACHE_VALUE - Static variable in class ninja.Result
- CACHE_IMPLEMENTATION - Static variable in interface ninja.utils.NinjaConstant
-
Constant used to bind custom cache implementation.
- CacheEhCacheImpl - Class in ninja.cache
-
EhCache implementation.
- CacheEhCacheImpl(Logger) - Constructor for class ninja.cache.CacheEhCacheImpl
- CacheException - Exception in ninja.cache
- CacheException(String, Throwable) - Constructor for exception ninja.cache.CacheException
- CacheMemcachedImpl - Class in ninja.cache
-
Memcached implementation (using http://code.google.com/p/spymemcached/) expiration is specified in seconds.
- CacheMemcachedImpl(Logger, NinjaProperties) - Constructor for class ninja.cache.CacheMemcachedImpl
- CacheProvider - Class in ninja.cache
-
A provider that determines which implementation to load as a Cache based on the value of a configuration key in
NinjaProperties
(aka application.conf). - CacheProvider(Injector, NinjaProperties) - Constructor for class ninja.cache.CacheProvider
- caseSensitive() - Method in annotation type ninja.validation.IsEnum
-
The flag to determine if validation is case-sensitive.
- challenge - Variable in class ninja.BasicAuthFilter
- CharacterParamParser() - Constructor for class ninja.params.ParamParsers.CharacterParamParser
- charset(String) - Method in class ninja.Result
- checkConfigured() - Method in class ninja.standalone.AbstractConsole
- checkNotConfigured() - Method in class ninja.standalone.AbstractConsole
- checkStarted() - Method in class ninja.standalone.AbstractConsole
- checkThatApplicationSecretIsSet(boolean, String, PropertiesConfiguration, Configuration) - Static method in class ninja.utils.NinjaPropertiesImplTool
-
This method checks that your configurations have set a application.secret=23r213r12r123 If application.secret is missing or is empty it will do the following: - In dev and test mode it'll generate a new application secret and write the secret to both src/main/java/conf/application.conf and the classes dir were the compiled stuff goes.
- cleanup() - Method in interface ninja.Context
-
Cleanup context
- cleanup() - Method in interface ninja.uploads.FileItem
-
Cleanup resources if needed.
- cleanup() - Method in class ninja.WrappedContext
- clear() - Method in interface ninja.cache.Cache
-
Clear all values in cache.
- clear() - Method in class ninja.cache.CacheEhCacheImpl
- clear() - Method in class ninja.cache.CacheMemcachedImpl
- clear() - Method in class ninja.cache.NinjaCache
-
Clear all data from cache.
- clear() - Method in interface ninja.session.Session
-
Removes all values from the session.
- clear() - Method in class ninja.session.SessionImpl
- clearCurrentFlashCookieData() - Method in interface ninja.session.FlashScope
-
Clears all "current" flash data.
- clearCurrentFlashCookieData() - Method in class ninja.session.FlashScopeImpl
- clearLanguage(Result) - Method in interface ninja.i18n.Lang
-
Clears the current language.
- clearLanguage(Result) - Method in class ninja.i18n.LangImpl
- Clock - Interface in ninja.utils
- ClockImpl - Class in ninja.utils
- ClockImpl() - Constructor for class ninja.utils.ClockImpl
- code - Variable in enum ninja.Context.HTTP_STATUS
-
Deprecated.
- compileRoute(Route) - Method in class ninja.websockets.DefaultWebSockets
- compileRoute(Route) - Method in interface ninja.websockets.WebSockets
-
Configure the container for the websocket route.
- compileRoutes() - Method in interface ninja.Router
-
Compile all the routes that have been registered with the router.
- compileRoutes() - Method in class ninja.RouterImpl
- computeReverseRoute(List) - Method in class ninja.template.TemplateEngineFreemarkerReverseRouteHelper
- CONF_FILE_LOCATION_BY_CONVENTION - Static variable in interface ninja.utils.NinjaProperties
-
The default configuration.
- configure() - Method in class ninja.Bootstrap
- configure() - Method in class ninja.conf.NinjaBaseModule
- configure() - Method in class ninja.conf.NinjaClassicModule
- configure() - Method in class ninja.standalone.AbstractConsole
- configure() - Method in interface ninja.standalone.Console
-
Configures the standalone to prepare for being started.
- configured - Variable in class ninja.standalone.AbstractConsole
- Console<T extends Console> - Interface in ninja.standalone
- ConsoleBootstrap(NinjaPropertiesImpl) - Constructor for class ninja.standalone.NinjaConsole.ConsoleBootstrap
- constraintViolation - Variable in class ninja.validation.FieldViolation
- ConstraintViolation - Class in ninja.validation
-
A validation constraint violation
- ConstraintViolation(String, String, String, Object...) - Constructor for class ninja.validation.ConstraintViolation
-
Create a constraint violation
- contains(String) - Method in interface ninja.session.FlashScope
-
Checks if the key exists in the "current" flash data.
- contains(String) - Method in class ninja.session.FlashScopeImpl
- CONTENT_TYPE - Static variable in interface ninja.Context
-
Content-Type: ...
- contentType(String) - Method in class ninja.Result
-
Sets the content type.
- contentType(String) - Static method in class ninja.Results
- ContentTypes - Interface in ninja
- Context - Interface in ninja
- Context.HTTP_STATUS - Enum in ninja
-
Deprecated.
- Context.Impl - Interface in ninja
-
Impl is used to hide stuff that a user should not see on code completion.
- ContextExtractor() - Constructor for class ninja.params.ArgumentExtractors.ContextExtractor
- contextPath - Variable in class ninja.standalone.AbstractStandalone
- contextPath(String) - Method in class ninja.standalone.AbstractStandalone
- contextPath(String) - Method in interface ninja.standalone.Standalone
-
Sets the "context path" of the Ninja application.
- ControllerMethodInvoker - Class in ninja.params
-
Invokes methods on the controller, extracting arguments out
- ControllerMethods - Class in ninja
-
Functional interfaces for Ninja controller methods accepting up to X number of arguments with type inference.
- ControllerMethods() - Constructor for class ninja.ControllerMethods
- ControllerMethods.ControllerMethod - Interface in ninja
-
Marker interface that all functional interfaces will extend.
- ControllerMethods.ControllerMethod0 - Interface in ninja
- ControllerMethods.ControllerMethod1<A> - Interface in ninja
- ControllerMethods.ControllerMethod10<A,B,C,D,E,F,G,H,I,J> - Interface in ninja
- ControllerMethods.ControllerMethod11<A,B,C,D,E,F,G,H,I,J,K> - Interface in ninja
- ControllerMethods.ControllerMethod12<A,B,C,D,E,F,G,H,I,J,K,L> - Interface in ninja
- ControllerMethods.ControllerMethod13<A,B,C,D,E,F,G,H,I,J,K,L,M> - Interface in ninja
- ControllerMethods.ControllerMethod14<A,B,C,D,E,F,G,H,I,J,K,L,M,N> - Interface in ninja
- ControllerMethods.ControllerMethod15<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O> - Interface in ninja
- ControllerMethods.ControllerMethod2<A,B> - Interface in ninja
- ControllerMethods.ControllerMethod3<A,B,C> - Interface in ninja
- ControllerMethods.ControllerMethod4<A,B,C,D> - Interface in ninja
- ControllerMethods.ControllerMethod5<A,B,C,D,E> - Interface in ninja
- ControllerMethods.ControllerMethod6<A,B,C,D,E,F> - Interface in ninja
- ControllerMethods.ControllerMethod7<A,B,C,D,E,F,G> - Interface in ninja
- ControllerMethods.ControllerMethod8<A,B,C,D,E,F,G,H> - Interface in ninja
- ControllerMethods.ControllerMethod9<A,B,C,D,E,F,G,H,I> - Interface in ninja
- controllerReturned() - Method in interface ninja.Context
- controllerReturned() - Method in class ninja.WrappedContext
- CONTROLLERS_DIR - Static variable in interface ninja.utils.NinjaConstant
- convertRawUriToRegex(String) - Static method in class ninja.Route
-
Gets a raw uri like "/{name}/id/*" and returns "/([^/]*)/id/*." Also handles regular expressions if defined inside routes: For instance "/users/{username: [a-zA-Z][a-zA-Z_0-9]}" becomes "/users/([a-zA-Z][a-zA-Z_0-9])"
- Cookie - Class in ninja
-
An HTTP cookie
- Cookie(String, String, String, String, int, String, boolean, boolean) - Constructor for class ninja.Cookie
- Cookie.Builder - Class in ninja
- CookieDataCodec - Class in ninja.utils
-
CookieDataCodec and CookieDataCodecTest are imported from Play Framework.
- CookieDataCodec() - Constructor for class ninja.utils.CookieDataCodec
- CookieEncryption - Class in ninja.utils
-
This class encrypts/decrypts session cookie data.
- CookieEncryption(NinjaProperties) - Constructor for class ninja.utils.CookieEncryption
- create() - Method in class ninja.utils.ImplFromPropertiesFactory
- create(Class<? extends Standalone>) - Static method in class ninja.standalone.StandaloneHelper
- create(String, Object...) - Static method in class ninja.validation.ConstraintViolation
-
Deprecated.
- create(FileItemStream) - Method in class ninja.uploads.DiskFileItemProvider
- create(FileItemStream) - Method in interface ninja.uploads.FileItemProvider
- create(FileItemStream) - Method in class ninja.uploads.MemoryFileItemProvider
- create(FileItemStream) - Method in class ninja.uploads.NoFileItemProvider
- createBaseUrl(String, String, Integer, String) - Method in class ninja.standalone.AbstractStandalone
- createBaseUrls() - Method in class ninja.standalone.AbstractStandalone
- created(Optional<String>) - Static method in class ninja.Results
- created201 - ninja.Context.HTTP_STATUS
-
Deprecated.
- createForField(String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
-
Deprecated.
- createForFieldWithDefault(String, String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
-
Deprecated.
- createServerUrl(String, String, Integer) - Method in class ninja.standalone.AbstractStandalone
- createServerUrls() - Method in class ninja.standalone.AbstractStandalone
- createSSLContext() - Method in class ninja.standalone.AbstractStandalone
- createSSLContext(URI, char[], URI, char[]) - Static method in class ninja.standalone.StandaloneHelper
- createWithDefault(String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
-
Deprecated.
- credentialsValidator - Variable in class ninja.BasicAuthFilter
- cron() - Method in annotation type ninja.scheduler.Schedule
-
A CRON-like expression containing the second, minute, hour, day of month, month, and day of week.
- CronExpression - Class in ninja.scheduler.cron
-
Represent a CRON expression.
- CronExpression(String) - Constructor for class ninja.scheduler.cron.CronExpression
-
Build a new instance.
- CronExpressionPart - Interface in ninja.scheduler.cron
-
Represents a subpart of a CRON expression.
- cronZone() - Method in annotation type ninja.scheduler.Schedule
-
A time zone for which the CRON expression will be resolved.
- Crypto - Class in ninja.utils
- Crypto(NinjaProperties) - Constructor for class ninja.utils.Crypto
-
Secret is a secret key.
- CsvParamParser(Class<T[]>, ParamParser<T>) - Constructor for class ninja.params.ParamParsers.CsvParamParser
- currentTimeMillis() - Method in interface ninja.utils.Clock
- currentTimeMillis() - Method in class ninja.utils.ClockImpl
D
- DATE - Static variable in class ninja.Result
- DateParamParser() - Constructor for class ninja.params.ParamParsers.DateParamParser
- DateUtil - Class in ninja.utils
- DateUtil() - Constructor for class ninja.utils.DateUtil
- DateValidator(IsDate) - Constructor for class ninja.validation.Validators.DateValidator
- DB_CONNECTION_PASSWORD - Static variable in interface ninja.utils.NinjaConstant
-
Password for db connection
- DB_CONNECTION_URL - Static variable in interface ninja.utils.NinjaConstant
-
eg.
- DB_CONNECTION_USERNAME - Static variable in interface ninja.utils.NinjaConstant
-
Username for db connection
- decode(Map<String, String>, String) - Static method in class ninja.utils.CookieDataCodec
- decr(String) - Method in class ninja.cache.NinjaCache
-
Decrement the element value (must be a Number) by 1.
- decr(String, int) - Method in interface ninja.cache.Cache
-
Decrements key by value.
- decr(String, int) - Method in class ninja.cache.CacheEhCacheImpl
- decr(String, int) - Method in class ninja.cache.CacheMemcachedImpl
- decr(String, int) - Method in class ninja.cache.NinjaCache
-
Decrement the element value (must be a Number).
- decrypt(String) - Method in class ninja.utils.CookieEncryption
-
Decrypts data with secret key.
- DEFAULT_CONTEXT_PATH - Static variable in interface ninja.standalone.Standalone
- DEFAULT_DEV_NINJA_SSL_KEYSTORE_PASSWORD - Static variable in interface ninja.standalone.Standalone
- DEFAULT_DEV_NINJA_SSL_KEYSTORE_URI - Static variable in interface ninja.standalone.Standalone
- DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_PASSWORD - Static variable in interface ninja.standalone.Standalone
- DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_URI - Static variable in interface ninja.standalone.Standalone
- DEFAULT_HOST - Static variable in interface ninja.standalone.Standalone
- DEFAULT_IDLE_TIMEOUT - Static variable in interface ninja.standalone.Standalone
- DEFAULT_PORT - Static variable in interface ninja.standalone.Standalone
- DEFAULT_SSL_PORT - Static variable in interface ninja.standalone.Standalone
- DEFAULT_STANDALONE_CLASS - Static variable in interface ninja.standalone.Standalone
- DefaultWebSockets - Class in ninja.websockets
-
Default implementation of WebSockets (which is of course disabled).
- DefaultWebSockets() - Constructor for class ninja.websockets.DefaultWebSockets
- delay() - Method in annotation type ninja.scheduler.Schedule
-
The delay between executions.
- delayProperty() - Method in annotation type ninja.scheduler.Schedule
-
The property to read the delay from.
- delete(String) - Method in interface ninja.cache.Cache
-
Delete key from cache.
- delete(String) - Method in class ninja.cache.CacheEhCacheImpl
- delete(String) - Method in class ninja.cache.CacheMemcachedImpl
- delete(String) - Method in class ninja.cache.NinjaCache
-
Delete an element from the cache.
- DELETE() - Method in class ninja.RouteBuilderImpl
- DELETE() - Method in interface ninja.Router
- DELETE() - Method in class ninja.RouterImpl
- determineModeFromSystemProperties() - Static method in class ninja.utils.NinjaModeHelper
-
returns an empty Optional
if no mode is set. - determineModeFromSystemPropertiesOrProdIfNotSet() - Static method in class ninja.utils.NinjaModeHelper
-
returns NinjaMode.dev if no mode is set.
- dev - ninja.utils.NinjaMode
- DiagnosticError - Class in ninja.diagnostics
-
Represents an application error/exception that includes extra information in order to diagnose it.
- DiagnosticError(String, Throwable, URI, List<String>, int, int, Result) - Constructor for class ninja.diagnostics.DiagnosticError
- DiagnosticError(String, Throwable, Result) - Constructor for class ninja.diagnostics.DiagnosticError
- DiagnosticErrorBuilder - Class in ninja.diagnostics
-
Utility class for building
DiagnosticError
instances. - DiagnosticErrorBuilder() - Constructor for class ninja.diagnostics.DiagnosticErrorBuilder
- DiagnosticErrorRenderer - Class in ninja.diagnostics
-
Utility class for rendering
DiagnosticError
instances as a Result. - DIAGNOSTICS_KEY_NAME - Static variable in interface ninja.utils.NinjaConstant
- discard() - Method in interface ninja.session.FlashScope
-
Discards all "outgoing" flash data but retains all "current" flash data.
- discard() - Method in class ninja.session.FlashScopeImpl
- discard(String) - Method in interface ninja.session.FlashScope
-
Discards the key from the "outgoing" flash data but retains it in the "current" flash data.
- discard(String) - Method in class ninja.session.FlashScopeImpl
- DiskFileItemProvider - Class in ninja.uploads
-
FileItemProvider
that save uploaded files on disk, in a temporary folder. - DiskFileItemProvider(NinjaProperties) - Constructor for class ninja.uploads.DiskFileItemProvider
- dispose() - Method in class ninja.scheduler.Scheduler
- Dispose - Annotation Type in ninja.lifecycle
-
Annotation indicating this method should be called on application shut down.
- doConfigure() - Method in class ninja.standalone.AbstractConsole
- doConfigure() - Method in class ninja.standalone.NinjaConsole
- doesClassExist(String, Object) - Static method in class ninja.utils.SwissKnife
-
Used to check whether a class exists on the classpath.
- doJoin() - Method in class ninja.standalone.AbstractStandalone
- doNotCacheContent() - Method in class ninja.Result
-
This function sets Cache-Control: no-cache, no-store Date: (current date) Expires: 1970 => it therefore effectively forces the browser and every proxy in between not to cache content.
- doPostConfigure() - Method in class ninja.standalone.AbstractConsole
- doPostConfigure() - Method in class ninja.standalone.AbstractStandalone
- doPreConfigure() - Method in class ninja.standalone.AbstractConsole
- doPreConfigure() - Method in class ninja.standalone.AbstractStandalone
- doShutdown() - Method in class ninja.standalone.AbstractConsole
- doShutdown() - Method in class ninja.standalone.NinjaConsole
- doStart() - Method in class ninja.standalone.AbstractConsole
- doStart() - Method in class ninja.standalone.NinjaConsole
- DoubleParamParser() - Constructor for class ninja.params.ParamParsers.DoubleParamParser
E
- EmptyStringParamParser() - Constructor for class ninja.params.ParamParsers.EmptyStringParamParser
- encode(Map<String, String>) - Static method in class ninja.utils.CookieDataCodec
- encrypt(String) - Method in class ninja.utils.CookieEncryption
-
Encrypts data with secret key.
- enumClass() - Method in annotation type ninja.validation.IsEnum
-
The enum class.
- EnumValidator(IsEnum) - Constructor for class ninja.validation.Validators.EnumValidator
- equals(Object) - Method in class ninja.Cookie
- equals(Object) - Method in class ninja.utils.MethodReference
- error - Variable in class ninja.utils.Message
- error(String) - Method in interface ninja.session.FlashScope
-
Same as calling
flash.put("error", "your value");
. - error(String) - Method in class ninja.session.FlashScopeImpl
- ETAG - Static variable in interface ninja.utils.HttpHeaderConstants
- exec(List) - Method in class ninja.template.TemplateEngineFreemarkerAssetsAtMethod
- exec(List) - Method in class ninja.template.TemplateEngineFreemarkerI18nMethod
- exec(List) - Method in class ninja.template.TemplateEngineFreemarkerPrettyTimeMethod
- exec(List) - Method in class ninja.template.TemplateEngineFreemarkerReverseRouteMethod
- exec(List) - Method in class ninja.template.TemplateEngineFreemarkerWebJarsAtMethod
- execute(Environment, Map, TemplateModel[], TemplateDirectiveBody) - Method in class ninja.template.directives.TemplateEngineFreemarkerAuthenticityFormDirective
- execute(Environment, Map, TemplateModel[], TemplateDirectiveBody) - Method in class ninja.template.directives.TemplateEngineFreemarkerAuthenticityTokenDirective
- EXPIRES - Static variable in class ninja.Result
- EXPIRY_TIME_KEY - Static variable in interface ninja.session.Session
- externalConfiguration(String) - Method in class ninja.utils.NinjaPropertiesImpl.Builder
-
A path pointing to the location of an external configuration.
- externalConfigurationPath - Variable in class ninja.standalone.AbstractConsole
- externalConfigurationPath(String) - Method in class ninja.standalone.AbstractConsole
- externalConfigurationPath(String) - Method in interface ninja.standalone.Console
- extract(Context) - Method in interface ninja.params.ArgumentExtractor
-
Extract the argument from the context
- extract(Context) - Method in class ninja.params.ArgumentExtractors.AttributeExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.BodyAsExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.ContextExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.FileItemParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.FileItemParamsExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.FileParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.FileParamsExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.FlashExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.HeaderExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.HeadersExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.InputStreamParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.InputStreamParamsExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.ParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.ParamsExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.PathParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.SessionExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.SessionParamExtractor
- extract(Context) - Method in class ninja.params.ArgumentExtractors.ValidationExtractor
- extract(Context) - Method in class ninja.params.ParsingArgumentExtractor
- extract(Context) - Method in class ninja.params.ParsingArrayExtractor
- extract(Context) - Method in class ninja.params.ValidatingArgumentExtractor
- extract(Context) - Method in class ninja.websockets.WebSocketHandshakeExtractor
F
- FailedDisposeException - Exception in ninja.lifecycle
-
Exception thrown when an error occurs when disposing of a bean
- FailedDisposeException() - Constructor for exception ninja.lifecycle.FailedDisposeException
- FailedDisposeException(String) - Constructor for exception ninja.lifecycle.FailedDisposeException
- FailedDisposeException(String, Throwable) - Constructor for exception ninja.lifecycle.FailedDisposeException
- FailedDisposeException(Throwable) - Constructor for exception ninja.lifecycle.FailedDisposeException
- FailedStartException - Exception in ninja.lifecycle
-
Exception thrown when an error occurs while starting a bean
- FailedStartException() - Constructor for exception ninja.lifecycle.FailedStartException
- FailedStartException(String) - Constructor for exception ninja.lifecycle.FailedStartException
- FailedStartException(String, Throwable) - Constructor for exception ninja.lifecycle.FailedStartException
- FailedStartException(Throwable) - Constructor for exception ninja.lifecycle.FailedStartException
- fallbackContentType() - Method in class ninja.Result
- fallbackContentType(String) - Method in class ninja.Result
- field - Variable in class ninja.validation.FieldViolation
- fieldKey() - Method in annotation type ninja.validation.IsDate
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.IsEnum
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.IsFloat
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.IsInteger
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.IsUUID
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.Length
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.Matches
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.NumberValue
-
The key for formatting the field
- fieldKey() - Method in annotation type ninja.validation.Required
-
Deprecated.The key for formatting the field
- FieldViolation - Class in ninja.validation
- FieldViolation(String, ConstraintViolation) - Constructor for class ninja.validation.FieldViolation
- FileItem - Interface in ninja.uploads
-
This interface represents a file or form item that was received within a
multipart/form-data
POST request. - FileItemParamExtractor(Param) - Constructor for class ninja.params.ArgumentExtractors.FileItemParamExtractor
- FileItemParamsExtractor(Params) - Constructor for class ninja.params.ArgumentExtractors.FileItemParamsExtractor
- FileItemProvider - Interface in ninja.uploads
-
This interface represents a file item provider, to create
FileItem
for each uploaded file. - FILENAME_PATH_PARAM - Static variable in class ninja.AssetsController
- FileParamExtractor(Param) - Constructor for class ninja.params.ArgumentExtractors.FileParamExtractor
- FileParamsExtractor(Params) - Constructor for class ninja.params.ArgumentExtractors.FileParamsExtractor
- FileProvider - Annotation Type in ninja.uploads
-
Indicates that this annotation should use the given file provider to handle uploaded files.
- filter(FilterChain, Context) - Method in class ninja.AuthenticityFilter
- filter(FilterChain, Context) - Method in class ninja.BasicAuthFilter
- filter(FilterChain, Context) - Method in interface ninja.Filter
-
Filter the request.
- filter(FilterChain, Context) - Method in class ninja.SecureFilter
- Filter - Interface in ninja
-
A simple filter that can be applied to controller methods or while classes.
- FilterChain - Interface in ninja
-
A filter chain
- filters(Class<? extends Filter>...) - Method in interface ninja.RouteBuilder
- filters(Class<? extends Filter>...) - Method in class ninja.RouteBuilderImpl
- filters(List<Class<? extends Filter>>) - Method in interface ninja.RouteBuilder
- filters(List<Class<? extends Filter>>) - Method in class ninja.RouteBuilderImpl
- FilterWith - Annotation Type in ninja
-
A simple annotation that let's you put a filter on a controller method or class.
- finalizeHeaders(Result) - Method in interface ninja.Context
-
Finalizing the headers copies all stuff into the headers.
- finalizeHeaders(Result) - Method in class ninja.utils.AbstractContext
- finalizeHeaders(Result) - Method in class ninja.WrappedContext
- finalizeHeaders(Result, Boolean) - Method in class ninja.utils.AbstractContext
- finalizeHeadersWithoutFlashAndSessionCookie(Result) - Method in interface ninja.Context
-
Finalizing the headers copies all stuff into the headers.
- finalizeHeadersWithoutFlashAndSessionCookie(Result) - Method in class ninja.utils.AbstractContext
- finalizeHeadersWithoutFlashAndSessionCookie(Result) - Method in class ninja.WrappedContext
- findAvailablePort(int, int) - Static method in class ninja.standalone.StandaloneHelper
- findFirstStackTraceElementWithSourceCodeInProject(Throwable) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- FLASH_SUFFIX - Static variable in interface ninja.utils.NinjaConstant
-
Suffix used for Ninja cookies.
- FlashExtractor() - Constructor for class ninja.params.ArgumentExtractors.FlashExtractor
- flashScope - Variable in class ninja.utils.AbstractContext
- FlashScope - Interface in ninja.session
-
Flash Scope consists of two kinds of data: "current" and "outgoing".
- FlashScopeImpl - Class in ninja.session
-
Default FlashScope implementation.
- FlashScopeImpl(NinjaProperties) - Constructor for class ninja.session.FlashScopeImpl
- FloatParamParser() - Constructor for class ninja.params.ParamParsers.FloatParamParser
- FloatValidator(IsFloat) - Constructor for class ninja.validation.Validators.FloatValidator
- forbidden() - Static method in class ninja.Results
- forbidden403 - ninja.Context.HTTP_STATUS
-
Deprecated.
- ForbiddenRequestException - Exception in ninja.exceptions
-
A convenience unchecked exception.
- ForbiddenRequestException() - Constructor for exception ninja.exceptions.ForbiddenRequestException
- ForbiddenRequestException(String) - Constructor for exception ninja.exceptions.ForbiddenRequestException
- ForbiddenRequestException(String, Throwable) - Constructor for exception ninja.exceptions.ForbiddenRequestException
- ForbiddenRequestException(Throwable) - Constructor for exception ninja.exceptions.ForbiddenRequestException
- formatForHttpHeader(Long) - Static method in class ninja.utils.DateUtil
-
Can be used to format a unix timestamp into http header compatible strings.
- formatForHttpHeader(Date) - Static method in class ninja.utils.DateUtil
-
Can be used to format a date into http header compatible strings.
- ForwardingServiceLoader<T> - Class in ninja.utils
-
Forwards method calls to an underlying java.util.ServiceLoader -- mainly to allow participating and mocking in unit tests.
- ForwardingServiceLoader(ServiceLoader<T>) - Constructor for class ninja.utils.ForwardingServiceLoader
- FrameworkModule - Class in ninja.conf
-
Application modules that extend this class will skip Ninja's default "classic" configuration and start with an empty slate.
- FrameworkModule() - Constructor for class ninja.conf.FrameworkModule
- freemarker(boolean) - Method in class ninja.conf.NinjaClassicModule
- FREEMARKER_CONFIGURATION_FILE_SUFFIX - Static variable in class ninja.template.TemplateEngineFreemarker
- FREEMARKER_CONFIGURATION_OLDVERSION - Static variable in class ninja.template.TemplateEngineFreemarker
G
- generateSecret() - Static method in class ninja.utils.SecretGenerator
-
Generates a random String of length 64.
- generateSecret(Random) - Static method in class ninja.utils.SecretGenerator
-
!!!! Only for testing purposes !!!! Usually you want to use
SecretGenerator.generateSecret()
- GenericEnumParamParser(Class<E>) - Constructor for class ninja.params.ParamParsers.GenericEnumParamParser
- get() - Method in class ninja.cache.CacheProvider
- get() - Method in class ninja.utils.LoggerProvider
- get() - Method in class ninja.utils.ObjectMapperProvider
- get() - Method in class ninja.utils.XmlMapperProvider
- get(String) - Method in interface ninja.cache.Cache
-
Returns the object for this key or null if not found.
- get(String) - Method in class ninja.cache.CacheEhCacheImpl
- get(String) - Method in class ninja.cache.CacheMemcachedImpl
- get(String) - Method in class ninja.cache.NinjaCache
-
Retrieve an object.
- get(String) - Method in interface ninja.session.FlashScope
-
Gets a value if its in either the "current" or "outgoing" flash data.
- get(String) - Method in class ninja.session.FlashScopeImpl
- get(String) - Method in interface ninja.session.Session
-
Returns the value of the key or null.
- get(String) - Method in class ninja.session.SessionImpl
- get(String) - Method in interface ninja.utils.NinjaProperties
-
Get a String property or null if it is not there...
- get(String) - Method in class ninja.utils.NinjaPropertiesImpl
- get(String[]) - Method in interface ninja.cache.Cache
-
Returns all objects for the keys.
- get(String[]) - Method in class ninja.cache.CacheEhCacheImpl
- get(String[]) - Method in class ninja.cache.CacheMemcachedImpl
- get(String...) - Method in class ninja.cache.NinjaCache
-
Bulk retrieve.
- get(String, Class<T>) - Method in class ninja.cache.NinjaCache
-
Convenient clazz to get a value a class type;
- get(String, String, String) - Method in class ninja.utils.OverlayedNinjaProperties
- get(String, Optional<String>, Object...) - Method in interface ninja.i18n.Messages
-
Get a translated string.
- get(String, Optional<String>, Object...) - Method in class ninja.i18n.MessagesImpl
- get(String, Context, Optional<Result>, Object...) - Method in interface ninja.i18n.Messages
-
Get a translated string.
- get(String, Context, Optional<Result>, Object...) - Method in class ninja.i18n.MessagesImpl
- GET() - Method in class ninja.RouteBuilderImpl
- GET() - Method in interface ninja.Router
- GET() - Method in class ninja.RouterImpl
- getAcceptCharset() - Method in interface ninja.Context
-
Get the charset that is acceptable for the client.
- getAcceptCharset() - Method in class ninja.utils.AbstractContext
- getAcceptCharset() - Method in class ninja.WrappedContext
- getAcceptContentType() - Method in interface ninja.Context
-
Get the content type that is acceptable for the client.
- getAcceptContentType() - Method in class ninja.utils.AbstractContext
- getAcceptContentType() - Method in class ninja.WrappedContext
- getAcceptEncoding() - Method in interface ninja.Context
-
Get the encoding that is acceptable for the client.
- getAcceptEncoding() - Method in class ninja.utils.AbstractContext
- getAcceptEncoding() - Method in class ninja.WrappedContext
- getAcceptLanguage() - Method in interface ninja.Context
-
Get the language that is acceptable for the client.
- getAcceptLanguage() - Method in class ninja.utils.AbstractContext
- getAcceptLanguage() - Method in class ninja.WrappedContext
- getAll(Optional<String>) - Method in interface ninja.i18n.Messages
-
Deprecated.Might be removed from further releases. Usually is not implemented in a thread safe way and is error prone. Returns all messages for a language we have. Please note that this method does NOT format any MessageFormat values. You have to do that yourself in the controller logic most likely. Note: If you don't want to determine the language yourself please use
Messages#getAll(Context, Result)
- getAll(Optional<String>) - Method in class ninja.i18n.MessagesImpl
- getAll(Context, Optional<Result>) - Method in interface ninja.i18n.Messages
-
Returns all messages for the default language in that context / result.
- getAll(Context, Optional<Result>) - Method in class ninja.i18n.MessagesImpl
- getAllCurrentNinjaProperties() - Method in interface ninja.utils.NinjaProperties
- getAllCurrentNinjaProperties() - Method in class ninja.utils.NinjaPropertiesImpl
- getArgumentClass() - Method in class ninja.params.ArgumentClassHolder
- getArrayParser(Class<?>) - Method in class ninja.params.ParamParsers
- getArrayType() - Method in class ninja.params.ParamParsers.ArrayParamParser
- getAttribute(String) - Method in interface ninja.Context
-
Gets an attribute value previously set by
Context.setAttribute(java.lang.String, java.lang.Object)
. - getAttribute(String) - Method in class ninja.WrappedContext
- getAttribute(String, Class<T>) - Method in interface ninja.Context
-
Gets an attribute value previously set by
Context.setAttribute(java.lang.String, java.lang.Object)
. - getAttribute(String, Class<T>) - Method in class ninja.utils.AbstractContext
- getAttribute(String, Class<T>) - Method in class ninja.WrappedContext
- getAttributes() - Method in interface ninja.Context
-
Get all the attributes from the request
- getAttributes() - Method in class ninja.WrappedContext
- getAuthenticityToken() - Method in interface ninja.session.Session
- getAuthenticityToken() - Method in class ninja.session.SessionImpl
- getBadRequestResult(Context, BadRequestException) - Method in interface ninja.Ninja
-
Should handle cases where the client sent strange date that led to an error.
- getBadRequestResult(Context, BadRequestException) - Method in class ninja.NinjaDefault
- getBaseUrls() - Method in class ninja.standalone.AbstractStandalone
- getBaseUrls() - Method in interface ninja.standalone.Standalone
-
Get the urls for the application that is configured to start.
- getBeanViolations() - Method in interface ninja.validation.Validation
-
Deprecated.
- getBeanViolations() - Method in class ninja.validation.ValidationImpl
- getBeanViolations(String) - Method in interface ninja.validation.Validation
-
Deprecated.
- getBeanViolations(String) - Method in class ninja.validation.ValidationImpl
- getBodyParserEngineForContentType(String) - Method in interface ninja.bodyparser.BodyParserEngineManager
-
Find the body parser engine for the given content type
- getBodyParserEngineForContentType(String) - Method in class ninja.bodyparser.BodyParserEngineManagerImpl
- getBoolean(String) - Method in interface ninja.utils.NinjaProperties
- getBoolean(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getBoolean(String, Boolean, Boolean) - Method in class ninja.utils.OverlayedNinjaProperties
- getBooleanOrDie(String) - Method in interface ninja.utils.NinjaProperties
-
The "die" method forces this key to be set.
- getBooleanOrDie(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getBooleanWithDefault(String, Boolean) - Method in interface ninja.utils.NinjaProperties
-
Get a Boolean property or a default value when property cannot be found in any configuration file.
- getBooleanWithDefault(String, Boolean) - Method in class ninja.utils.NinjaPropertiesImpl
- getCharset() - Method in class ninja.Result
- getCharsetOfContentType(String, String) - Static method in class ninja.utils.HttpHeaderUtils
-
A http content type should contain a character set like "application/json; charset=utf-8".
- getCharsetOfContentTypeOrUtf8(String) - Static method in class ninja.utils.HttpHeaderUtils
-
A http content type should contain a character set like "application/json; charset=utf-8".
- getComment() - Method in class ninja.Cookie
- getConfiguration() - Method in class ninja.template.TemplateEngineFreemarker
-
Allows to modify the FreeMarker configuration.
- getContentType() - Method in interface ninja.bodyparser.BodyParserEngine
-
The content type this BodyParserEngine can handle MUST BE THREAD SAFE TO CALL!
- getContentType() - Method in class ninja.bodyparser.BodyParserEngineJson
- getContentType() - Method in class ninja.bodyparser.BodyParserEngineMultipartPost
- getContentType() - Method in class ninja.bodyparser.BodyParserEnginePost
- getContentType() - Method in class ninja.bodyparser.BodyParserEngineXml
- getContentType() - Method in class ninja.Result
- getContentType() - Method in interface ninja.template.TemplateEngine
-
Get the content type this template engine renders
- getContentType() - Method in class ninja.template.TemplateEngineFreemarker
- getContentType() - Method in class ninja.template.TemplateEngineJson
- getContentType() - Method in class ninja.template.TemplateEngineJsonP
- getContentType() - Method in class ninja.template.TemplateEngineText
- getContentType() - Method in class ninja.template.TemplateEngineXml
- getContentType() - Method in interface ninja.uploads.FileItem
-
Returns the content type passed by the browser or
null
if not defined. - getContentType(Context, String) - Method in class ninja.utils.MimeTypes
-
return the content-type from a file name.
- getContentType(Context, String, String) - Method in class ninja.utils.MimeTypes
-
return the content-type from a file name.
For a text-based content-type, also return the encoding suffix eg. - getContentTypeFromContentTypeAndCharacterSetting(String) - Static method in class ninja.utils.HttpHeaderUtils
-
A http content type should contain a character set like "application/json; charset=utf-8".
- getContentTypes() - Method in interface ninja.bodyparser.BodyParserEngineManager
-
Returns a set of the registered body parser engine content types.
- getContentTypes() - Method in class ninja.bodyparser.BodyParserEngineManagerImpl
- getContentTypes() - Method in interface ninja.template.TemplateEngineManager
-
Returns a set of the registered template engine content types.
- getContentTypes() - Method in class ninja.template.TemplateEngineManagerImpl
- getContextPath() - Method in interface ninja.Context
-
Get the context path on which the application is running That means: - when running on root the context path is empty - when running on context there is NEVER a trailing slash We conform to the following rules: Returns the portion of the request URI that indicates the context of the request.
- getContextPath() - Method in class ninja.standalone.AbstractStandalone
- getContextPath() - Method in interface ninja.standalone.Standalone
- getContextPath() - Method in class ninja.utils.AbstractContext
- getContextPath() - Method in interface ninja.utils.NinjaProperties
-
Returns context under which the application is currently running.
- getContextPath() - Method in class ninja.utils.NinjaPropertiesImpl
-
Get the context path on which the application is running That means: - when running on root the context path is empty - when running on context there is NEVER a trailing slash We conform to the following rules: Returns the portion of the request URI that indicates the context of the request.
- getContextPath() - Method in class ninja.WrappedContext
- getControllerClass() - Method in class ninja.Route
- getControllerMethod() - Method in class ninja.Route
- getCookie(String) - Method in interface ninja.Context
-
Get cookie from context.
- getCookie(String) - Method in class ninja.Result
-
Returns cookie with that name or null.
- getCookie(String) - Method in class ninja.WrappedContext
- getCookies() - Method in interface ninja.Context
-
Get all cookies from the context.
- getCookies() - Method in class ninja.Result
- getCookies() - Method in class ninja.WrappedContext
- getCookieValue(String) - Method in interface ninja.Context
-
Get the cookie value from the request, if defined
- getCookieValue(String) - Method in class ninja.utils.AbstractContext
- getCookieValue(String) - Method in class ninja.WrappedContext
- getCurrentFlashCookieData() - Method in interface ninja.session.FlashScope
-
Gets all "current" flash data.
- getCurrentFlashCookieData() - Method in class ninja.session.FlashScopeImpl
- getData() - Method in interface ninja.session.Session
- getData() - Method in class ninja.session.SessionImpl
- getDeclaringClass() - Method in class ninja.utils.MethodReference
- getDefaultMessage() - Method in class ninja.validation.ConstraintViolation
- getDomain() - Method in class ninja.Cookie
- getExternalConfigurationPath() - Method in class ninja.standalone.AbstractConsole
- getExternalConfigurationPath() - Method in interface ninja.standalone.Console
- getExtractedType() - Method in interface ninja.params.ArgumentExtractor
-
Get the type of the argument that is extracted
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.AttributeExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.BodyAsExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.ContextExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.FileItemParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.FileItemParamsExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.FileParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.FileParamsExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.FlashExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.HeaderExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.HeadersExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.InputStreamParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.InputStreamParamsExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.ParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.ParamsExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.PathParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.SessionExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.SessionParamExtractor
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.ValidationExtractor
- getExtractedType() - Method in class ninja.params.ParsingArgumentExtractor
- getExtractedType() - Method in class ninja.params.ParsingArrayExtractor
- getExtractedType() - Method in class ninja.params.ValidatingArgumentExtractor
- getExtractedType() - Method in class ninja.websockets.WebSocketHandshakeExtractor
- getExtractorForType(Class<?>) - Static method in class ninja.params.ArgumentExtractors
- getFieldKey() - Method in class ninja.validation.ConstraintViolation
- getFieldName() - Method in interface ninja.params.ArgumentExtractor
-
Get the field name that is being extracted, if this value is extracted from a field
- getFieldName() - Method in class ninja.params.ArgumentExtractors.AttributeExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.BodyAsExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.ContextExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.FileItemParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.FileItemParamsExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.FileParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.FileParamsExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.FlashExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.HeaderExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.HeadersExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.InputStreamParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.InputStreamParamsExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.ParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.ParamsExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.PathParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.SessionExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.SessionParamExtractor
- getFieldName() - Method in class ninja.params.ArgumentExtractors.ValidationExtractor
- getFieldName() - Method in class ninja.params.ParsingArgumentExtractor
- getFieldName() - Method in class ninja.params.ParsingArrayExtractor
- getFieldName() - Method in class ninja.params.ValidatingArgumentExtractor
- getFieldName() - Method in class ninja.websockets.WebSocketHandshakeExtractor
- getFieldViolations() - Method in interface ninja.validation.Validation
-
Deprecated.
- getFieldViolations() - Method in class ninja.validation.ValidationImpl
- getFieldViolations(String) - Method in interface ninja.validation.Validation
-
Deprecated.
- getFieldViolations(String) - Method in class ninja.validation.ValidationImpl
- getFile() - Method in interface ninja.uploads.FileItem
-
Returns an
File
that can be used to retrieve the contents of the file. - getFileItemIterator() - Method in interface ninja.Context
-
Deprecated.This method is kept for backward compatibility, use
FileProvider
to specify whichFileItemProvider
should be used to handle uploaded files, and access them usingContext.getParameterAsFileItem(String)
. - getFileItemIterator() - Method in class ninja.WrappedContext
- getFileName() - Method in interface ninja.uploads.FileItem
-
Returns the original filename in the client's filesystem, as provided by the browser (or other client software).
- getFilterChain() - Method in class ninja.Route
- getFlashCookie() - Method in interface ninja.Context
-
Deprecated.
- getFlashCookie() - Method in class ninja.utils.AbstractContext
-
Deprecated.
- getFlashCookie() - Method in class ninja.WrappedContext
- getFlashScope() - Method in interface ninja.Context
-
Returns the flash cookie.
- getFlashScope() - Method in class ninja.utils.AbstractContext
- getFlashScope() - Method in class ninja.WrappedContext
- getForbiddenResult(Context) - Method in interface ninja.Ninja
-
Should handle cases where access is forbidden Should lead to a html error 403 - forbidden (and be used with the same mindset).
- getForbiddenResult(Context) - Method in class ninja.NinjaDefault
- getForbiddenResult(Context, ForbiddenRequestException) - Method in interface ninja.Ninja
-
Should handle cases where access is forbidden Should lead to a html error 403 - forbidden (and be used with the same mindset).
- getForbiddenResult(Context, ForbiddenRequestException) - Method in class ninja.NinjaDefault
- getFunctionalMethod() - Method in class ninja.utils.LambdaRoute
- getFunctionalMethod() - Method in class ninja.utils.Lambdas.LambdaInfo
- getFunctionalMethod(SerializedLambda) - Static method in class ninja.utils.Lambdas
- getGeneralViolations() - Method in interface ninja.validation.Validation
-
Deprecated.
- getGeneralViolations() - Method in class ninja.validation.ValidationImpl
- getHeader(String) - Method in interface ninja.Context
-
Get the (first) request header with the given name
- getHeader(String) - Method in class ninja.WrappedContext
- getHeaders() - Method in interface ninja.Context
-
Get all the headers from the request
- getHeaders() - Method in class ninja.Result
- getHeaders() - Method in interface ninja.uploads.FileItem
-
Returns the file item headers.
- getHeaders() - Method in class ninja.WrappedContext
- getHeaders(String) - Method in interface ninja.Context
-
Get all the request headers with the given name.
- getHeaders(String) - Method in class ninja.WrappedContext
- getHost() - Method in class ninja.standalone.AbstractStandalone
- getHost() - Method in interface ninja.standalone.Standalone
- getHostname() - Method in interface ninja.Context
-
Returns the hostname as seen by the server.
- getHostname() - Method in class ninja.WrappedContext
- getHttpMethod() - Method in class ninja.Route
- getHttpStatus() - Method in exception ninja.exceptions.NinjaException
- getId() - Method in interface ninja.session.Session
- getId() - Method in class ninja.session.SessionImpl
- getIdleTimeout() - Method in class ninja.standalone.AbstractStandalone
- getIdleTimeout() - Method in interface ninja.standalone.Standalone
- getImplementationClass() - Method in class ninja.utils.ImplFromPropertiesFactory
- getImplementationMethod() - Method in class ninja.utils.LambdaRoute
- getImplementationMethod() - Method in class ninja.utils.Lambdas.LambdaInfo
- getImplementationMethod(SerializedLambda) - Static method in class ninja.utils.Lambdas
- getIndex() - Method in class ninja.RouteParameter
-
Gets the index of where the token starts in the original uri.
- getInjector() - Method in class ninja.Bootstrap
- getInjector() - Method in interface ninja.standalone.Console
-
Gets the Guice injector that booted the Ninja application.
- getInjector() - Method in class ninja.standalone.NinjaConsole
- getInputStream() - Method in interface ninja.Context
-
Get the input stream to read the request.
- getInputStream() - Method in interface ninja.uploads.FileItem
-
Returns an
InputStream
that can be used to retrieve the contents of the file. - getInputStream() - Method in class ninja.WrappedContext
- getInteger(String) - Method in interface ninja.utils.NinjaProperties
-
Get a property as Integer of null if not there / or property no integer
- getInteger(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getInteger(String, Integer, Integer) - Method in class ninja.utils.OverlayedNinjaProperties
- getIntegerOrDie(String) - Method in interface ninja.utils.NinjaProperties
-
The "die" method forces this key to be set.
- getIntegerOrDie(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getIntegerWithDefault(String, Integer) - Method in interface ninja.utils.NinjaProperties
-
Get a Integer property or a default value when property cannot be found in any configuration file.
- getIntegerWithDefault(String, Integer) - Method in class ninja.utils.NinjaPropertiesImpl
- getInternalServerErrorResult(Context, Exception) - Method in class ninja.NinjaDefault
-
Deprecated.
- getInternalServerErrorResult(Context, Exception, Result) - Method in interface ninja.Ninja
-
Should handle cases where an exception is thrown when handling a route that let to an internal server error.
- getInternalServerErrorResult(Context, Exception, Result) - Method in class ninja.NinjaDefault
- getItemType() - Method in class ninja.params.ParamParsers.ArrayParamParser
- getItemType() - Method in class ninja.params.ParamParsers.ListParamParser
- getJsonView() - Method in class ninja.Result
- getKind() - Method in class ninja.utils.Lambdas.LambdaInfo
- getLambda() - Method in class ninja.utils.Lambdas.LambdaInfo
- getLanguage(Context, Optional<Result>) - Method in interface ninja.i18n.Lang
-
Retrieve the current language or null if not set.
- getLanguage(Context, Optional<Result>) - Method in class ninja.i18n.LangImpl
- getLineNumber() - Method in exception ninja.exceptions.RenderingException
- getLineNumberFrom() - Method in class ninja.diagnostics.SourceSnippet
- getLineNumberOfError() - Method in class ninja.diagnostics.DiagnosticError
- getLineNumberOfSourceLines() - Method in class ninja.diagnostics.DiagnosticError
- getLineNumberTo() - Method in class ninja.diagnostics.SourceSnippet
- getLines() - Method in class ninja.diagnostics.SourceSnippet
- getListParser(Class<?>) - Method in class ninja.params.ParamParsers
- getLocaleFromStringOrDefault(Optional<String>) - Method in interface ninja.i18n.Lang
-
application.conf usually contains the following: application.languages=en,de This little helper converts a language code like (en, en-US etc) to a Java locale.
- getLocaleFromStringOrDefault(Optional<String>) - Method in class ninja.i18n.LangImpl
- getLoggableIdentifier() - Method in class ninja.standalone.AbstractStandalone
- getLong(String, Long, Long) - Method in class ninja.utils.OverlayedNinjaProperties
- getMaxAge() - Method in class ninja.Cookie
- getMessageKey() - Method in class ninja.validation.ConstraintViolation
- getMessageParams() - Method in class ninja.validation.ConstraintViolation
- getMethod() - Method in interface ninja.Context
-
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.
- getMethod() - Method in class ninja.WrappedContext
- getMethod(Class<?>, String) - Static method in class ninja.utils.Lambdas
- getMethod(String, String) - Static method in class ninja.utils.Lambdas
- getMethodName() - Method in class ninja.utils.MethodReference
- getMimeType(String) - Method in class ninja.utils.MimeTypes
-
return the mimetype from a file name
- getMimeType(String, String) - Method in class ninja.utils.MimeTypes
-
return the mimetype from a file name.
- getModule() - Static method in class ninja.lifecycle.LifecycleSupport
-
Get the lifecycle support module
- getModule() - Static method in class ninja.scheduler.SchedulerSupport
-
Get the scheduler support module
- getName() - Method in class ninja.Cookie
- getName() - Method in class ninja.RouteParameter
-
The name of the parameter such as "id" in "{id: [0-9]+}"
- getName() - Method in class ninja.standalone.AbstractConsole
- getName() - Method in interface ninja.standalone.Console
- getNextDelayMilliseconds(LocalDateTime) - Method in class ninja.scheduler.cron.CronExpression
-
Retrieves the delay from given datetime to the next match.
- getNextDelayMilliseconds(ZoneId) - Method in class ninja.scheduler.cron.CronExpression
-
Retrieves the delay from now to the next match.
- getNinjaMode() - Method in class ninja.standalone.AbstractConsole
- getNinjaMode() - Method in interface ninja.standalone.Console
- getNinjaProperties() - Method in class ninja.standalone.AbstractConsole
- getNinjaProperties() - Method in interface ninja.standalone.Console
-
Gets the NinjaProperties that were used to configure Ninja.
- getNotFoundResult(Context) - Method in interface ninja.Ninja
-
Should handle cases where no route can be found for a given request.
- getNotFoundResult(Context) - Method in class ninja.NinjaDefault
- getNotFoundResult(Context, RequestNotFoundException) - Method in interface ninja.Ninja
-
Should handle cases where no route can be found for a given request.
- getNotFoundResult(Context, RequestNotFoundException) - Method in class ninja.NinjaDefault
- getOrDie(String) - Method in interface ninja.utils.NinjaProperties
-
The "die" method forces this key to be set.
- getOrDie(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getOutgoingFlashCookieData() - Method in interface ninja.session.FlashScope
-
Gets all "outgoing" flash data.
- getOutgoingFlashCookieData() - Method in class ninja.session.FlashScopeImpl
- getOutputStream() - Method in interface ninja.utils.ResponseStreams
-
Get the output stream to write the response.
- getParameter(String) - Method in interface ninja.Context
-
Get the parameter with the given key from the request.
- getParameter(String) - Method in class ninja.WrappedContext
- getParameter(String, String) - Method in interface ninja.Context
-
Same like
Context.getParameter(String)
, but returns given defaultValue instead of null in case parameter cannot be found. - getParameter(String, String) - Method in class ninja.utils.AbstractContext
- getParameter(String, String) - Method in class ninja.WrappedContext
- getParameterAs(String, Class<T>) - Method in interface ninja.Context
-
Same like
Context.getParameter(String)
, but converts the parameter to Class type if found. - getParameterAs(String, Class<T>) - Method in class ninja.utils.AbstractContext
- getParameterAs(String, Class<T>) - Method in class ninja.WrappedContext
- getParameterAs(String, Class<T>, T) - Method in interface ninja.Context
-
Same like
Context.getParameter(String, String)
, but converts the parameter to Class type if found. - getParameterAs(String, Class<T>, T) - Method in class ninja.utils.AbstractContext
- getParameterAs(String, Class<T>, T) - Method in class ninja.WrappedContext
- getParameterAsFileItem(String) - Method in interface ninja.Context
-
Same like
Context.getParameter(String, String)
, but converts the parameter to File if found. - getParameterAsFileItem(String) - Method in class ninja.WrappedContext
- getParameterAsFileItems(String) - Method in interface ninja.Context
-
Get the files parameter with the given key from the request.
- getParameterAsFileItems(String) - Method in class ninja.WrappedContext
- getParameterAsInteger(String) - Method in interface ninja.Context
-
Same like
Context.getParameter(String)
, but converts the parameter to Integer if found. - getParameterAsInteger(String) - Method in class ninja.utils.AbstractContext
- getParameterAsInteger(String) - Method in class ninja.WrappedContext
- getParameterAsInteger(String, Integer) - Method in interface ninja.Context
-
Same like
Context.getParameter(String, String)
, but converts the parameter to Integer if found. - getParameterAsInteger(String, Integer) - Method in class ninja.utils.AbstractContext
- getParameterAsInteger(String, Integer) - Method in class ninja.WrappedContext
- getParameterFileItems() - Method in interface ninja.Context
-
Get all the file parameters from the request
- getParameterFileItems() - Method in class ninja.WrappedContext
- getParameters() - Method in interface ninja.Context
-
Get all the parameters from the request
- getParameters() - Method in class ninja.Route
- getParameters() - Method in class ninja.WrappedContext
- getParameterValues(String) - Method in interface ninja.Context
-
Get the parameter with the given key from the request.
- getParameterValues(String) - Method in class ninja.WrappedContext
- getParamParser(Class<?>) - Method in class ninja.params.ParamParsers
- getParsedType() - Method in interface ninja.params.ParamParser
-
Get the type that this parser parses to
- getParsedType() - Method in class ninja.params.ParamParsers.BooleanParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.ByteParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.CharacterParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.CsvParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.DateParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.DoubleParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.EmptyStringParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.FloatParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.GenericEnumParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.IntegerParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.LongParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveBooleanParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveByteParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveCharacterParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveDoubleParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveFloatParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveIntegerParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveLongParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.PrimitiveShortParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.ShortParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.StringParamParser
- getParsedType() - Method in class ninja.params.ParamParsers.UUIDParamParser
- getPath() - Method in class ninja.Cookie
- getPathParameter(String) - Method in interface ninja.Context
-
Get the path parameter for the given key.
- getPathParameter(String) - Method in class ninja.utils.AbstractContext
- getPathParameter(String) - Method in class ninja.WrappedContext
- getPathParameterAsInteger(String) - Method in interface ninja.Context
-
Get the path parameter for the given key and convert it to Integer.
- getPathParameterAsInteger(String) - Method in class ninja.utils.AbstractContext
- getPathParameterAsInteger(String) - Method in class ninja.WrappedContext
- getPathParameterEncoded(String) - Method in interface ninja.Context
-
Get the path parameter for the given key.
- getPathParameterEncoded(String) - Method in class ninja.utils.AbstractContext
- getPathParameterEncoded(String) - Method in class ninja.WrappedContext
- getPathParametersEncoded(String) - Method in class ninja.Route
-
This method does not do any decoding / encoding.
- getPathParams() - Method in class ninja.ReverseRouter.Builder
- getPort() - Method in class ninja.standalone.AbstractStandalone
- getPort() - Method in interface ninja.standalone.Standalone
- getQueryParams() - Method in class ninja.ReverseRouter.Builder
- getReader() - Method in interface ninja.Context
-
Get the reader to read the request.
- getReader() - Method in class ninja.WrappedContext
- getRealClassNameLowerCamelCase(Object) - Static method in class ninja.utils.SwissKnife
-
Returns the lower class name.
- getRealRemoteAddr() - Method in class ninja.utils.AbstractContext
-
Get the "real" address of the client connection.
- getRegex() - Method in class ninja.RouteParameter
-
The regex of the parameter such as "[0-9]+" in "{id: [0-9]+}"
- getRemoteAddr() - Method in interface ninja.Context
-
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
- getRemoteAddr() - Method in class ninja.utils.AbstractContext
- getRemoteAddr() - Method in class ninja.WrappedContext
- getRenderable() - Method in class ninja.Result
- getRenderingExceptionResult(Context, RenderingException, Result) - Method in interface ninja.Ninja
-
Should handle cases where a
RenderingException
is thrown when handling the rendering of a Result. - getRenderingExceptionResult(Context, RenderingException, Result) - Method in class ninja.NinjaDefault
- getRequestContentType() - Method in interface ninja.Context
-
The Content-Type header field indicates the media type of the request body sent to the recipient.
- getRequestContentType() - Method in class ninja.WrappedContext
- getRequestedProtocols() - Method in class ninja.websockets.AbstractWebSocketHandshake
- getRequestedProtocols() - Method in interface ninja.websockets.WebSocketHandshake
-
The sub protocols requested by the client.
- getRequestParameterString() - Method in interface ninja.Context
-
Returns the parameter string that is contained in the request URL after the path.
- getRequestParameterString() - Method in class ninja.WrappedContext
- getRequestPath() - Method in interface ninja.Context
-
Returns the path that Ninja should act upon.
- getRequestPath() - Method in class ninja.utils.AbstractContext
- getRequestPath() - Method in class ninja.WrappedContext
- getRequestUri() - Method in interface ninja.Context
-
Deprecated.
- getRequestUri() - Method in class ninja.WrappedContext
- getResult() - Method in exception ninja.exceptions.RenderingException
- getReverseRoute(Class<?>, String) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(Class<?>, String) - Method in class ninja.RouterImpl
- getReverseRoute(Class<?>, String, Object...) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(Class<?>, String, Object...) - Method in class ninja.RouterImpl
- getReverseRoute(Class<?>, String, Map<String, Object>) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(Class<?>, String, Map<String, Object>) - Method in class ninja.RouterImpl
- getReverseRoute(Class<?>, String, Optional<Map<String, Object>>) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(Class<?>, String, Optional<Map<String, Object>>) - Method in class ninja.RouterImpl
- getReverseRoute(MethodReference) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(MethodReference) - Method in class ninja.RouterImpl
- getReverseRoute(MethodReference, Object...) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(MethodReference, Object...) - Method in class ninja.RouterImpl
- getReverseRoute(MethodReference, Map<String, Object>) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(MethodReference, Map<String, Object>) - Method in class ninja.RouterImpl
- getReverseRoute(MethodReference, Optional<Map<String, Object>>) - Method in interface ninja.Router
-
Deprecated.Reverse routing in the Router is not validated and does not URL-escape path or query parameters. Use
ninja.ReverseRouter
to build your reverse routes. - getReverseRoute(MethodReference, Optional<Map<String, Object>>) - Method in class ninja.RouterImpl
- getRoute() - Method in interface ninja.Context
-
Get the route for this context
- getRoute() - Method in class ninja.ReverseRouter.Builder
- getRoute() - Method in class ninja.utils.AbstractContext
- getRoute() - Method in class ninja.WrappedContext
- getRouteFor(String, String) - Method in interface ninja.Router
-
Get the route for the given method and URI
- getRouteFor(String, String) - Method in class ninja.RouterImpl
- getRouteForControllerClassAndMethod(Class<?>, String) - Method in interface ninja.Router
- getRouteForControllerClassAndMethod(Class<?>, String) - Method in class ninja.RouterImpl
- getRoutes() - Method in interface ninja.Router
-
Returns the list of compiled routes.
- getRoutes() - Method in class ninja.RouterImpl
- getScheme() - Method in interface ninja.Context
-
For instance: http://example.com/index returns "http".
- getScheme() - Method in class ninja.WrappedContext
- getSelectedProtocol() - Method in class ninja.websockets.AbstractWebSocketHandshake
- getSelectedProtocol() - Method in interface ninja.websockets.WebSocketHandshake
-
Gets the current selected sub protocol out of the requested sub protocols.
- getSerializedLambda() - Method in class ninja.utils.Lambdas.LambdaInfo
- getSerializedLambda(Object) - Static method in class ninja.utils.Lambdas
-
Tries to get a SerializedLambda from an Object by searching the class hierarchy for a
writeReplace
method. - getServerUrls() - Method in class ninja.standalone.AbstractStandalone
- getServerUrls() - Method in interface ninja.standalone.Standalone
-
Get the urls for the servers that are configured to start.
- getSession() - Method in interface ninja.Context
-
Returns the client side session.
- getSession() - Method in class ninja.utils.AbstractContext
- getSession() - Method in class ninja.WrappedContext
- getSessionCookie() - Method in interface ninja.Context
-
Deprecated.
- getSessionCookie() - Method in class ninja.utils.AbstractContext
-
Deprecated.
- getSessionCookie() - Method in class ninja.WrappedContext
- getSourceCodeRelativePathForStackTraceElement(StackTraceElement) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
-
Calculates the relative path of the source code file of a StackTrace element if its available.
- getSourceLines() - Method in class ninja.diagnostics.DiagnosticError
- getSourceLocation() - Method in class ninja.diagnostics.DiagnosticError
- getSourceLocation() - Method in class ninja.diagnostics.SourceSnippet
- getSourcePath() - Method in exception ninja.exceptions.RenderingException
- getSslKeystorePassword() - Method in class ninja.standalone.AbstractStandalone
- getSslKeystorePassword() - Method in interface ninja.standalone.Standalone
- getSslKeystoreUri() - Method in class ninja.standalone.AbstractStandalone
- getSslKeystoreUri() - Method in interface ninja.standalone.Standalone
- getSslPort() - Method in class ninja.standalone.AbstractStandalone
- getSslPort() - Method in interface ninja.standalone.Standalone
- getSslTruststorePassword() - Method in class ninja.standalone.AbstractStandalone
- getSslTruststorePassword() - Method in interface ninja.standalone.Standalone
- getSslTruststoreUri() - Method in class ninja.standalone.AbstractStandalone
- getSslTruststoreUri() - Method in interface ninja.standalone.Standalone
- getState() - Method in interface ninja.lifecycle.LifecycleService
-
Get the state of the lifecycle
- getState() - Method in class ninja.lifecycle.LifecycleServiceImpl
- getStatusCode() - Method in class ninja.Result
- getStringArray(String) - Method in interface ninja.utils.NinjaProperties
-
eg.
- getStringArray(String) - Method in class ninja.utils.NinjaPropertiesImpl
- getSuffixOfTemplatingEngine() - Method in interface ninja.template.TemplateEngine
-
For instance returns ".ftl.html" Or .ftl.json.
- getSuffixOfTemplatingEngine() - Method in class ninja.template.TemplateEngineFreemarker
- getSuffixOfTemplatingEngine() - Method in class ninja.template.TemplateEngineJson
- getSuffixOfTemplatingEngine() - Method in class ninja.template.TemplateEngineJsonP
- getSuffixOfTemplatingEngine() - Method in class ninja.template.TemplateEngineText
- getSuffixOfTemplatingEngine() - Method in class ninja.template.TemplateEngineXml
- getTargetObject() - Method in class ninja.utils.LambdaRoute
- getTemplate() - Method in class ninja.Result
- getTemplateEngineForContentType(String) - Method in interface ninja.template.TemplateEngineManager
-
Find the template engine for the given content type
- getTemplateEngineForContentType(String) - Method in class ninja.template.TemplateEngineManagerImpl
- getTemplateForResult(Route, Result, String) - Method in class ninja.template.TemplateEngineHelper
- getThrowable() - Method in class ninja.diagnostics.DiagnosticError
- getTitle() - Method in class ninja.diagnostics.DiagnosticError
- getTitle() - Method in exception ninja.exceptions.RenderingException
- getToken() - Method in class ninja.RouteParameter
-
The exact string of the parameter such as "{id: [0-9]+}" in "{id: [0-9]+}"
- getUnauthorizedResult(Context) - Method in interface ninja.Ninja
-
Should handle cases where access is unauthorized Should lead to a html error 401 - unauthorized (and be used with the same mindset).
- getUnauthorizedResult(Context) - Method in class ninja.NinjaDefault
- getUnderlyingResult() - Method in class ninja.diagnostics.DiagnosticError
- getUpTime() - Method in interface ninja.lifecycle.LifecycleService
-
Get the time that the service has been up for
- getUpTime() - Method in class ninja.lifecycle.LifecycleServiceImpl
- getUri() - Method in class ninja.Route
- getURI(String, URI, URI) - Method in class ninja.utils.OverlayedNinjaProperties
- getUrl() - Method in class ninja.Route
-
Deprecated.Use getUri()
- getUrlForStringFromClasspathAsFileOrUrl(String) - Static method in class ninja.logging.LogbackConfigurator
-
Looks up a potential file from 1) The classpahth 2) From the filesystem 3) From an URL
- getValidatedType() - Method in interface ninja.validation.Validator
-
Get the type that this validator validates
- getValidatedType() - Method in class ninja.validation.Validators.DateValidator
- getValidatedType() - Method in class ninja.validation.Validators.EnumValidator
- getValidatedType() - Method in class ninja.validation.Validators.FloatValidator
- getValidatedType() - Method in class ninja.validation.Validators.IntegerValidator
- getValidatedType() - Method in class ninja.validation.Validators.JSRValidator
- getValidatedType() - Method in class ninja.validation.Validators.LengthValidator
- getValidatedType() - Method in class ninja.validation.Validators.MatchesValidator
- getValidatedType() - Method in class ninja.validation.Validators.NumberValidator
- getValidatedType() - Method in class ninja.validation.Validators.RequiredValidator
- getValidatedType() - Method in class ninja.validation.Validators.UUIDValidator
- getValidation() - Method in interface ninja.Context
-
Get the validation context
- getValidation() - Method in class ninja.utils.AbstractContext
- getValidation() - Method in class ninja.WrappedContext
- getValue() - Method in class ninja.Cookie
- getViolations() - Method in interface ninja.validation.Validation
-
Get all constraint violations.
- getViolations() - Method in class ninja.validation.ValidationImpl
- getViolations(String) - Method in interface ninja.validation.Validation
-
Get a complete list of field violations for a specified parameter.
- getViolations(String) - Method in class ninja.validation.ValidationImpl
- getWithDefault(String, String) - Method in interface ninja.utils.NinjaProperties
-
Get a String property or a default value when property cannot be found in any configuration file.
- getWithDefault(String, String) - Method in class ninja.utils.NinjaPropertiesImpl
- getWithDefault(String, String, Optional<String>, Object...) - Method in interface ninja.i18n.Messages
-
Gets a message for a message key.
- getWithDefault(String, String, Optional<String>, Object...) - Method in class ninja.i18n.MessagesImpl
- getWithDefault(String, String, Context, Optional<Result>, Object...) - Method in interface ninja.i18n.Messages
-
Gets a message for a message key.
- getWithDefault(String, String, Context, Optional<Result>, Object...) - Method in class ninja.i18n.MessagesImpl
- getWriter() - Method in interface ninja.utils.ResponseStreams
-
Get the writer to write the response.
- GLOBAL_FILTERS_DEFAULT_LOCATION - Static variable in class ninja.RouteBuilderImpl
- globalFilters(Class<? extends Filter>...) - Method in interface ninja.RouteBuilder
- globalFilters(Class<? extends Filter>...) - Method in class ninja.RouteBuilderImpl
- globalFilters(List<Class<? extends Filter>>) - Method in interface ninja.RouteBuilder
- globalFilters(List<Class<? extends Filter>>) - Method in class ninja.RouteBuilderImpl
H
- handleAsync() - Method in interface ninja.Context
-
Indicate that this request is going to be handled asynchronously
- handleAsync() - Method in class ninja.WrappedContext
- handleResult(Result, Context) - Method in class ninja.utils.ResultHandler
- handleTemplateException(TemplateException, Environment, Writer) - Method in class ninja.template.TemplateEngineFreemarkerExceptionHandler
- hasBeanViolation(String) - Method in interface ninja.validation.Validation
-
Deprecated.
- hasBeanViolation(String) - Method in class ninja.validation.ValidationImpl
- hasBeanViolations() - Method in interface ninja.validation.Validation
-
Deprecated.
- hasBeanViolations() - Method in class ninja.validation.ValidationImpl
- hasCookie(String) - Method in interface ninja.Context
-
Checks whether the context contains a given cookie.
- hasCookie(String) - Method in class ninja.WrappedContext
- hasFieldViolation(String) - Method in interface ninja.validation.Validation
-
Deprecated.
- hasFieldViolation(String) - Method in class ninja.validation.ValidationImpl
- hashCode() - Method in class ninja.Cookie
- hashCode() - Method in class ninja.utils.MethodReference
- hasLifecycleMethod(Class<?>) - Method in class ninja.lifecycle.LifecycleSupport
- hasScheduledMethod(Class<?>) - Method in class ninja.scheduler.Scheduler
- hasViolation(String) - Method in interface ninja.validation.Validation
-
Whether the validation context has a violation for the given field
- hasViolation(String) - Method in class ninja.validation.ValidationImpl
- hasViolations() - Method in interface ninja.validation.Validation
-
Whether the validation context has violations (including field and bean violations)
- hasViolations() - Method in class ninja.validation.ValidationImpl
- HEAD() - Method in class ninja.RouteBuilderImpl
- HEAD() - Method in interface ninja.Router
- HEAD() - Method in class ninja.RouterImpl
- Header - Annotation Type in ninja.params
-
Just an idea to inject a header right into the methods...
- HeaderExtractor(Header) - Constructor for class ninja.params.ArgumentExtractors.HeaderExtractor
- Headers - Annotation Type in ninja.params
-
Injects a multi-valued header right into the methods...
- HeadersExtractor(Headers) - Constructor for class ninja.params.ArgumentExtractors.HeadersExtractor
- host - Variable in class ninja.standalone.AbstractStandalone
- host(String) - Method in class ninja.standalone.AbstractStandalone
- host(String) - Method in interface ninja.standalone.Standalone
- html() - Method in class ninja.Result
-
Set the content type of this result to
Result.TEXT_HTML
. - html() - Static method in class ninja.Results
- HTTP_CACHE_CONTROL - Static variable in interface ninja.utils.NinjaConstant
-
Value to set max age in header.
- HTTP_CACHE_CONTROL_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
-
Default value for Cache-Control http header when not set in application.conf
- HTTP_METHOD_DELETE - Static variable in class ninja.Route
- HTTP_METHOD_GET - Static variable in class ninja.Route
- HTTP_METHOD_HEAD - Static variable in class ninja.Route
- HTTP_METHOD_OPTIONS - Static variable in class ninja.Route
- HTTP_METHOD_POST - Static variable in class ninja.Route
- HTTP_METHOD_PUT - Static variable in class ninja.Route
- HTTP_METHOD_WEBSOCKET - Static variable in class ninja.Route
- HTTP_USE_ETAG - Static variable in interface ninja.utils.NinjaConstant
-
Enable / disable etag E.g.
- HTTP_USE_ETAG_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
-
Default value / etag enabled by default.
- HttpCacheToolkit - Interface in ninja.utils
- HttpCacheToolkitImpl - Class in ninja.utils
- HttpCacheToolkitImpl(NinjaProperties) - Constructor for class ninja.utils.HttpCacheToolkitImpl
- HttpHeaderConstants - Interface in ninja.utils
-
Yet another Http Header Constants file.
- HttpHeaderUtils - Class in ninja.utils
- HttpHeaderUtils() - Constructor for class ninja.utils.HttpHeaderUtils
I
- I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_BAD_REQUEST_TEXT_KEY - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_FORBIDDEN_REQUEST_TEXT_KEY - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_INTERNAL_SERVER_ERROR_TEXT_KEY - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_NOT_FOUND_TEXT_KEY - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_DEFAULT - Static variable in interface ninja.utils.NinjaConstant
- I18N_NINJA_SYSTEM_UNAUTHORIZED_REQUEST_TEXT_KEY - Static variable in interface ninja.utils.NinjaConstant
- ID_KEY - Static variable in interface ninja.session.Session
- idleTimeout - Variable in class ninja.standalone.AbstractStandalone
- idleTimeout(long) - Method in class ninja.standalone.AbstractStandalone
- idleTimeout(long) - Method in interface ninja.standalone.Standalone
- IF_MODIFIED_SINCE - Static variable in interface ninja.utils.HttpHeaderConstants
- IF_NONE_MATCH - Static variable in interface ninja.utils.HttpHeaderConstants
- ImplFromPropertiesFactory<T> - Class in ninja.utils
-
An abstract provider that determines which implementation to load based on the value of key in
NinjaProperties
(aka application.conf). - ImplFromPropertiesFactory(Injector, NinjaProperties, String, Class<? extends T>, String, boolean, Logger) - Constructor for class ninja.utils.ImplFromPropertiesFactory
-
Tries to load implementation class defined as a property in NinjaProperties or will fallback to loading the default implementation class or nothing if its not set.
- incr(String) - Method in class ninja.cache.NinjaCache
-
Increment the element value (must be a Number) by 1.
- incr(String, int) - Method in interface ninja.cache.Cache
-
Increments key by value.
- incr(String, int) - Method in class ninja.cache.CacheEhCacheImpl
- incr(String, int) - Method in class ninja.cache.CacheMemcachedImpl
- incr(String, int) - Method in class ninja.cache.NinjaCache
-
Increment the element value (must be a Number).
- init(String, String) - Method in class ninja.utils.AbstractContext
- init(Context) - Method in interface ninja.session.FlashScope
-
Intended for use by implementations only.
- init(Context) - Method in class ninja.session.FlashScopeImpl
- init(Context) - Method in interface ninja.session.Session
-
Has to be called initially.
- init(Context) - Method in class ninja.session.SessionImpl
- init(Router) - Method in interface ninja.application.ApplicationRoutes
- initConfiguration(NinjaProperties) - Static method in class ninja.logging.LogbackConfigurator
- initialDelay() - Method in annotation type ninja.scheduler.Schedule
-
The delay before it should first be run.
- initialDelayProperty() - Method in annotation type ninja.scheduler.Schedule
-
The property to read the initial delay from.
- initRoutes() - Method in class ninja.Bootstrap
- initRoutes() - Method in class ninja.standalone.NinjaConsole.ConsoleBootstrap
- injector - Variable in class ninja.utils.AbstractContext
- InputStreamParamExtractor(Param) - Constructor for class ninja.params.ArgumentExtractors.InputStreamParamExtractor
- InputStreamParamsExtractor(Params) - Constructor for class ninja.params.ArgumentExtractors.InputStreamParamsExtractor
- IntegerParamParser() - Constructor for class ninja.params.ParamParsers.IntegerParamParser
- IntegerValidator(IsInteger) - Constructor for class ninja.validation.Validators.IntegerValidator
- internalServerError() - Static method in class ninja.Results
- InternalServerErrorException - Exception in ninja.exceptions
-
A convenience unchecked exception.
- InternalServerErrorException() - Constructor for exception ninja.exceptions.InternalServerErrorException
- InternalServerErrorException(String) - Constructor for exception ninja.exceptions.InternalServerErrorException
- InternalServerErrorException(String, Throwable) - Constructor for exception ninja.exceptions.InternalServerErrorException
- InternalServerErrorException(Throwable) - Constructor for exception ninja.exceptions.InternalServerErrorException
- invoke(Object, Context) - Method in class ninja.params.ControllerMethodInvoker
- invoke(Context, Class<T>) - Method in interface ninja.bodyparser.BodyParserEngine
-
Invoke the parser and get back a Java object populated with the content of this request.
- invoke(Context, Class<T>) - Method in class ninja.bodyparser.BodyParserEngineJson
- invoke(Context, Class<T>) - Method in class ninja.bodyparser.BodyParserEnginePost
- invoke(Context, Class<T>) - Method in class ninja.bodyparser.BodyParserEngineXml
- invoke(Context, Result) - Method in interface ninja.template.TemplateEngine
-
Render the given object to the given context
- invoke(Context, Result) - Method in class ninja.template.TemplateEngineFreemarker
- invoke(Context, Result) - Method in class ninja.template.TemplateEngineJson
- invoke(Context, Result) - Method in class ninja.template.TemplateEngineJsonP
- invoke(Context, Result) - Method in class ninja.template.TemplateEngineText
- invoke(Context, Result) - Method in class ninja.template.TemplateEngineXml
- isAopProxy(Class<?>) - Static method in class ninja.utils.AopUtils
-
Check whether the given class is a proxy.
- isAopProxy(Object) - Static method in class ninja.utils.AopUtils
-
Check whether the given object is a proxy.
- isAsync() - Method in interface ninja.Context
- isAsync() - Method in class ninja.WrappedContext
- IsDate - Annotation Type in ninja.validation
-
Validates that the field is a date.
- isDev() - Method in interface ninja.utils.NinjaProperties
-
Whether we are in dev mode
- isDev() - Method in class ninja.utils.NinjaPropertiesImpl
- isDiagnosticsEnabled() - Method in class ninja.NinjaDefault
-
Whether diagnostics are enabled.
- isDirectoryURL(URL) - Method in class ninja.AssetsControllerHelper
-
Check the URL is a directory.
- isEmpty() - Method in interface ninja.session.Session
-
Returns true if the session is empty, e.g.
- isEmpty() - Method in class ninja.session.SessionImpl
- isEnabled() - Method in class ninja.websockets.DefaultWebSockets
- isEnabled() - Method in interface ninja.websockets.WebSockets
-
If WebSocket support is detected and enabled by the underlying container.
- IsEnum - Annotation Type in ninja.validation
-
Validates that the field is a valid enum constant.
- IsFloat - Annotation Type in ninja.validation
-
Validates that the field is a floating point number.
- isHttpMethod(String) - Method in class ninja.Route
- isHttpMethodDelete() - Method in class ninja.Route
- isHttpMethodGet() - Method in class ninja.Route
- isHttpMethodHead() - Method in class ninja.Route
- isHttpMethodOptions() - Method in class ninja.Route
- isHttpMethodPost() - Method in class ninja.Route
- isHttpMethodPut() - Method in class ninja.Route
- isHttpMethodWebSocket() - Method in class ninja.Route
- isHttpOnly() - Method in class ninja.Cookie
- IsInteger - Annotation Type in ninja.validation
-
Validates that the field is an integer.
- isLanguageDirectlySupportedByThisApplication(String) - Method in interface ninja.i18n.Lang
-
application.conf usually contains the following: application.languages=en,de This little helper checks if the language is supported.
- isLanguageDirectlySupportedByThisApplication(String) - Method in class ninja.i18n.LangImpl
- isModified(Optional<String>, Optional<Long>, Context) - Method in interface ninja.utils.HttpCacheToolkit
-
Checks if resource has been modified.
- isModified(Optional<String>, Optional<Long>, Context) - Method in class ninja.utils.HttpCacheToolkitImpl
- isMultipart() - Method in interface ninja.Context
-
Check if request is of type multipart.
- isMultipart() - Method in class ninja.WrappedContext
- isNotCompliant(int) - Method in interface ninja.scheduler.cron.CronExpressionPart
-
Checks that the value does not match
- isPortEnabled() - Method in class ninja.standalone.AbstractStandalone
- isPortEnabled() - Method in interface ninja.standalone.Standalone
-
Tests if the clear text HTTP port is enabled.
- isProd() - Method in interface ninja.utils.NinjaProperties
-
Whether we are in prod mode
- isProd() - Method in class ninja.utils.NinjaPropertiesImpl
- isRequestJson() - Method in interface ninja.Context
-
Check to see if the request content type is JSON.
- isRequestJson() - Method in class ninja.utils.AbstractContext
- isRequestJson() - Method in class ninja.WrappedContext
- isRequestXml() - Method in interface ninja.Context
-
Check to see if the request content type is XML.
- isRequestXml() - Method in class ninja.utils.AbstractContext
- isRequestXml() - Method in class ninja.WrappedContext
- isSecure() - Method in class ninja.Cookie
- isSslPortEnabled() - Method in class ninja.standalone.AbstractStandalone
- isSslPortEnabled() - Method in interface ninja.standalone.Standalone
-
Tests if the SSL HTTP port is enabled.
- isStarted() - Method in interface ninja.lifecycle.LifecycleService
-
Whether the application is started
- isStarted() - Method in class ninja.lifecycle.LifecycleServiceImpl
- isTest() - Method in interface ninja.utils.NinjaProperties
-
Whether we are in test mode
- isTest() - Method in class ninja.utils.NinjaPropertiesImpl
- isThisASecureCallbackName(String) - Static method in class ninja.template.TemplateEngineJsonP
-
Tests whether the given function name is a valid JSONP function name/path.
- IsUUID - Annotation Type in ninja.validation
- isValidMimeType(String) - Method in class ninja.utils.MimeTypes
-
check the mimetype is referenced in the mimetypes database
- iterator() - Method in class ninja.utils.ForwardingServiceLoader
J
- join() - Method in class ninja.standalone.AbstractStandalone
- join() - Method in interface ninja.standalone.Standalone
-
Joins the underlying server to wait until its finished.
- json() - Method in class ninja.Result
-
Set the content type of this result to
Result.APPLICATION_JSON
. - json() - Static method in class ninja.Results
- json(boolean) - Method in class ninja.conf.NinjaClassicModule
- jsonp() - Method in class ninja.Result
-
Set the content type of this result to
Result.APPLICATION_JSONP
. - jsonp() - Static method in class ninja.Results
- jsonView(Class<?>) - Method in class ninja.Result
-
Set the Jackson JSON View.
- JSR303Validation - Annotation Type in ninja.validation
-
Validates that the annotated element is conform to its JSR303-Annotations
- JSRValidator(Lang) - Constructor for class ninja.validation.Validators.JSRValidator
K
- keep() - Method in interface ninja.session.FlashScope
-
Copies all "current" flash data into the "outgoing" flash data.
- keep() - Method in class ninja.session.FlashScopeImpl
- keep(String) - Method in interface ninja.session.FlashScope
-
Will copy the "current" flash data specified by the key into the "outgoing" flash data.
- keep(String) - Method in class ninja.session.FlashScopeImpl
- key() - Method in annotation type ninja.validation.IsDate
-
The key for the violation message
- key() - Method in annotation type ninja.validation.IsEnum
-
The key for the violation message
- key() - Method in annotation type ninja.validation.IsFloat
-
The key for the violation message
- key() - Method in annotation type ninja.validation.IsInteger
-
The key for the violation message
- key() - Method in annotation type ninja.validation.IsUUID
-
The key for the violation message
- key() - Method in annotation type ninja.validation.JSR303Validation
-
The key for the violation message
- key() - Method in annotation type ninja.validation.Matches
-
The key for the violation message
- key() - Method in annotation type ninja.validation.Required
-
Deprecated.The key for the violation message
- KEY - Static variable in annotation type ninja.validation.IsDate
- KEY - Static variable in annotation type ninja.validation.IsEnum
- KEY - Static variable in annotation type ninja.validation.IsFloat
- KEY - Static variable in annotation type ninja.validation.IsInteger
- KEY - Static variable in annotation type ninja.validation.IsUUID
- KEY - Static variable in annotation type ninja.validation.JSR303Validation
- KEY_NINJA_CONTEXT_PATH - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_HOST - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_IDLE_TIMEOUT - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_PORT - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_SSL_KEYSTORE_PASSWORD - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_SSL_KEYSTORE_URI - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_SSL_PORT - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_SSL_TRUSTSTORE_PASSWORD - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_SSL_TRUSTSTORE_URI - Static variable in interface ninja.standalone.Standalone
- KEY_NINJA_STANDALONE_CLASS - Static variable in interface ninja.standalone.Standalone
L
- LambdaInfo(Object, Lambdas.Kind, SerializedLambda, Method, Method) - Constructor for class ninja.utils.Lambdas.LambdaInfo
- LambdaRoute - Class in ninja.utils
- LambdaRoute(Method, Method, Object) - Constructor for class ninja.utils.LambdaRoute
- Lambdas - Class in ninja.utils
- Lambdas() - Constructor for class ninja.utils.Lambdas
- Lambdas.Kind - Enum in ninja.utils
-
The kind of lambda.
- Lambdas.LambdaInfo - Class in ninja.utils
- Lang - Interface in ninja.i18n
- LANG_COOKIE_SUFFIX - Static variable in interface ninja.utils.NinjaConstant
-
A cookie that helps Ninja to set a default language.
- LangImpl - Class in ninja.i18n
- LangImpl(NinjaProperties) - Constructor for class ninja.i18n.LangImpl
- LAST_MODIFIED - Static variable in interface ninja.utils.HttpHeaderConstants
- Length - Annotation Type in ninja.validation
-
Validates that the length of the field meets the given length constraints
- LengthValidator(Length) - Constructor for class ninja.validation.Validators.LengthValidator
- LifecycleException - Exception in ninja.lifecycle
-
Exception thrown when an error occurs in the lifecycle
- LifecycleException() - Constructor for exception ninja.lifecycle.LifecycleException
- LifecycleException(String) - Constructor for exception ninja.lifecycle.LifecycleException
- LifecycleException(String, Throwable) - Constructor for exception ninja.lifecycle.LifecycleException
- LifecycleException(Throwable) - Constructor for exception ninja.lifecycle.LifecycleException
- lifecycleService - Variable in class ninja.NinjaDefault
- LifecycleService - Interface in ninja.lifecycle
-
Responsible for starting/stopping the application
- LifecycleServiceImpl - Class in ninja.lifecycle
-
Implementation of the lifecycle service
- LifecycleServiceImpl(Injector, LifecycleRegister, LifecycleSupport) - Constructor for class ninja.lifecycle.LifecycleServiceImpl
- LifecycleSupport - Class in ninja.lifecycle
-
Guice support for lifecycle
- ListParamParser(Class<T>, ParamParser<T>) - Constructor for class ninja.params.ParamParsers.ListParamParser
- loadConfigurationInUtf8(String) - Static method in class ninja.utils.SwissKnife
-
This is important: We load stuff as UTF-8.
- loadKeyStore(URI, char[]) - Static method in class ninja.standalone.StandaloneHelper
- loadWithSystemServiceLoader(Class<T>) - Static method in class ninja.utils.ForwardingServiceLoader
- loadWithSystemServiceLoader(Class<T>, ClassLoader) - Static method in class ninja.utils.ForwardingServiceLoader
- LOCATION - Static variable in class ninja.Result
- LOCATION_VIEW_FTL_HTML_BAD_REQUEST - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_FTL_HTML_FORBIDDEN - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_FTL_HTML_INTERNAL_SERVER_ERROR - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_FTL_HTML_NOT_FOUND - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_FTL_HTML_UNAUTHORIZED - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_HTML_BAD_REQUEST_KEY - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_HTML_FORBIDDEN_KEY - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_HTML_INTERNAL_SERVER_ERROR_KEY - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_HTML_NOT_FOUND_KEY - Static variable in interface ninja.utils.NinjaConstant
- LOCATION_VIEW_HTML_UNAUTHORIZED_KEY - Static variable in interface ninja.utils.NinjaConstant
- LOGBACK_CONFIGURATION_FILE_PROPERTY - Static variable in class ninja.logging.LogbackConfigurator
- LogbackConfigurator - Class in ninja.logging
-
Helps to configure Logback from application.conf via a property named "logback.configurationFile.
- LogbackConfigurator() - Constructor for class ninja.logging.LogbackConfigurator
- logBodyParserEngines() - Method in class ninja.bodyparser.BodyParserEngineManagerImpl
- logger - Variable in class ninja.standalone.AbstractConsole
- logger - Static variable in class ninja.template.TemplateEngineFreemarkerI18nMethod
- logger - Static variable in class ninja.template.TemplateEngineFreemarkerPrettyTimeMethod
- LoggerProvider - Class in ninja.utils
- LoggerProvider() - Constructor for class ninja.utils.LoggerProvider
- logIfMessageKeyIsMissing(String, String) - Method in class ninja.template.TemplateEngineFreemarkerI18nMethod
- logStarted() - Method in class ninja.standalone.AbstractConsole
- logStarted() - Method in class ninja.standalone.AbstractStandalone
- logTemplateEngines() - Method in class ninja.template.TemplateEngineManagerImpl
- LongParamParser() - Constructor for class ninja.params.ParamParsers.LongParamParser
M
- main(String[]) - Static method in class ninja.standalone.AutoStandalone
- main(String[]) - Static method in class ninja.standalone.NinjaConsole
- matches(String, String) - Method in class ninja.Route
-
Matches /index to /index or /me/1 to /person/{id}
- Matches - Annotation Type in ninja.validation
-
Validates that the parameter matches the given regular expression
- MatchesValidator(Matches) - Constructor for class ninja.validation.Validators.MatchesValidator
- max() - Method in annotation type ninja.validation.Length
-
The maximum length of the field
- max() - Method in annotation type ninja.validation.NumberValue
-
The maximum value of the field
- maxKey() - Method in annotation type ninja.validation.Length
-
The key max violation message
- maxKey() - Method in annotation type ninja.validation.NumberValue
-
The key max violation message
- maxMessage() - Method in annotation type ninja.validation.Length
-
Default message if max violation message isn't found
- maxMessage() - Method in annotation type ninja.validation.NumberValue
-
Default message if max violation message isn't found
- MEMCACHED_HOST - Static variable in interface ninja.utils.NinjaConstant
-
Either a single host or a list of hosts (space separated)
- MEMCACHED_PASSWORD - Static variable in interface ninja.utils.NinjaConstant
-
Password for memcached (OPTIONAL)
- MEMCACHED_USER - Static variable in interface ninja.utils.NinjaConstant
-
Username for memcached (OPTIONAL)
- MemoryFileItemProvider - Class in ninja.uploads
-
FileItemProvider
that save uploaded files in memory. - MemoryFileItemProvider() - Constructor for class ninja.uploads.MemoryFileItemProvider
- message() - Method in annotation type ninja.validation.IsDate
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.IsEnum
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.IsFloat
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.IsInteger
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.IsUUID
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.JSR303Validation
-
Default message if the field isn't found
- message() - Method in annotation type ninja.validation.Matches
-
Default message if the key isn't found
- message() - Method in annotation type ninja.validation.Required
-
Deprecated.Default message if the key isn't found
- Message - Class in ninja.utils
-
A pojo to be renderd as Json or Xml.
- Message() - Constructor for class ninja.utils.Message
- Message(String) - Constructor for class ninja.utils.Message
- Message(String, String) - Constructor for class ninja.utils.Message
- MESSAGE - Static variable in annotation type ninja.validation.IsDate
- MESSAGE - Static variable in annotation type ninja.validation.IsEnum
- MESSAGE - Static variable in annotation type ninja.validation.IsFloat
- MESSAGE - Static variable in annotation type ninja.validation.IsInteger
- MESSAGE - Static variable in annotation type ninja.validation.IsUUID
- MESSAGE - Static variable in annotation type ninja.validation.JSR303Validation
- messages - Variable in class ninja.NinjaDefault
- Messages - Interface in ninja.i18n
- MessagesImpl - Class in ninja.i18n
- MessagesImpl(NinjaProperties, Lang) - Constructor for class ninja.i18n.MessagesImpl
- METHOD(String) - Method in class ninja.RouteBuilderImpl
- METHOD(String) - Method in interface ninja.Router
-
To match any http method.
- METHOD(String) - Method in class ninja.RouterImpl
- MethodReference - Class in ninja.utils
-
Compound key of a Class and the name of a method in it.
- MethodReference(Class, String) - Constructor for class ninja.utils.MethodReference
- MethodReference(Method) - Constructor for class ninja.utils.MethodReference
- MIGRATION_ENGINE_IMPLEMENTATION - Static variable in interface ninja.utils.NinjaConstant
-
run migrations on startup of application
- MimeTypes - Class in ninja.utils
-
MimeTypes utils Adapted from play 1.2.4
- MimeTypes(NinjaProperties) - Constructor for class ninja.utils.MimeTypes
- min() - Method in annotation type ninja.validation.Length
-
The maximum length of the field
- min() - Method in annotation type ninja.validation.NumberValue
-
The minimum value of the field
- minKey() - Method in annotation type ninja.validation.Length
-
The key min violation message
- minKey() - Method in annotation type ninja.validation.NumberValue
-
The key min violation message
- minMessage() - Method in annotation type ninja.validation.Length
-
Default message if min violation message isn't found
- minMessage() - Method in annotation type ninja.validation.NumberValue
-
Default message if min violation message isn't found
- MODE_DEV - Static variable in interface ninja.utils.NinjaConstant
- MODE_KEY_NAME - Static variable in interface ninja.utils.NinjaConstant
- MODE_PROD - Static variable in interface ninja.utils.NinjaConstant
- MODE_TEST - Static variable in interface ninja.utils.NinjaConstant
- MODELS_DIR - Static variable in interface ninja.utils.NinjaConstant
N
- name - Variable in class ninja.standalone.AbstractConsole
- name(String) - Method in class ninja.standalone.AbstractConsole
- name(String) - Method in interface ninja.standalone.Console
- next(Context) - Method in interface ninja.FilterChain
-
Pass the request to the next filter
- ninja - package ninja
- ninja - Variable in class ninja.BasicAuthFilter
- Ninja - Interface in ninja
- NINJA_CONVENTION_LOCATION - Static variable in class ninja.Bootstrap
- NINJA_EXTERNAL_CONF - Static variable in interface ninja.utils.NinjaProperties
-
Often you may want to use a separate configuration file.
- NINJA_EXTERNAL_RELOAD - Static variable in interface ninja.utils.NinjaProperties
-
The System property used to enable hot-reloading of the external configuration file at runtime.
- NINJA_JSONP_CALLBACK_PARAMETER - Static variable in interface ninja.utils.NinjaConstant
- NINJA_MIGRATION_DROP_SCHEMA - Static variable in interface ninja.utils.NinjaConstant
-
boolean flag to determine if Flyway should drop the existing DB schema
- NINJA_MIGRATION_LOCATIONS - Static variable in interface ninja.utils.NinjaConstant
-
Comma-separated list of locations to scan recursively for migrations
- NINJA_MIGRATION_RUN - Static variable in interface ninja.utils.NinjaConstant
-
run migrations on startup of application
- NINJA_MIGRATION_SCHEMAS - Static variable in interface ninja.utils.NinjaConstant
-
Comma-separated list of schemas managed by Flyway
- NINJA_PROPERTIES_X_FORWARDED_FOR - Static variable in interface ninja.Context
-
Used to enable or disable usage of X-Forwarded-For header in getRemoteAddr().
- NINJA_SPLASH_DISPLAY - Static variable in interface ninja.utils.NinjaConstant
-
Whether to display logo at startup.
- NINJA_STRICT_ARGUMENT_EXTRACTORS - Static variable in interface ninja.utils.NinjaConstant
-
If false it will allow null as argument in controller methods.
- ninja.application - package ninja.application
- ninja.bodyparser - package ninja.bodyparser
- ninja.cache - package ninja.cache
- ninja.conf - package ninja.conf
- ninja.diagnostics - package ninja.diagnostics
- ninja.exceptions - package ninja.exceptions
- ninja.i18n - package ninja.i18n
- ninja.lifecycle - package ninja.lifecycle
- ninja.logging - package ninja.logging
- ninja.params - package ninja.params
- ninja.scheduler - package ninja.scheduler
- ninja.scheduler.cron - package ninja.scheduler.cron
- ninja.session - package ninja.session
- ninja.standalone - package ninja.standalone
- ninja.template - package ninja.template
- ninja.template.directives - package ninja.template.directives
- ninja.uploads - package ninja.uploads
- ninja.utils - package ninja.utils
- ninja.validation - package ninja.validation
- ninja.websockets - package ninja.websockets
- ninjaBaseDirectoryResolver - Variable in class ninja.Bootstrap
- NinjaBaseDirectoryResolver - Class in ninja.utils
- NinjaBaseDirectoryResolver(NinjaProperties) - Constructor for class ninja.utils.NinjaBaseDirectoryResolver
- NinjaBaseModule - Class in ninja.conf
-
The basic configuration of the main ninja framework.
- NinjaBaseModule(NinjaPropertiesImpl) - Constructor for class ninja.conf.NinjaBaseModule
- NinjaCache - Class in ninja.cache
-
A convenience class to access the underlying cache implementation.
- NinjaCache(Cache) - Constructor for class ninja.cache.NinjaCache
- NinjaClassicModule - Class in ninja.conf
-
The classic configuration of the ninja framework (jackson, freemarker, postoffice, etc.)
- NinjaClassicModule(NinjaProperties) - Constructor for class ninja.conf.NinjaClassicModule
- NinjaClassicModule(NinjaProperties, boolean) - Constructor for class ninja.conf.NinjaClassicModule
- NinjaConsole - Class in ninja.standalone
- NinjaConsole() - Constructor for class ninja.standalone.NinjaConsole
- NinjaConsole.ConsoleBootstrap - Class in ninja.standalone
- NinjaConstant - Interface in ninja.utils
- NinjaDefault - Class in ninja
- NinjaDefault() - Constructor for class ninja.NinjaDefault
- NinjaException - Exception in ninja.exceptions
-
A convenience unchecked exception.
- NinjaException(int, String) - Constructor for exception ninja.exceptions.NinjaException
- NinjaException(int, String, Throwable) - Constructor for exception ninja.exceptions.NinjaException
- ninjaMode - Variable in class ninja.standalone.AbstractConsole
- ninjaMode(NinjaMode) - Method in class ninja.standalone.AbstractConsole
- ninjaMode(NinjaMode) - Method in interface ninja.standalone.Console
- NinjaMode - Enum in ninja.utils
- NinjaModeHelper - Class in ninja.utils
- NinjaModeHelper() - Constructor for class ninja.utils.NinjaModeHelper
- ninjaProperties - Variable in class ninja.NinjaDefault
- ninjaProperties - Variable in class ninja.standalone.AbstractConsole
- ninjaProperties - Variable in class ninja.utils.AbstractContext
- NinjaProperties - Interface in ninja.utils
- NinjaPropertiesImpl - Class in ninja.utils
- NinjaPropertiesImpl.Builder - Class in ninja.utils
- NinjaPropertiesImplTool - Class in ninja.utils
- NinjaPropertiesImplTool() - Constructor for class ninja.utils.NinjaPropertiesImplTool
- NO_HTTP_BODY - Static variable in class ninja.Result
- NO_PROPERTY - Static variable in annotation type ninja.scheduler.Schedule
- noContent() - Static method in class ninja.Results
- noContent204 - ninja.Context.HTTP_STATUS
-
Deprecated.
- NoFileItemProvider - Class in ninja.uploads
-
FileItemProvider
default's implementation, to indicate to not handle uploaded files, and let the users deal with the request by themselves - NoFileItemProvider() - Constructor for class ninja.uploads.NoFileItemProvider
- NoHttpBody - Class in ninja.utils
-
This is a marker class used to handle Results in
ResultHandler
. - NoHttpBody() - Constructor for class ninja.utils.NoHttpBody
- normalizePathWithoutLeadingSlash(String, boolean) - Method in class ninja.AssetsControllerHelper
-
If we get - for whatever reason - a relative URL like assets/../conf/application.conf we expand that to the "real" path.
- notFound() - Static method in class ninja.Results
- notFound404 - ninja.Context.HTTP_STATUS
-
Deprecated.
- now(String, String) - Method in interface ninja.session.FlashScope
-
Puts the key and value into only the "current" flash data.
- now(String, String) - Method in class ninja.session.FlashScopeImpl
- NumberValidator(NumberValue) - Constructor for class ninja.validation.Validators.NumberValidator
- NumberValue - Annotation Type in ninja.validation
-
Validates that the value of a number meets certain parameters
O
- ObjectMapperProvider - Class in ninja.utils
-
ObjectMapper is used in several classes.
- ObjectMapperProvider() - Constructor for class ninja.utils.ObjectMapperProvider
- of(ControllerMethods.ControllerMethod0) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod1<A>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod10<A, B, C, D, E, F, G, H, I, J>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod11<A, B, C, D, E, F, G, H, I, J, K>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod12<A, B, C, D, E, F, G, H, I, J, K, L>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod13<A, B, C, D, E, F, G, H, I, J, K, L, M>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod15<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod2<A, B>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod3<A, B, C>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod4<A, B, C, D>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod5<A, B, C, D, E>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod6<A, B, C, D, E, F>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod7<A, B, C, D, E, F, G>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod8<A, B, C, D, E, F, G, H>) - Static method in class ninja.ControllerMethods
- of(ControllerMethods.ControllerMethod9<A, B, C, D, E, F, G, H, I>) - Static method in class ninja.ControllerMethods
- ok() - Static method in class ninja.Results
- ok200 - ninja.Context.HTTP_STATUS
-
Deprecated.
- onException(Context, Exception) - Method in interface ninja.Ninja
-
This result should be used when an error occurs.
- onException(Context, Exception) - Method in class ninja.NinjaDefault
- onException(Context, Exception, Result) - Method in class ninja.NinjaDefault
- onFrameworkShutdown() - Method in interface ninja.Ninja
-
Invoked when the server hosting Ninja is being stopped.
- onFrameworkShutdown() - Method in class ninja.NinjaDefault
- onFrameworkStart() - Method in interface ninja.Ninja
-
Invoked when the framework starts.
- onFrameworkStart() - Method in class ninja.NinjaDefault
- onRouteRequest(Context.Impl) - Method in interface ninja.Ninja
-
When a route is requested this method is called.
- onRouteRequest(Context.Impl) - Method in class ninja.NinjaDefault
- openKeyStoreInput(URI) - Static method in class ninja.standalone.StandaloneHelper
- OPTIONS() - Method in class ninja.RouteBuilderImpl
- OPTIONS() - Method in interface ninja.Router
- OPTIONS() - Method in class ninja.RouterImpl
- order() - Method in annotation type ninja.lifecycle.Dispose
-
The order in which it should be disposed, higher meaning earlier.
- order() - Method in annotation type ninja.lifecycle.Start
-
The order in which it should be started, higher meaning later.
- overlayedNinjaProperties - Variable in class ninja.standalone.AbstractConsole
- OverlayedNinjaProperties - Class in ninja.utils
-
Helper utility for handling Ninja properties using a simple "overlayed" view of them.
- OverlayedNinjaProperties(NinjaProperties) - Constructor for class ninja.utils.OverlayedNinjaProperties
- overrideModule(Module) - Method in class ninja.standalone.AbstractConsole
- overrideModule(Module) - Method in interface ninja.standalone.Console
-
Override Guice module bindings as described here: https://google.github.io/guice/api-docs/3.0/javadoc/com/google/inject/util/Modules.html
- overrideModuleOpt - Variable in class ninja.standalone.AbstractConsole
- overrideProperties(Map<String, String>) - Method in class ninja.standalone.AbstractConsole
- overrideProperties(Map<String, String>) - Method in interface ninja.standalone.Console
-
Override specific properties programmatically.
- overrideProperties(Map<String, String>) - Method in class ninja.utils.NinjaPropertiesImpl.Builder
-
These properties will override any other properties.
- overridePropertiesOpt - Variable in class ninja.standalone.AbstractConsole
P
- Param - Annotation Type in ninja.params
-
Just an idea to inject parameters right into the methods...
- ParamExtractor(Param) - Constructor for class ninja.params.ArgumentExtractors.ParamExtractor
- ParamParser<T> - Interface in ninja.params
-
Parses a String parameter
- paramParsers - Variable in class ninja.utils.AbstractContext
- ParamParsers - Class in ninja.params
-
Built in parsers for parameters
- ParamParsers(Set<ParamParser>) - Constructor for class ninja.params.ParamParsers
- ParamParsers.ArrayParamParser<T> - Class in ninja.params
-
Parses a multi-valued parameter as an array of registered types.
- ParamParsers.BooleanParamParser - Class in ninja.params
- ParamParsers.ByteParamParser - Class in ninja.params
- ParamParsers.CharacterParamParser - Class in ninja.params
- ParamParsers.CsvParamParser<T> - Class in ninja.params
-
Parses a single string value as a CSV array of registered types.
- ParamParsers.DateParamParser - Class in ninja.params
- ParamParsers.DoubleParamParser - Class in ninja.params
- ParamParsers.EmptyStringParamParser - Class in ninja.params
- ParamParsers.FloatParamParser - Class in ninja.params
- ParamParsers.GenericEnumParamParser<E extends Enum<E>> - Class in ninja.params
- ParamParsers.IntegerParamParser - Class in ninja.params
- ParamParsers.ListParamParser<T> - Class in ninja.params
- ParamParsers.LongParamParser - Class in ninja.params
- ParamParsers.PrimitiveBooleanParamParser - Class in ninja.params
- ParamParsers.PrimitiveByteParamParser - Class in ninja.params
- ParamParsers.PrimitiveCharacterParamParser - Class in ninja.params
- ParamParsers.PrimitiveDoubleParamParser - Class in ninja.params
- ParamParsers.PrimitiveFloatParamParser - Class in ninja.params
- ParamParsers.PrimitiveIntegerParamParser - Class in ninja.params
- ParamParsers.PrimitiveLongParamParser - Class in ninja.params
- ParamParsers.PrimitiveShortParamParser - Class in ninja.params
- ParamParsers.ShortParamParser - Class in ninja.params
- ParamParsers.StringParamParser - Class in ninja.params
- ParamParsers.UUIDParamParser - Class in ninja.params
- Params - Annotation Type in ninja.params
-
Injects a multi-valued parameter right into the methods...
- ParamsExtractor(Params) - Constructor for class ninja.params.ArgumentExtractors.ParamsExtractor
- parse(String) - Static method in class ninja.RouteParameter
-
Parse a path such as "/user/{id: [0-9]+}/email/{addr}" for the named parameters.
- parseBody(Class<T>) - Method in interface ninja.Context
-
This will give you the request body nicely parsed.
- parseBody(Class<T>) - Method in class ninja.utils.AbstractContext
- parseBody(Class<T>) - Method in class ninja.WrappedContext
- parseDuration(String) - Static method in class ninja.utils.TimeUtil
-
Parse a duration from String to seconds.
- parseHttpDateFormat(String) - Static method in class ninja.utils.DateUtil
-
Can be used to parse http times.
- parseHttpDateFormatToDateTime(String) - Static method in class ninja.utils.DateUtil
-
Can be used to parse http times.
- parseParameter(String, String[], Validation) - Method in class ninja.params.ParamParsers.ArrayParamParser
- parseParameter(String, String[], Validation) - Method in class ninja.params.ParamParsers.ListParamParser
- parseParameter(String, String, Validation) - Method in interface ninja.params.ParamParser
-
Parse the given parameter value
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.BooleanParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.ByteParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.CharacterParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.CsvParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.DateParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.DoubleParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.EmptyStringParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.FloatParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.GenericEnumParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.IntegerParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.LongParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveBooleanParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveByteParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveCharacterParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveDoubleParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveFloatParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveIntegerParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveLongParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.PrimitiveShortParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.ShortParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.StringParamParser
- parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.UUIDParamParser
- parseProtocolRequestHeader(String) - Static method in class ninja.websockets.WebSocketUtils
-
Parses header `Sec-WebSocket-Protocol: chat, superchat` into a list such as `chat`, and `superchat`.
- ParsingArgumentExtractor<T> - Class in ninja.params
-
Argument extractor that parses the String argument into another type
- ParsingArgumentExtractor(ArgumentExtractor<? extends String>, ParamParser<T>) - Constructor for class ninja.params.ParsingArgumentExtractor
- ParsingArrayExtractor<X> - Class in ninja.params
-
Argument extractor that parses the String[] argument into a X[]
- ParsingArrayExtractor(ArgumentExtractor<? extends String[]>, ParamParsers.ArrayParamParser<?>) - Constructor for class ninja.params.ParsingArrayExtractor
- pathParam(String, Object) - Method in class ninja.ReverseRouter.Builder
-
Add a parameter as a path replacement.
- PathParam - Annotation Type in ninja.params
-
Just an idea to inject parameters right into the methods...
- PathParamExtractor(PathParam) - Constructor for class ninja.params.ArgumentExtractors.PathParamExtractor
- PERSISTENCE_UNIT_NAME - Static variable in interface ninja.utils.NinjaConstant
-
The name of the persistence unit to use
- port - Variable in class ninja.standalone.AbstractStandalone
- port(int) - Method in class ninja.standalone.AbstractStandalone
- port(int) - Method in interface ninja.standalone.Standalone
- POST() - Method in class ninja.RouteBuilderImpl
- POST() - Method in interface ninja.Router
- POST() - Method in class ninja.RouterImpl
- PrimitiveBooleanParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveBooleanParamParser
- PrimitiveByteParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveByteParamParser
- PrimitiveCharacterParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveCharacterParamParser
- PrimitiveDoubleParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveDoubleParamParser
- PrimitiveFloatParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveFloatParamParser
- PrimitiveIntegerParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveIntegerParamParser
- PrimitiveLongParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveLongParamParser
- PrimitiveShortParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveShortParamParser
- prod - ninja.utils.NinjaMode
- put(String, Object) - Method in interface ninja.session.FlashScope
-
Deprecated.Convert your value to a String in your application since this method implies Serialization could be used (which is not true).
- put(String, Object) - Method in class ninja.session.FlashScopeImpl
- put(String, String) - Method in interface ninja.session.FlashScope
-
Puts the key and value into both "current" and "outgoing" flash data.
- put(String, String) - Method in class ninja.session.FlashScopeImpl
- put(String, String) - Method in interface ninja.session.Session
-
Puts key / value into the session.
- put(String, String) - Method in class ninja.session.SessionImpl
- PUT() - Method in class ninja.RouteBuilderImpl
- PUT() - Method in interface ninja.Router
- PUT() - Method in class ninja.RouterImpl
Q
- queryParam(String, Object) - Method in class ninja.ReverseRouter.Builder
-
Add a parameter as a queryParam string value.
R
- rawPathParam(String, Object) - Method in class ninja.ReverseRouter.Builder
-
Identical to
path
except the path parameter value will NOT be url encoded when building the final url. - rawQueryParam(String, Object) - Method in class ninja.ReverseRouter.Builder
-
Identical to
queryParam
except the queryParam string value will NOT be url encoded when building the final url. - readFromFile(File, int, int) - Static method in class ninja.diagnostics.SourceSnippetHelper
- readFromQualifiedSourceCodePath(File, String, String, int, int) - Static method in class ninja.diagnostics.SourceSnippetHelper
- readFromRelativeFilePath(File, String, int, int) - Static method in class ninja.diagnostics.SourceSnippetHelper
- realm - Variable in class ninja.BasicAuthFilter
- redirect() - Method in class ninja.ReverseRouter.Builder
-
Builds the result as a
ninja.Result
redirect. - redirect(String) - Method in class ninja.Result
-
A redirect that uses 303 see other.
- redirect(String) - Static method in class ninja.Results
-
A redirect that uses 303 see other.
- redirectTemporary(String) - Method in class ninja.Result
-
A redirect that uses 307 see other.
- redirectTemporary(String) - Static method in class ninja.Results
-
A redirect that uses 307 see other.
- reflect(Object) - Static method in class ninja.utils.Lambdas
- regexp() - Method in annotation type ninja.validation.Matches
-
The regular expression to match
- registerEnum(Class<E>) - Static method in class ninja.params.ParamParsers
-
Deprecated.
- registerEnum(Class<E>, boolean) - Static method in class ninja.params.ParamParsers
-
Deprecated.
- registerLifecycle(Object) - Method in class ninja.lifecycle.LifecycleSupport
- reload() - Method in class ninja.utils.ForwardingServiceLoader
- remove(String) - Method in interface ninja.session.FlashScope
-
Removes a value completely from both "current" and "outgoing" flash data.
- remove(String) - Method in class ninja.session.FlashScopeImpl
- remove(String) - Method in interface ninja.session.Session
-
Removes the value of the key and returns the value or null.
- remove(String) - Method in class ninja.session.SessionImpl
- render() - Method in class ninja.diagnostics.DiagnosticErrorRenderer
- render(InputStream, boolean) - Method in class ninja.Result
-
Renders all bytes from the input stream to the output stream.
- render(Object) - Method in class ninja.Result
-
This method handles two principal cases: 1) If the this.renderable of this result is null, the object passed is simply set as renderable for this Result 2) If the this.renderable of this result is not null an new map is generated as object to render and both the former renderable and the new object added to the map.
- render(String, Object) - Method in class ninja.Result
-
Implicitly generates a hashmap as object being rendered and adds this key, value pair.
- render(Map.Entry<String, Object>) - Method in class ninja.Result
-
Handles following cases: 1) If this.renderable is null: a new HashMap is generated and this entry being added to the map.
- render(Map<String, Object>) - Method in class ninja.Result
-
Replaces the object being passed by this result to the rendering engine with this map.
- render(Context, Result) - Method in class ninja.diagnostics.DiagnosticError
- render(Context, Result) - Method in interface ninja.Renderable
- render(Renderable) - Method in class ninja.Result
-
Sets this renderable as object to render.
- Renderable - Interface in ninja
-
Renderables can be returned inside a result.
- renderErrorResultAndCatchAndLogExceptions(Result, Context) - Method in interface ninja.Ninja
-
Should be used to render an error.
- renderErrorResultAndCatchAndLogExceptions(Result, Context) - Method in class ninja.NinjaDefault
- RenderingException - Exception in ninja.exceptions
-
A convenience unchecked exception for "rendering" exceptions.
- RenderingException() - Constructor for exception ninja.exceptions.RenderingException
- RenderingException(String) - Constructor for exception ninja.exceptions.RenderingException
- RenderingException(String, Throwable) - Constructor for exception ninja.exceptions.RenderingException
- RenderingException(String, Throwable, Result, String, int) - Constructor for exception ninja.exceptions.RenderingException
- RenderingException(String, Throwable, Result, String, String, int) - Constructor for exception ninja.exceptions.RenderingException
- renderRaw(byte[]) - Method in class ninja.Result
-
This method directly renders the byte array to the output.
- renderRaw(String) - Method in class ninja.Result
-
Deprecated.=> use text().render(string), html().render(string), json().render(string), xml().render(string), or contentType(type).render(string).
- renderResult(Context, Result) - Method in class ninja.diagnostics.DiagnosticErrorRenderer
- replace(String, Object) - Method in class ninja.cache.NinjaCache
-
Replace an element only if it already exists and store it indefinitely.
- replace(String, Object, int) - Method in interface ninja.cache.Cache
-
Replaces key with new value.
- replace(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- replace(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- replace(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Replace an element only if it already exists.
- RequestNotFoundException - Exception in ninja.exceptions
-
A convenience unchecked exception.
- RequestNotFoundException() - Constructor for exception ninja.exceptions.RequestNotFoundException
- RequestNotFoundException(String) - Constructor for exception ninja.exceptions.RequestNotFoundException
- RequestNotFoundException(String, Throwable) - Constructor for exception ninja.exceptions.RequestNotFoundException
- RequestNotFoundException(Throwable) - Constructor for exception ninja.exceptions.RequestNotFoundException
- Required - Annotation Type in ninja.validation
-
Deprecated.Please use Optional in controller method instead.
- RequiredValidator(Required) - Constructor for class ninja.validation.Validators.RequiredValidator
- resolve(ControllerMethods.ControllerMethod) - Static method in class ninja.utils.LambdaRoute
- resolveApplicationClassName(String) - Method in class ninja.utils.NinjaBaseDirectoryResolver
- resolveStandaloneClass() - Static method in class ninja.standalone.StandaloneHelper
-
Resolves which standalone class to use.
- ResponseStreams - Interface in ninja.utils
-
Make sure to only write to either the OutputStream OR the Writer...
- Result - Class in ninja
- Result(int) - Constructor for class ninja.Result
-
A result.
- resultHandler - Variable in class ninja.NinjaDefault
- ResultHandler - Class in ninja.utils
- ResultHandler(Logger, TemplateEngineManager) - Constructor for class ninja.utils.ResultHandler
- Results - Class in ninja
-
Convenience methods for the generation of Results.
- Results() - Constructor for class ninja.Results
- returnResultAsync(Result) - Method in interface ninja.Context
-
Indicate that request processing of an async request is complete.
- returnResultAsync(Result) - Method in class ninja.WrappedContext
- ReverseRouter - Class in ninja
-
Reverse routing.
- ReverseRouter(NinjaProperties, Router) - Constructor for class ninja.ReverseRouter
- ReverseRouter.Builder - Class in ninja
- route - Variable in class ninja.utils.AbstractContext
- route(String) - Method in interface ninja.RouteBuilder
- route(String) - Method in class ninja.RouteBuilderImpl
- Route - Class in ninja
-
A route
- Route(String, String, Method, FilterChain) - Constructor for class ninja.Route
- RouteBuilder - Interface in ninja
- RouteBuilderImpl - Class in ninja
- RouteBuilderImpl(NinjaProperties, NinjaBaseDirectoryResolver) - Constructor for class ninja.RouteBuilderImpl
- RouteParameter - Class in ninja
-
Parameter in a Route.
- RouteParameter(int, String, String, String) - Constructor for class ninja.RouteParameter
- router - Variable in class ninja.NinjaDefault
- Router - Interface in ninja
- RouterImpl - Class in ninja
- RouterImpl(Injector, NinjaProperties, WebSockets, Provider<RouteBuilderImpl>) - Constructor for class ninja.RouterImpl
- ROUTES_CONVENTION_LOCATION - Static variable in class ninja.Bootstrap
- RoutingException - Exception in ninja
-
Exception thrown when an error in route configuration is found
- RoutingException() - Constructor for exception ninja.RoutingException
- RoutingException(String) - Constructor for exception ninja.RoutingException
- RoutingException(String, Throwable) - Constructor for exception ninja.RoutingException
- RoutingException(Throwable) - Constructor for exception ninja.RoutingException
- run() - Method in class ninja.standalone.AbstractStandalone
-
Configure, start, add shutdown hook, and join.
- run() - Method in interface ninja.standalone.Standalone
-
Configure, start, add shutdown hook, and join.
S
- safeAdd(String, Object, int) - Method in interface ninja.cache.Cache
-
Similar to
delete
method. - safeAdd(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- safeAdd(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- safeAdd(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Add an element only if it doesn't exist, and return only when the element is effectively cached.
- safeDelete(String) - Method in interface ninja.cache.Cache
-
Similar to
delete
method. - safeDelete(String) - Method in class ninja.cache.CacheEhCacheImpl
- safeDelete(String) - Method in class ninja.cache.CacheMemcachedImpl
- safeDelete(String) - Method in class ninja.cache.NinjaCache
-
Delete an element from the cache and return only when the element is effectively removed.
- safeEquals(String, String) - Static method in class ninja.utils.CookieDataCodec
-
Constant time for same length String comparison, to prevent timing attacks
- safeReplace(String, Object, int) - Method in interface ninja.cache.Cache
-
Similar to
delete
method. - safeReplace(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- safeReplace(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- safeReplace(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Replace an element only if it already exists and return only when the element is effectively cached.
- safeSet(String, Object, int) - Method in interface ninja.cache.Cache
-
Similar to
delete
method. - safeSet(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- safeSet(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- safeSet(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Set an element and return only when the element is effectively cached.
- save(Context) - Method in interface ninja.session.FlashScope
-
Intended for use by implementations only.
- save(Context) - Method in class ninja.session.FlashScopeImpl
- save(Context) - Method in interface ninja.session.Session
-
To finally send this session to the user this method has to be called.
- save(Context) - Method in class ninja.session.SessionImpl
- SC_101_SWITCHING_PROTOCOLS - Static variable in class ninja.Result
- SC_200_OK - Static variable in class ninja.Result
- SC_201_CREATED - Static variable in class ninja.Result
- SC_204_NO_CONTENT - Static variable in class ninja.Result
- SC_300_MULTIPLE_CHOICES - Static variable in class ninja.Result
- SC_301_MOVED_PERMANENTLY - Static variable in class ninja.Result
- SC_302_FOUND - Static variable in class ninja.Result
- SC_303_SEE_OTHER - Static variable in class ninja.Result
- SC_304_NOT_MODIFIED - Static variable in class ninja.Result
- SC_307_TEMPORARY_REDIRECT - Static variable in class ninja.Result
- SC_400_BAD_REQUEST - Static variable in class ninja.Result
- SC_401_UNAUTHORIZED - Static variable in class ninja.Result
- SC_403_FORBIDDEN - Static variable in class ninja.Result
- SC_404_NOT_FOUND - Static variable in class ninja.Result
- SC_500_INTERNAL_SERVER_ERROR - Static variable in class ninja.Result
- SC_501_NOT_IMPLEMENTED - Static variable in class ninja.Result
- schedule(Object) - Method in class ninja.scheduler.Scheduler
- Schedule - Annotation Type in ninja.scheduler
-
Schedules the annotated method for execution
- scheduler(boolean) - Method in class ninja.conf.NinjaClassicModule
- Scheduler - Class in ninja.scheduler
-
The actual scheduler
- Scheduler() - Constructor for class ninja.scheduler.Scheduler
- SchedulerSupport - Class in ninja.scheduler
-
Support for scheduling using annotations
- scheme(String) - Method in class ninja.ReverseRouter.Builder
- SEC_WEBSOCKET_PROTOCOL - Static variable in interface ninja.utils.HttpHeaderConstants
- SecretGenerator - Class in ninja.utils
- SecretGenerator() - Constructor for class ninja.utils.SecretGenerator
- SecureFilter - Class in ninja
-
A simple default implementation of a SecureFilter.
- SecureFilter(Ninja) - Constructor for class ninja.SecureFilter
- selectProtocol(String) - Method in class ninja.websockets.AbstractWebSocketHandshake
- selectProtocol(String) - Method in interface ninja.websockets.WebSocketHandshake
-
Selects the first matching supported sub protocol out of the requested sub protocols.
- serverName - Static variable in interface ninja.utils.NinjaConstant
-
In many situations the server cannot know its own name.
- serverUrls - Variable in class ninja.standalone.AbstractStandalone
- serveStatic() - Method in class ninja.AssetsController
-
Serves resources from the assets directory of your application.
- serveWebJars() - Method in class ninja.AssetsController
-
Serves resources from the assets directory of your application.
- session - Variable in class ninja.utils.AbstractContext
- Session - Interface in ninja.session
- SESSION_SUFFIX - Static variable in interface ninja.utils.NinjaConstant
-
Suffix used for Ninja cookies.
- sessionExpireTimeInSeconds - Static variable in interface ninja.utils.NinjaConstant
-
Time until session expires.
- SessionExtractor() - Constructor for class ninja.params.ArgumentExtractors.SessionExtractor
- sessionHttpOnly - Static variable in interface ninja.utils.NinjaConstant
-
Used to set the HttpOnly flag at the session cookie.
- SessionImpl - Class in ninja.session
- SessionImpl(Crypto, CookieEncryption, NinjaProperties, Clock) - Constructor for class ninja.session.SessionImpl
- SessionParam - Annotation Type in ninja.params
-
Inject a session value to a controller method invocation
- SessionParamExtractor(SessionParam) - Constructor for class ninja.params.ArgumentExtractors.SessionParamExtractor
- sessionSendOnlyIfChanged - Static variable in interface ninja.utils.NinjaConstant
-
Send session cookie only back when content has changed.
- sessionTransferredOverHttpsOnly - Static variable in interface ninja.utils.NinjaConstant
-
Used to set the Secure flag if the cookie.
- set(String, Object) - Method in class ninja.cache.NinjaCache
-
Set an element and store it indefinitely.
- set(String, Object, int) - Method in interface ninja.cache.Cache
-
Adds object of cache.
- set(String, Object, int) - Method in class ninja.cache.CacheEhCacheImpl
- set(String, Object, int) - Method in class ninja.cache.CacheMemcachedImpl
- set(String, Object, String) - Method in class ninja.cache.NinjaCache
-
Set an element.
- setAttribute(String, Object) - Method in interface ninja.Context
-
Sets an attribute value.
- setAttribute(String, Object) - Method in class ninja.WrappedContext
- setComment(String) - Method in class ninja.Cookie.Builder
- setContentType(String) - Method in class ninja.Result
-
Deprecated.
- setContextPath(String) - Method in interface ninja.utils.NinjaProperties
- setContextPath(String) - Method in class ninja.utils.NinjaPropertiesImpl
- setDomain(String) - Method in class ninja.Cookie.Builder
- setExpiryTime(Long) - Method in interface ninja.session.Session
-
Use an alternative expiry time, this can be used to implement a longer expiry time for 'remember me' style functionality.
- setExpiryTime(Long) - Method in class ninja.session.SessionImpl
- setHttpOnly(boolean) - Method in class ninja.Cookie.Builder
- setLanguage(String, Result) - Method in interface ninja.i18n.Lang
-
Force a language in Ninja framwork.
- setLanguage(String, Result) - Method in class ninja.i18n.LangImpl
- setMaxAge(int) - Method in class ninja.Cookie.Builder
- setPath(String) - Method in class ninja.Cookie.Builder
- setProperty(String, String) - Method in class ninja.utils.NinjaPropertiesImpl
- setRequestedProtocols(Set<String>) - Method in class ninja.websockets.AbstractWebSocketHandshake
- setRoute(Route) - Method in interface ninja.Context.Impl
- setRoute(Route) - Method in class ninja.utils.AbstractContext
- setSecure(boolean) - Method in class ninja.Cookie.Builder
- setValue(String) - Method in class ninja.Cookie.Builder
- ShortParamParser() - Constructor for class ninja.params.ParamParsers.ShortParamParser
- shouldExpire() - Method in class ninja.session.SessionImpl
- shutdown() - Method in class ninja.Bootstrap
- shutdown() - Method in class ninja.standalone.AbstractConsole
- shutdown() - Method in interface ninja.standalone.Console
-
Shutdown Ninja and underlying server as safely as possible (tries not to cause exceptions to be thrown).
- signHmacSha1(String) - Method in class ninja.utils.Crypto
- sourceCodeExistsInProject(String) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- SourceSnippet - Class in ninja.diagnostics
-
Represents a snippet of a source file (1 or more lines).
- SourceSnippet(URI, List<String>, int, int) - Constructor for class ninja.diagnostics.SourceSnippet
- SourceSnippetHelper - Class in ninja.diagnostics
-
Utility class for reading lines (snippet) from a source file.
- SourceSnippetHelper() - Constructor for class ninja.diagnostics.SourceSnippetHelper
- SPECIFIC_INSTANCE_METHOD_REFERENCE - ninja.utils.Lambdas.Kind
- sslKeystorePassword - Variable in class ninja.standalone.AbstractStandalone
- sslKeystorePassword(String) - Method in class ninja.standalone.AbstractStandalone
- sslKeystorePassword(String) - Method in interface ninja.standalone.Standalone
- sslKeystoreUri - Variable in class ninja.standalone.AbstractStandalone
- sslKeystoreUri(URI) - Method in class ninja.standalone.AbstractStandalone
- sslKeystoreUri(URI) - Method in interface ninja.standalone.Standalone
- sslPort - Variable in class ninja.standalone.AbstractStandalone
- sslPort(int) - Method in class ninja.standalone.AbstractStandalone
- sslPort(int) - Method in interface ninja.standalone.Standalone
- sslTruststorePassword - Variable in class ninja.standalone.AbstractStandalone
- sslTruststorePassword(String) - Method in class ninja.standalone.AbstractStandalone
- sslTruststorePassword(String) - Method in interface ninja.standalone.Standalone
- sslTruststoreUri - Variable in class ninja.standalone.AbstractStandalone
- sslTruststoreUri(URI) - Method in class ninja.standalone.AbstractStandalone
- sslTruststoreUri(URI) - Method in interface ninja.standalone.Standalone
- Standalone<T extends Standalone> - Interface in ninja.standalone
-
Interface for wrapping an underlying server (e.g.
- StandaloneHelper - Class in ninja.standalone
-
Helper utilities for working with standalone applications.
- StandaloneHelper() - Constructor for class ninja.standalone.StandaloneHelper
- start() - Method in interface ninja.lifecycle.LifecycleService
-
Start the application
- start() - Method in class ninja.lifecycle.LifecycleServiceImpl
- start() - Method in class ninja.scheduler.Scheduler
- start() - Method in class ninja.standalone.AbstractConsole
- start() - Method in interface ninja.standalone.Console
-
Configures (if not yet done), boots Ninja application and starts the underlying server.
- Start - Annotation Type in ninja.lifecycle
-
Annotation indicating this method should be called when the application starts up.
- started - Variable in class ninja.standalone.AbstractConsole
- STARTED - ninja.lifecycle.State
-
The service has been started and is therefore "running"
- STARTING - ninja.lifecycle.State
-
The service is currently starting
- State - Enum in ninja.lifecycle
-
States that are possible for a service.
- STATIC_METHOD_REFERENCE - ninja.utils.Lambdas.Kind
- status(int) - Method in class ninja.Result
-
Set the status of this result.
- status(int) - Static method in class ninja.Results
- stop() - Method in class ninja.cache.CacheEhCacheImpl
- stop() - Method in class ninja.cache.CacheMemcachedImpl
- stop() - Method in interface ninja.lifecycle.LifecycleService
-
Stop the application
- stop() - Method in class ninja.lifecycle.LifecycleServiceImpl
- STOPPED - ninja.lifecycle.State
-
The service is stopped, not runnig.
- STOPPING - ninja.lifecycle.State
-
The Service is currently stopping
- StringParamParser() - Constructor for class ninja.params.ParamParsers.StringParamParser
- success(String) - Method in interface ninja.session.FlashScope
-
Same as calling
flash.put("success", "your value");
. - success(String) - Method in class ninja.session.FlashScopeImpl
- supportedContentType(String) - Method in class ninja.Result
-
Will add a content type to the list of supported content types.
- supportedContentTypes() - Method in class ninja.Result
-
Returns immutable list of supported content types by this request.
- supportedContentTypes(String...) - Method in class ninja.Result
-
Will add the content types to the list of supported content types.
- SwissKnife - Class in ninja.utils
-
A helper class that contains a lot of random stuff that helps to get things done.
- SwissKnife() - Constructor for class ninja.utils.SwissKnife
T
- teapot418 - ninja.Context.HTTP_STATUS
-
Deprecated.
- template(String) - Method in class ninja.Result
-
Set the template to render.
- TemplateEngine - Interface in ninja.template
- TemplateEngineFreemarker - Class in ninja.template
- TemplateEngineFreemarker(Messages, Lang, Logger, TemplateEngineHelper, TemplateEngineManager, TemplateEngineFreemarkerReverseRouteMethod, TemplateEngineFreemarkerAssetsAtMethod, TemplateEngineFreemarkerWebJarsAtMethod, NinjaProperties) - Constructor for class ninja.template.TemplateEngineFreemarker
- TemplateEngineFreemarkerAssetsAtMethod - Class in ninja.template
- TemplateEngineFreemarkerAssetsAtMethod(Router, TemplateEngineFreemarkerReverseRouteHelper) - Constructor for class ninja.template.TemplateEngineFreemarkerAssetsAtMethod
- TemplateEngineFreemarkerAuthenticityFormDirective - Class in ninja.template.directives
- TemplateEngineFreemarkerAuthenticityFormDirective(Context) - Constructor for class ninja.template.directives.TemplateEngineFreemarkerAuthenticityFormDirective
- TemplateEngineFreemarkerAuthenticityTokenDirective - Class in ninja.template.directives
- TemplateEngineFreemarkerAuthenticityTokenDirective(Context) - Constructor for class ninja.template.directives.TemplateEngineFreemarkerAuthenticityTokenDirective
- TemplateEngineFreemarkerExceptionHandler - Class in ninja.template
-
A general exception handler for Freemarker.
- TemplateEngineFreemarkerExceptionHandler(Logger, NinjaProperties) - Constructor for class ninja.template.TemplateEngineFreemarkerExceptionHandler
- TemplateEngineFreemarkerI18nMethod - Class in ninja.template
- TemplateEngineFreemarkerI18nMethod(Messages, Context, Result) - Constructor for class ninja.template.TemplateEngineFreemarkerI18nMethod
- TemplateEngineFreemarkerPrettyTimeMethod - Class in ninja.template
-
PrettyTime integration for Ninja-FreeMarker.
- TemplateEngineFreemarkerPrettyTimeMethod(Locale) - Constructor for class ninja.template.TemplateEngineFreemarkerPrettyTimeMethod
- TemplateEngineFreemarkerReverseRouteHelper - Class in ninja.template
- TemplateEngineFreemarkerReverseRouteHelper(Router) - Constructor for class ninja.template.TemplateEngineFreemarkerReverseRouteHelper
- TemplateEngineFreemarkerReverseRouteMethod - Class in ninja.template
- TemplateEngineFreemarkerReverseRouteMethod(Router, TemplateEngineFreemarkerReverseRouteHelper) - Constructor for class ninja.template.TemplateEngineFreemarkerReverseRouteMethod
- TemplateEngineFreemarkerWebJarsAtMethod - Class in ninja.template
- TemplateEngineFreemarkerWebJarsAtMethod(NinjaProperties, Router, TemplateEngineFreemarkerReverseRouteHelper) - Constructor for class ninja.template.TemplateEngineFreemarkerWebJarsAtMethod
- TemplateEngineHelper - Class in ninja.template
-
Helper methods for template engines
- TemplateEngineHelper() - Constructor for class ninja.template.TemplateEngineHelper
- TemplateEngineJson - Class in ninja.template
- TemplateEngineJson(ObjectMapper) - Constructor for class ninja.template.TemplateEngineJson
- TemplateEngineJsonP - Class in ninja.template
-
JSONP engine.
- TemplateEngineJsonP(ObjectMapper, NinjaProperties) - Constructor for class ninja.template.TemplateEngineJsonP
- TemplateEngineManager - Interface in ninja.template
-
Template engine manager.
- TemplateEngineManagerImpl - Class in ninja.template
- TemplateEngineManagerImpl(Injector) - Constructor for class ninja.template.TemplateEngineManagerImpl
- TemplateEngineText - Class in ninja.template
- TemplateEngineText() - Constructor for class ninja.template.TemplateEngineText
- TemplateEngineXml - Class in ninja.template
- TemplateEngineXml(XmlMapper) - Constructor for class ninja.template.TemplateEngineXml
- test - ninja.utils.NinjaMode
- text - Variable in class ninja.utils.Message
- text() - Method in class ninja.Result
-
Set the content type of this result to
Result.TEXT_PLAIN
. - text() - Static method in class ninja.Results
- TEXT_CSS - Static variable in interface ninja.ContentTypes
- TEXT_HTML - Static variable in interface ninja.ContentTypes
- TEXT_HTML - Static variable in class ninja.Result
- TEXT_PLAIN - Static variable in class ninja.Result
- throwRenderingException(Context, Result, Exception, String) - Method in class ninja.template.TemplateEngineFreemarker
- TIMESTAMP_KEY - Static variable in interface ninja.session.Session
- timeUnit() - Method in annotation type ninja.scheduler.Schedule
-
The time unit, defaults to milliseconds
- timeUnitProperty() - Method in annotation type ninja.scheduler.Schedule
-
The property to read the time unit from.
- TimeUtil - Class in ninja.utils
- TimeUtil() - Constructor for class ninja.utils.TimeUtil
- TODO() - Static method in class ninja.Results
- toString() - Method in class ninja.ReverseRouter.Builder
- toString() - Method in class ninja.utils.Lambdas.LambdaInfo
- toString() - Method in enum ninja.utils.NinjaMode
- tryToReadSourceSnippet(String, int, int) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- tryToReadSourceSnippetInPackage(String, String, int, int) - Static method in class ninja.diagnostics.DiagnosticErrorBuilder
- tryToRender(Context, Result, DiagnosticError, boolean) - Static method in class ninja.diagnostics.DiagnosticErrorRenderer
- tryToUnwrapInjectorException(Exception) - Method in class ninja.standalone.AbstractConsole
U
- unauthorized() - Static method in class ninja.Results
- UNI_CODE_NULL_ENTITY - Static variable in interface ninja.utils.NinjaConstant
-
Used as spacer for instance in session cookie
- unregisterEnum(Class<E>) - Static method in class ninja.params.ParamParsers
-
Deprecated.
- unsetCookie(String) - Method in class ninja.Result
- unsetCookie(Cookie) - Method in interface ninja.Context
-
Removes a cookie from the response
- unsetCookie(Cookie) - Method in class ninja.utils.AbstractContext
- unsetCookie(Cookie) - Method in class ninja.WrappedContext
- UPLOADS_MAX_FILE_SIZE - Static variable in interface ninja.utils.NinjaConstant
-
The maximum allowed size of a single uploaded file.
- UPLOADS_MAX_TOTAL_SIZE - Static variable in interface ninja.utils.NinjaConstant
-
The maximum allowed size of a complete request, i.e.
- UPLOADS_TEMP_FOLDER - Static variable in interface ninja.utils.NinjaConstant
-
Directory where uploaded files are saved.
- USERNAME - Static variable in class ninja.SecureFilter
-
If a username is saved we assume the session is valid
- UsernamePasswordValidator - Interface in ninja
-
Defines a validator for authentication filters like ninja.BasicAuthFilter.
- UTF_8 - Static variable in interface ninja.utils.NinjaConstant
-
yea.
- UUIDParamParser() - Constructor for class ninja.params.ParamParsers.UUIDParamParser
- UUIDValidator(IsUUID) - Constructor for class ninja.validation.Validators.UUIDValidator
V
- validate(Number, String, Context) - Method in class ninja.validation.Validators.NumberValidator
-
Validate the given value
- validate(Object, String, Context) - Method in class ninja.validation.Validators.JSRValidator
-
Validate the given value.
- validate(Object, String, Context) - Method in class ninja.validation.Validators.RequiredValidator
- validate(String, String, Context) - Method in class ninja.validation.Validators.DateValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.EnumValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.FloatValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.IntegerValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.LengthValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.MatchesValidator
-
Validate the given value
- validate(String, String, Context) - Method in class ninja.validation.Validators.UUIDValidator
-
Validate the given value
- validate(T, String, Context) - Method in interface ninja.validation.Validator
-
Validate the given value
- validateCredentials(String, String) - Method in interface ninja.UsernamePasswordValidator
-
Returns true if the supplied username and password are valid.
- ValidatingArgumentExtractor<T> - Class in ninja.params
-
Argument extractor that wraps another argument extractor and validates its argument
- ValidatingArgumentExtractor(ArgumentExtractor<T>, List<Validator<T>>) - Constructor for class ninja.params.ValidatingArgumentExtractor
- validation - Variable in class ninja.utils.AbstractContext
- Validation - Interface in ninja.validation
-
This interface means the validation context (implemented by
ValidationImpl
) and can be injected in your controller method. - ValidationExtractor() - Constructor for class ninja.params.ArgumentExtractors.ValidationExtractor
- ValidationImpl - Class in ninja.validation
-
Validation object
- ValidationImpl() - Constructor for class ninja.validation.ValidationImpl
- Validator<T> - Interface in ninja.validation
-
A validator for validating parameters
- Validators - Class in ninja.validation
-
Built in validators.
- Validators() - Constructor for class ninja.validation.Validators
- Validators.DateValidator - Class in ninja.validation
- Validators.EnumValidator - Class in ninja.validation
- Validators.FloatValidator - Class in ninja.validation
- Validators.IntegerValidator - Class in ninja.validation
- Validators.JSRValidator - Class in ninja.validation
- Validators.LengthValidator - Class in ninja.validation
- Validators.MatchesValidator - Class in ninja.validation
- Validators.NumberValidator - Class in ninja.validation
- Validators.RequiredValidator - Class in ninja.validation
- Validators.UUIDValidator - Class in ninja.validation
- value() - Method in annotation type ninja.FilterWith
- value() - Method in annotation type ninja.params.Attribute
- value() - Method in annotation type ninja.params.Header
- value() - Method in annotation type ninja.params.Headers
- value() - Method in annotation type ninja.params.Param
- value() - Method in annotation type ninja.params.Params
- value() - Method in annotation type ninja.params.PathParam
- value() - Method in annotation type ninja.params.SessionParam
-
The key to look up the session value
- value() - Method in annotation type ninja.params.WithArgumentExtractor
-
The argument extractor that should be used with this annotation
- value() - Method in annotation type ninja.params.WithArgumentExtractors
-
The argument extractors that should be used with this annotation
- value() - Method in annotation type ninja.uploads.FileProvider
- value() - Method in annotation type ninja.validation.WithValidator
-
Validator that should be used to validate parameters annotated with this annotation.
- valueOf(String) - Static method in enum ninja.Context.HTTP_STATUS
-
Deprecated.Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ninja.lifecycle.State
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ninja.utils.Lambdas.Kind
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ninja.utils.NinjaMode
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ninja.Context.HTTP_STATUS
-
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum ninja.lifecycle.State
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum ninja.utils.Lambdas.Kind
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum ninja.utils.NinjaMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- VIEWS_DIR - Static variable in interface ninja.utils.NinjaConstant
W
- webSocketContinue() - Static method in class ninja.Results
-
Instructs ninja (and the http container) that it is okay to continue with the websocket handshake.
- WebSocketHandshake - Interface in ninja.websockets
-
Represents a websocket handshake.
- WebSocketHandshakeExtractor - Class in ninja.websockets
-
Extracts a WebSocketHandshake stored in the Context as an attribute.
- WebSocketHandshakeExtractor() - Constructor for class ninja.websockets.WebSocketHandshakeExtractor
- WebSockets - Interface in ninja.websockets
-
Interface for implementations of web sockets in Ninja.
- WebSocketUtils - Class in ninja.websockets
-
Utilities for implementing WebSockets.
- WebSocketUtils() - Constructor for class ninja.websockets.WebSocketUtils
- with(Class<?>, String) - Method in class ninja.ReverseRouter
-
Retrieves a the reverse route for this controllerClass and method.
- with(Class<?>, String) - Method in interface ninja.RouteBuilder
- with(Class<?>, String) - Method in class ninja.RouteBuilderImpl
- with(ControllerMethods.ControllerMethod) - Method in class ninja.ReverseRouter
-
Retrieves a the reverse route for a method referenced with Java-8 lambdas (functional method references).
- with(ControllerMethods.ControllerMethod) - Method in class ninja.RouteBuilderImpl
- with(ControllerMethods.ControllerMethod) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod0) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod1<A>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod10<A, B, C, D, E, F, G, H, I, J>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod2<A, B>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod3<A, B, C>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod4<A, B, C, D>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod5<A, B, C, D, E>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod6<A, B, C, D, E, F>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod7<A, B, C, D, E, F, G>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod8<A, B, C, D, E, F, G, H>) - Method in interface ninja.WithControllerMethod
- with(ControllerMethods.ControllerMethod9<A, B, C, D, E, F, G, H, I>) - Method in interface ninja.WithControllerMethod
- with(Result) - Method in interface ninja.RouteBuilder
-
Deprecated.Use the functional interface methods to supply a new result for each route request. Its recommended to use
() -> Results.redirect("/")
. - with(Result) - Method in class ninja.RouteBuilderImpl
-
Deprecated.
- with(MethodReference) - Method in class ninja.ReverseRouter
-
Retrieves a the reverse route for the method reference (e.g.
- with(MethodReference) - Method in interface ninja.RouteBuilder
-
Deprecated.
- with(MethodReference) - Method in class ninja.RouteBuilderImpl
-
Deprecated.
- WithArgumentExtractor - Annotation Type in ninja.params
-
Indicates that this annotation should use the given argument extractor
- WithArgumentExtractors - Annotation Type in ninja.params
-
Indicates that this annotation should use the given argument extractors Allows to specify more than one argument extractor, see
WithArgumentExtractor
- WithControllerMethod<T> - Interface in ninja
-
Interface that exposes multiple with methods that accept a large number of various argument combinations.
- withMode(NinjaMode) - Method in class ninja.utils.NinjaPropertiesImpl.Builder
- WithValidator - Annotation Type in ninja.validation
-
Indicates that the annotation should have this validator class applied to it
- WrappedContext - Class in ninja
-
A wrapped context.
- WrappedContext(Context) - Constructor for class ninja.WrappedContext
- WS() - Method in class ninja.RouteBuilderImpl
- WS() - Method in interface ninja.Router
- WS() - Method in class ninja.RouterImpl
- WWW_AUTHENTICATE - Static variable in class ninja.Result
X
- X_FORWARD_HEADER - Static variable in interface ninja.Context
-
X Forwarded for header, used when behind fire walls and proxies.
- xml() - Method in class ninja.Result
-
Set the content type of this result to
Result#APPLICATON_XML
. - xml() - Static method in class ninja.Results
- xml(boolean) - Method in class ninja.conf.NinjaClassicModule
- XmlMapperProvider - Class in ninja.utils
-
This provider makes it simple to configure the XmlMapper in one place for all places where it is used.
- XmlMapperProvider() - Constructor for class ninja.utils.XmlMapperProvider
All Classes All Packages