- generateSecret() - Static method in class ninja.utils.SecretGenerator
-
Generates a random String of length 64.
- generateSecret(Random) - Static method in class ninja.utils.SecretGenerator
-
- get(String) - Method in interface ninja.cache.Cache
-
- get(String[]) - Method in interface ninja.cache.Cache
-
- get(String) - Method in class ninja.cache.CacheEhCacheImpl
-
- get(String[]) - Method in class ninja.cache.CacheEhCacheImpl
-
- get(String) - Method in class ninja.cache.CacheMemcachedImpl
-
- get(String[]) - Method in class ninja.cache.CacheMemcachedImpl
-
- get() - Method in class ninja.cache.CacheProvider
-
- get(String) - Method in class ninja.cache.NinjaCache
-
Retrieve an object.
- 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, Optional<String>, Object...) - Method in interface ninja.i18n.Messages
-
Get a translated string.
- 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(String, Optional<String>, Object...) - Method in class ninja.i18n.MessagesImpl
-
- get() - Method in class ninja.postoffice.guice.PostofficeProvider
-
- GET() - Method in interface ninja.Router
-
- GET() - Method in class ninja.RouterImpl
-
- get(String) - Method in interface ninja.session.FlashScope
-
- 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
-
Returns the value of the key or null.
- get() - Method in class ninja.utils.LoggerProvider
-
- 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() - Method in class ninja.utils.ObjectMapperProvider
-
- get() - Method in class ninja.utils.XmlMapperProvider
-
- getAcceptCharset() - Method in interface ninja.Context
-
Get the charset that is acceptable for the client.
- 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.WrappedContext
-
- getAcceptEncoding() - Method in interface ninja.Context
-
Get the encoding that is acceptable for the client.
- 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.WrappedContext
-
- getAll(Optional<String>) - Method in interface ninja.i18n.Messages
-
- 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
-
- getAll(Optional<String>) - 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
-
- getAttribute(String) - Method in interface ninja.Context
-
- getAttribute(String, Class<T>) - Method in interface ninja.Context
-
- getAttribute(String) - Method in class ninja.WrappedContext
-
- getAttribute(String, Class<T>) - Method in class ninja.WrappedContext
-
- getAuthenticityToken() - Method in interface ninja.session.Session
-
- getAuthenticityToken() - Method in class ninja.session.SessionImpl
-
- getBadRequestResult(Context, Exception) - Method in interface ninja.Ninja
-
Should handle cases where the client sent strange date that
led to an error.
- getBadRequestResult(Context, Exception) - Method in class ninja.NinjaDefault
-
- getBccs() - Method in class ninja.postoffice.common.MailImpl
-
- getBccs() - Method in interface ninja.postoffice.Mail
-
- getBeanViolations() - Method in interface ninja.validation.Validation
-
Get all bean validations for that bean.
- getBeanViolations() - Method in class ninja.validation.ValidationImpl
-
- getBodyHtml() - Method in class ninja.postoffice.common.MailImpl
-
- getBodyHtml() - Method in interface ninja.postoffice.Mail
-
- getBodyParserEngineForContentType(String) - Method in interface ninja.bodyparser.BodyParserEngineManager
-
- getBodyParserEngineForContentType(String) - Method in class ninja.bodyparser.BodyParserEngineManagerImpl
-
- getBodyText() - Method in class ninja.postoffice.common.MailImpl
-
- getBodyText() - Method in interface ninja.postoffice.Mail
-
- getBoolean(String) - Method in interface ninja.utils.NinjaProperties
-
- getBoolean(String) - Method in class ninja.utils.NinjaPropertiesImpl
-
- 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
-
- getCcs() - Method in class ninja.postoffice.common.MailImpl
-
- getCcs() - Method in interface ninja.postoffice.Mail
-
- getCharset() - Method in class ninja.postoffice.common.MailImpl
-
- getCharset() - Method in interface ninja.postoffice.Mail
-
- 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
-
- 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.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.TemplateEngineXml
-
- 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".
- 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 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.WrappedContext
-
- getCurrentFlashCookieData() - Method in interface ninja.session.FlashScope
-
- getCurrentFlashCookieData() - Method in class ninja.session.FlashScopeImpl
-
- getData() - Method in interface ninja.session.Session
-
- getData() - Method in class ninja.session.SessionImpl
-
- getDefaultMessage() - Method in class ninja.validation.ConstraintViolation
-
- getDomain() - Method in class ninja.Cookie
-
- 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.FlashExtractor
-
- getExtractedType() - Method in class ninja.params.ArgumentExtractors.ParamExtractor
-
- 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.ValidatingArgumentExtractor
-
- 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.FlashExtractor
-
- getFieldName() - Method in class ninja.params.ArgumentExtractors.ParamExtractor
-
- 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.ValidatingArgumentExtractor
-
- getFieldViolations() - Method in interface ninja.validation.Validation
-
Get a complete list of all field violations.
- getFieldViolations(String) - Method in interface ninja.validation.Validation
-
Get a complete list of field violations for a specified field.
- getFieldViolations() - Method in class ninja.validation.ValidationImpl
-
- getFieldViolations(String) - Method in class ninja.validation.ValidationImpl
-
- getFileItemIterator() - Method in interface ninja.Context
-
Gets the FileItemIterator of the input.
- getFileItemIterator() - Method in class ninja.WrappedContext
-
- getFileNameFromPathOrReturnRequestPath(Context) - Static method in class ninja.AssetsController
-
- getFilterChain() - Method in class ninja.Route
-
- getFlashCookie() - Method in interface ninja.Context
-
Deprecated.
- getFlashCookie() - Method in class ninja.WrappedContext
-
- getFlashScope() - Method in interface ninja.Context
-
Returns the flash cookie.
- 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 - not found
(and be used with the same mindset).
- getForbiddenResult(Context) - Method in class ninja.NinjaDefault
-
- getFrom() - Method in class ninja.postoffice.common.MailImpl
-
- getFrom() - Method in interface ninja.postoffice.Mail
-
- 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(String) - Method in interface ninja.Context
-
Get all the request headers with the given name.
- getHeaders() - Method in interface ninja.Context
-
Get all the headers from the request
- getHeaders() - Method in class ninja.postoffice.common.MailImpl
-
- getHeaders() - Method in interface ninja.postoffice.Mail
-
- getHeaders() - Method in class ninja.Result
-
- getHeaders(String) - Method in class ninja.WrappedContext
-
- getHeaders() - Method in class ninja.WrappedContext
-
- 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
-
- getId() - Method in interface ninja.session.Session
-
- getId() - Method in class ninja.session.SessionImpl
-
- getInputStream() - Method in interface ninja.Context
-
Get the input stream to read the request.
- 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
-
- 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 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) - Method in class ninja.NinjaDefault
-
- 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
-
- getLastModified(Object) - Method in class ninja.template.TemplateEngineFreemarkerEscapedLoader
-
- getLastSentMail() - Method in class ninja.postoffice.mock.PostofficeMockImpl
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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
-
- 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, String) - Method in interface ninja.Context
-
- getParameter(String) - Method in class ninja.WrappedContext
-
- getParameter(String, String) - Method in class ninja.WrappedContext
-
- getParameterAs(String, Class<T>) - Method in interface ninja.Context
-
- getParameterAs(String, Class<T>, T) - Method in interface ninja.Context
-
- getParameterAs(String, Class<T>) - Method in class ninja.WrappedContext
-
- getParameterAs(String, Class<T>, T) - Method in class ninja.WrappedContext
-
- getParameterAsInteger(String) - Method in interface ninja.Context
-
- getParameterAsInteger(String, Integer) - Method in interface ninja.Context
-
- getParameterAsInteger(String) - Method in class ninja.WrappedContext
-
- getParameterAsInteger(String, Integer) - Method in class ninja.WrappedContext
-
- getParameters() - Method in interface ninja.Context
-
Get all the parameters from the request
- 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<?>) - Static 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.DoubleParamParser
-
- getParsedType() - Method in class ninja.params.ParamParsers.FloatParamParser
-
- 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.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
-
- 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.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.WrappedContext
-
- getPathParameterEncoded(String) - Method in interface ninja.Context
-
Get the path parameter for the given key.
- getPathParameterEncoded(String) - Method in class ninja.WrappedContext
-
- getPathParametersEncoded(String) - Method in class ninja.Route
-
This method does not do any decoding / encoding.
- getReader() - Method in interface ninja.Context
-
Get the reader to read the request.
- getReader(Object, String) - Method in class ninja.template.TemplateEngineFreemarkerEscapedLoader
-
- getReader() - Method in class ninja.WrappedContext
-
- getRealClassNameLowerCamelCase(Object) - Static method in class ninja.utils.SwissKnife
-
Returns the lower class name.
- 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.WrappedContext
-
- getRenderable() - Method in class ninja.Result
-
- getReplyTo() - Method in class ninja.postoffice.common.MailImpl
-
- getReplyTo() - Method in interface ninja.postoffice.Mail
-
- 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
-
- getRequestPath() - Method in interface ninja.Context
-
Returns the path that Ninja should act upon.
- getRequestPath() - Method in class ninja.WrappedContext
-
- getRequestUri() - Method in interface ninja.Context
-
Deprecated.
- getRequestUri() - Method in class ninja.WrappedContext
-
- getReverseRoute(Class<?>, String) - Method in interface ninja.Router
-
Retrieves the reverse route for this controllerClass and method.
- getReverseRoute(Class<?>, String, Map<String, Object>) - Method in interface ninja.Router
-
Retrieves the reverse route for this controllerClass and method.
- getReverseRoute(Class<?>, String, Object...) - Method in interface ninja.Router
-
Retrieves the reverse route for this controllerClass and method.
- getReverseRoute(Class<?>, String, Optional<Map<String, Object>>) - Method in interface ninja.Router
-
Retrieves the reverse route for this controllerClass and method.
- getReverseRoute(Class<?>, String) - Method in class ninja.RouterImpl
-
- getReverseRoute(Class<?>, String, Object...) - Method in class ninja.RouterImpl
-
- getReverseRoute(Class<?>, String, Optional<Map<String, Object>>) - Method in class ninja.RouterImpl
-
- getReverseRoute(Class<?>, String, 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.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
-
- getRoutes() - Method in interface ninja.Router
-
Returns the list of compiled routes.
- getRoutes() - Method in class ninja.RouterImpl
-
- getSession() - Method in interface ninja.Context
-
Returns the client side session.
- getSession() - Method in class ninja.WrappedContext
-
- getSessionCookie() - Method in interface ninja.Context
-
Deprecated.
- getSessionCookie() - Method in class ninja.WrappedContext
-
- 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
-
- getSubject() - Method in class ninja.postoffice.common.MailImpl
-
- getSubject() - Method in interface ninja.postoffice.Mail
-
- 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.TemplateEngineXml
-
- 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
-
- getTos() - Method in class ninja.postoffice.common.MailImpl
-
- getTos() - Method in interface ninja.postoffice.Mail
-
- 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
-
- getUrl() - Method in class ninja.Route
-
- 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.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
-
- getValidation() - Method in interface ninja.Context
-
Get the validation context
- getValidation() - Method in class ninja.WrappedContext
-
- getValue() - Method in class ninja.Cookie
-
- getWithDefault(String, String, Optional<String>, Object...) - Method in interface ninja.i18n.Messages
-
Gets a message for a message key.
- 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
-
- getWithDefault(String, String, Optional<String>, Object...) - Method in class ninja.i18n.MessagesImpl
-
- 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
-
- getWriter() - Method in interface ninja.utils.ResponseStreams
-
Get the writer to write the response.
- 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.
- registerLifecycle(Object) - Method in class ninja.lifecycle.LifecycleSupport
-
- remove(String) - Method in interface ninja.session.FlashScope
-
- 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(Context, Result) - Method in interface ninja.Renderable
-
- 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(Map<String, Object>) - Method in class ninja.Result
-
Replaces the object being passed by this result to the rendering engine
with this map.
- render(Map.Entry<String, Object>) - Method in class ninja.Result
-
Handles two cases:
1) If this.renderable is null a new HashMap is generated and this entry being added
to the map.
- render(Renderable) - Method in class ninja.Result
-
Sets this renderable as object to render.
- render(String, Object) - Method in class ninja.Result
-
Implicitly generates a hashmap as object being rendered and adds
this key, value pair.
- 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
-
- renderRaw(String) - Method in class ninja.Result
-
This method directly renders the String to the output.
- replace(String, Object, int) - Method in interface ninja.cache.Cache
-
- 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.
- replace(String, Object) - Method in class ninja.cache.NinjaCache
-
Replace an element only if it already exists and store it indefinitely.
- Required - Annotation Type in ninja.validation
-
Validates that the length of the field meets the given length constraints
- RequiredValidator(Required) - Constructor for class ninja.validation.Validators.RequiredValidator
-
- 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
-
- Route - Class in ninja
-
A route
- Route(String, String, Class, Method, FilterChain) - Constructor for class ninja.Route
-
- route(String) - Method in interface ninja.RouteBuilder
-
- RouteBuilder - Interface in ninja
-
- router - Variable in class ninja.NinjaDefault
-
- Router - Interface in ninja
-
- RouterImpl - Class in ninja
-
- RouterImpl(Injector, NinjaProperties) - Constructor for class ninja.RouterImpl
-
- 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
-
- safeAdd(String, Object, int) - Method in interface ninja.cache.Cache
-
- 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
-
- 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
-
- 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
-
- 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, Result) - Method in interface ninja.session.FlashScope
-
- save(Context, Result) - Method in class ninja.session.FlashScopeImpl
-
- save(Context, Result) - Method in interface ninja.session.Session
-
- save(Context, Result) - Method in class ninja.session.SessionImpl
-
- 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 - Annotation Type in ninja.scheduler
-
Schedules the annotated method for execution
- schedule(Object) - Method in class ninja.scheduler.Scheduler
-
- 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
- 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
-
- send(Mail) - Method in class ninja.postoffice.commonsmail.PostofficeCommonsmailImpl
-
- send(Mail) - Method in class ninja.postoffice.mock.PostofficeMockImpl
-
- send(Mail) - Method in interface ninja.postoffice.Postoffice
-
- serve(Context) - Method in class ninja.AssetsController
-
Deprecated.
- serverName - Static variable in interface ninja.utils.NinjaConstant
-
In many situations the server cannot know its own name.
- serveStatic(Context) - Method in class ninja.AssetsController
-
Serves resources from the assets directory of your application.
- serveWebJars(Context) - Method in class ninja.AssetsController
-
Serves resources from the assets directory of your application.
- Session - Interface in ninja.session
-
Session Cookie...
- 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
-
Session Cookie...
- SessionImpl(Crypto, NinjaProperties) - 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, int) - Method in interface ninja.cache.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.
- set(String, Object) - Method in class ninja.cache.NinjaCache
-
Set an element and store it indefinitely.
- setAttribute(String, Object) - Method in interface ninja.Context
-
Sets an attribute value.
- setAttribute(String, Object) - Method in class ninja.WrappedContext
-
- setBodyHtml(String) - Method in class ninja.postoffice.common.MailImpl
-
- setBodyHtml(String) - Method in interface ninja.postoffice.Mail
-
- setBodyText(String) - Method in class ninja.postoffice.common.MailImpl
-
- setBodyText(String) - Method in interface ninja.postoffice.Mail
-
- setCharset(String) - Method in class ninja.postoffice.common.MailImpl
-
- setCharset(String) - Method in interface ninja.postoffice.Mail
-
- 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
-
- setFrom(String) - Method in class ninja.postoffice.common.MailImpl
-
- setFrom(String) - Method in interface ninja.postoffice.Mail
-
- 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
-
- setRoute(Route) - Method in interface ninja.Context.Impl
-
- setSecure(boolean) - Method in class ninja.Cookie.Builder
-
- setSubject(String) - Method in class ninja.postoffice.common.MailImpl
-
- setSubject(String) - Method in interface ninja.postoffice.Mail
-
- setValue(String) - Method in class ninja.Cookie.Builder
-
- signHmacSha1(String) - Method in class ninja.utils.Crypto
-
- smtpDebug - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- smtpHost - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- smtpPassword - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- smtpPort - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- smtpSsl - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- smtpUser - Static variable in interface ninja.postoffice.guice.PostofficeConstant
-
- start() - Method in class ninja.jpa.JpaInitializer
-
- start() - Method in interface ninja.lifecycle.LifecycleService
-
Start the application
- start() - Method in class ninja.lifecycle.LifecycleServiceImpl
-
- Start - Annotation Type in ninja.lifecycle
-
Annotation indicating this method should be called when the application starts up.
- start() - Method in class ninja.migrations.MigrationInitializer
-
We start it at order 9 which is below order 10 (where JPA is started)
- start() - Method in class ninja.scheduler.Scheduler
-
- State - Enum in ninja.lifecycle
-
States that are possible for a service.
- 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 class ninja.jpa.JpaInitializer
-
- stop() - Method in interface ninja.lifecycle.LifecycleService
-
Stop the application
- stop() - Method in class ninja.lifecycle.LifecycleServiceImpl
-
- success(String) - Method in interface ninja.session.FlashScope
-
Sets the success flash cookie value.
- success(String) - Method in class ninja.session.FlashScopeImpl
-
- 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
-