A B C D E F G H I J K L M N O P R S T U V W X Y 

A

addBcc(String...) - Method in class ninja.postoffice.common.MailImpl
 
addBcc(String...) - Method in interface ninja.postoffice.Mail
In general email addresses could look like: Joe Jocker or joe@joe.com.
addBeanViolation(FieldViolation) - Method in interface ninja.validation.Validation
Add a bean violation.
addBeanViolation(FieldViolation) - Method in class ninja.validation.ValidationImpl
 
addCc(String...) - Method in class ninja.postoffice.common.MailImpl
 
addCc(String...) - Method in interface ninja.postoffice.Mail
In general email addresses could look like: Joe Jocker or joe@joe.com.
addCookie(Cookie) - Method in class ninja.Result
 
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
Add a violation to the given field
addFieldViolation(FieldViolation) - Method in interface ninja.validation.Validation
Add a field violation to the list of filed violations.
addFieldViolation(FieldViolation) - Method in class ninja.validation.ValidationImpl
 
addFieldViolation(String, ConstraintViolation) - Method in class ninja.validation.ValidationImpl
 
addHeader(String, String) - Method in class ninja.postoffice.common.MailImpl
 
addHeader(String, String) - Method in interface ninja.postoffice.Mail
 
addHeader(String, String) - Method in class ninja.Result
 
addNinjaModule(NinjaModuleRegistry) - Method in interface ninja.NinjaModule
 
addPlugin(Class<NinjaModule>) - Method in interface ninja.NinjaModuleRegistry
 
addPlugin(Class<NinjaModule>) - Method in class ninja.NinjaModuleRegistryImpl
 
addReplyTo(String...) - Method in class ninja.postoffice.common.MailImpl
 
addReplyTo(String...) - Method in interface ninja.postoffice.Mail
In general email addresses could look like: Joe Jocker or joe@joe.com.
addTo(String...) - Method in class ninja.postoffice.common.MailImpl
 
addTo(String...) - Method in interface ninja.postoffice.Mail
In general email addresses could look like: Joe Jocker or joe@joe.com.
addViolation(ConstraintViolation) - Method in interface ninja.validation.Validation
Deprecated.
addViolation(ConstraintViolation) - Method in class ninja.validation.ValidationImpl
 
APPLICATION_JSON - Static variable in interface ninja.ContentTypes
 
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
 
applicationCookiePrefix - Static variable in interface ninja.utils.NinjaConstant
Prefix used for all Ninja cookies.
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
 
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.AttributeExtractor(Attribute, ArgumentClassHolder) - Constructor for class ninja.params.ArgumentExtractors.AttributeExtractor
 
ArgumentExtractors.BodyAsExtractor<T> - Class in ninja.params
 
ArgumentExtractors.BodyAsExtractor(Class<T>) - Constructor for class ninja.params.ArgumentExtractors.BodyAsExtractor
 
ArgumentExtractors.ContextExtractor - Class in ninja.params
 
ArgumentExtractors.ContextExtractor() - Constructor for class ninja.params.ArgumentExtractors.ContextExtractor
 
ArgumentExtractors.FlashExtractor - Class in ninja.params
 
ArgumentExtractors.FlashExtractor() - Constructor for class ninja.params.ArgumentExtractors.FlashExtractor
 
ArgumentExtractors.ParamExtractor - Class in ninja.params
 
ArgumentExtractors.ParamExtractor(Param) - Constructor for class ninja.params.ArgumentExtractors.ParamExtractor
 
ArgumentExtractors.PathParamExtractor - Class in ninja.params
 
ArgumentExtractors.PathParamExtractor(PathParam) - Constructor for class ninja.params.ArgumentExtractors.PathParamExtractor
 
ArgumentExtractors.SessionExtractor - Class in ninja.params
 
ArgumentExtractors.SessionExtractor() - Constructor for class ninja.params.ArgumentExtractors.SessionExtractor
 
ArgumentExtractors.SessionParamExtractor - Class in ninja.params
 
ArgumentExtractors.SessionParamExtractor(SessionParam) - Constructor for class ninja.params.ArgumentExtractors.SessionParamExtractor
 
ArgumentExtractors.ValidationExtractor - Class in ninja.params
 
ArgumentExtractors.ValidationExtractor() - Constructor for class ninja.params.ArgumentExtractors.ValidationExtractor
 
AssetsController - Class in ninja
This controller serves public resources under /public
AssetsController(HttpCacheToolkit, MimeTypes) - Constructor for class ninja.AssetsController
 
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.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.

B

badRequest() - Static method in class ninja.Results
 
bindProperties(Binder) - Method in class ninja.utils.NinjaPropertiesImpl
 
BodyParserEngine - Interface in ninja.bodyparser
 
BodyParserEngineJson - Class in ninja.bodyparser
 
BodyParserEngineJson(Gson, Logger) - Constructor for class ninja.bodyparser.BodyParserEngineJson
 
BodyParserEngineManager - Interface in ninja.bodyparser
 
BodyParserEngineManagerImpl - Class in ninja.bodyparser
 
BodyParserEngineManagerImpl(BodyParserEnginePost, BodyParserEngineJson, BodyParserEngineXml) - Constructor for class ninja.bodyparser.BodyParserEngineManagerImpl
 
BodyParserEnginePost - Class in ninja.bodyparser
 
BodyParserEnginePost(Logger) - Constructor for class ninja.bodyparser.BodyParserEnginePost
 
BodyParserEngineXml - Class in ninja.bodyparser
 
BodyParserEngineXml(XmlMapper, Logger) - Constructor for class ninja.bodyparser.BodyParserEngineXml
 
build() - Method in class ninja.Cookie.Builder
 
build(Method, Injector) - Static method in class ninja.params.ControllerMethodInvoker
 
builder(String, String) - Static method in class ninja.Cookie
 
builder(Cookie) - Static method in class ninja.Cookie
 

C

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
 
charset(String) - Method in class ninja.Result
 
clear() - Method in interface ninja.session.SessionCookie
 
clear() - Method in class ninja.session.SessionCookieImpl
 
clearCurrentFlashCookieData() - Method in interface ninja.session.FlashCookie
 
clearCurrentFlashCookieData() - Method in class ninja.session.FlashCookieImpl
 
clearLanguage(Result) - Method in interface ninja.i18n.Lang
Clears the current language.
clearLanguage(Result) - Method in class ninja.i18n.LangImpl
 
closeTemplateSource(Object) - Method in class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
code - Variable in enum ninja.Context.HTTP_STATUS
Deprecated.
 
CommonsmailHelper - Interface in ninja.postoffice.commonsmail
 
CommonsmailHelperImpl - Class in ninja.postoffice.commonsmail
 
CommonsmailHelperImpl() - Constructor for class ninja.postoffice.commonsmail.CommonsmailHelperImpl
 
compileRoutes() - Method in interface ninja.Router
Compile all the routes that have been registered with the router.
compileRoutes() - Method in class ninja.RouterImpl
 
CONF_FILE_LOCATION_BY_CONVENTION - Static variable in interface ninja.utils.NinjaProperties
The default configuration.
Configuration - Class in ninja
The basic configuration of the main ninja framework.
Configuration(NinjaPropertiesImpl) - Constructor for class ninja.Configuration
 
configure() - Method in class ninja.Configuration
 
ConstraintViolation - Class in ninja.validation
A validation constraint violation
ConstraintViolation(String, String, String, Object...) - Constructor for class ninja.validation.ConstraintViolation
Create a constraint violation
constraintViolation - Variable in class ninja.validation.FieldViolation
 
contains(String) - Method in interface ninja.session.FlashCookie
 
contains(String) - Method in class ninja.session.FlashCookieImpl
 
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
 
ControllerMethodInvoker - Class in ninja.params
Invokes methods on the controller, extracting arguments out
controllerReturned() - Method in interface ninja.Context
 
controllerReturned() - Method in class ninja.WrappedContext
 
CONTROLLERS_DIR - Static variable in interface ninja.utils.NinjaConstant
 
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
 
create(String, Object...) - Static method in class ninja.validation.ConstraintViolation
 
createForField(String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
 
createForFieldWithDefault(String, String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
 
createListOfAddresses(Collection<String>) - Method in interface ninja.postoffice.commonsmail.CommonsmailHelper
 
createListOfAddresses(Collection<String>) - Method in class ninja.postoffice.commonsmail.CommonsmailHelperImpl
 
createMultiPartEmailWithContent(Mail) - Method in interface ninja.postoffice.commonsmail.CommonsmailHelper
Creates a MultiPartEmail.
createMultiPartEmailWithContent(Mail) - Method in class ninja.postoffice.commonsmail.CommonsmailHelperImpl
Creates a MultiPartEmail.
createValidEmailFromString(String) - Method in interface ninja.postoffice.commonsmail.CommonsmailHelper
 
createValidEmailFromString(String) - Method in class ninja.postoffice.commonsmail.CommonsmailHelperImpl
 
createWithDefault(String, String, Object...) - Static method in class ninja.validation.ConstraintViolation
 
Crypto - Class in ninja.utils
 
Crypto(NinjaProperties) - Constructor for class ninja.utils.Crypto
Secret is a secret key.

D

DATE - Static variable in class ninja.Result
 
DateUtil - Class in ninja.utils
 
DateUtil() - Constructor for class ninja.utils.DateUtil
 
DELETE() - Method in interface ninja.Router
 
DELETE() - Method in class ninja.RouterImpl
 
discard(String) - Method in interface ninja.session.FlashCookie
 
discard() - Method in interface ninja.session.FlashCookie
 
discard(String) - Method in class ninja.session.FlashCookieImpl
 
discard() - Method in class ninja.session.FlashCookieImpl
 
Dispose - Annotation Type in ninja.lifecycle
Annotation indicating this method should be called on application shut down.
dispose() - Method in class ninja.scheduler.Scheduler
 
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.
doPopulateMultipartMailWithContent(MultiPartEmail, Mail) - Method in interface ninja.postoffice.commonsmail.CommonsmailHelper
 
doPopulateMultipartMailWithContent(MultiPartEmail, Mail) - Method in class ninja.postoffice.commonsmail.CommonsmailHelperImpl
 
doSetServerParameter(MultiPartEmail, String, Integer, Boolean, String, String, Boolean) - Method in interface ninja.postoffice.commonsmail.CommonsmailHelper
 
doSetServerParameter(MultiPartEmail, String, Integer, Boolean, String, String, Boolean) - Method in class ninja.postoffice.commonsmail.CommonsmailHelperImpl
 

E

equals(Object) - Method in class ninja.Cookie
 
error(String, Object...) - Method in interface ninja.session.FlashCookie
 
error(String, Object...) - Method in class ninja.session.FlashCookieImpl
 
ESCAPE_PREFIX - Static variable in class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
ESCAPE_SUFFIX - Static variable in class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
ETAG - Static variable in interface ninja.utils.HttpHeaderConstants
 
EXPIRES - Static variable in class ninja.Result
 
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.FlashExtractor
 
extract(Context) - Method in class ninja.params.ArgumentExtractors.ParamExtractor
 
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.ValidatingArgumentExtractor
 

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
 
field - Variable in class ninja.validation.FieldViolation
 
FieldViolation - Class in ninja.validation
 
FieldViolation(String, ConstraintViolation) - Constructor for class ninja.validation.FieldViolation
 
Filter - Interface in ninja
A simple filter that can be applied to controller methods or while classes.
filter(FilterChain, Context) - Method in interface ninja.Filter
Filter the request.
filter(FilterChain, Context) - Method in class ninja.SecureFilter
 
FilterChain - Interface in ninja
A filter chain
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.WrappedContext
 
findTemplateSource(String) - Method in class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
FLASH_SUFFIX - Static variable in interface ninja.utils.NinjaConstant
Suffix used for Ninja cookies.
FlashCookie - Interface in ninja.session
Flash scope: A client side cookie that can be used to transfer information from one request to another.
FlashCookieImpl - Class in ninja.session
Flash scope: A client side cookie that can be used to transfer information from one request to another.
FlashCookieImpl(NinjaProperties) - Constructor for class ninja.session.FlashCookieImpl
 
forbidden() - Static method in class ninja.Results
 
formatForHttpHeader(Date) - Static method in class ninja.utils.DateUtil
Can be used to format a date into http header compatible strings.
formatForHttpHeader(Long) - Static method in class ninja.utils.DateUtil
Can be used to format a unix timestamp into http header compatible strings.

G

get(String, String, Object...) - Method in interface ninja.i18n.Lang
Deprecated.
Now lives in Messages
get(String, String, Object...) - Method in class ninja.i18n.LangImpl
Deprecated.
get(String, String, Object...) - Method in interface ninja.i18n.Messages
Get a translated string.
get(String, Context, Result, Object...) - Method in interface ninja.i18n.Messages
Get a translated string.
get(String, Context, Result, Object...) - Method in class ninja.i18n.MessagesImpl
 
get(String, 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.FlashCookie
 
get(String) - Method in class ninja.session.FlashCookieImpl
 
get(String) - Method in interface ninja.session.SessionCookie
Returns the value of the key or null.
get(String) - Method in class ninja.session.SessionCookieImpl
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
 
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(String) - Method in interface ninja.i18n.Lang
Deprecated.
Now lives in Messages
getAll(String) - Method in class ninja.i18n.LangImpl
Deprecated.
getAll(String) - Method in interface ninja.i18n.Messages
Returns all messages for a language we have.
getAll(Context, Result) - Method in interface ninja.i18n.Messages
Returns all messages for the default language in that context / result.
getAll(Context, Result) - Method in class ninja.i18n.MessagesImpl
 
getAll(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
Gets an attribute value previously set by Context.setAttribute(java.lang.String, java.lang.Object).
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) - Method in class ninja.WrappedContext
 
getAttribute(String, Class<T>) - Method in class ninja.WrappedContext
 
getAuthenticityToken() - Method in interface ninja.session.SessionCookie
 
getAuthenticityToken() - Method in class ninja.session.SessionCookieImpl
 
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 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.TemplateEngineJsonGson
 
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".
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.FlashCookie
 
getCurrentFlashCookieData() - Method in class ninja.session.FlashCookieImpl
 
getData() - Method in interface ninja.session.SessionCookie
 
getData() - Method in class ninja.session.SessionCookieImpl
 
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
 
getFilterChain() - Method in class ninja.Route
 
getFlashCookie() - Method in interface ninja.Context
Returns the flash cookie.
getFlashCookie() - Method in class ninja.WrappedContext
 
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
 
getHttpMethod() - Method in class ninja.Route
 
getId() - Method in interface ninja.session.SessionCookie
 
getId() - Method in class ninja.session.SessionCookieImpl
 
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
 
getLanguage(Context, Result) - Method in interface ninja.i18n.Lang
Retrieve the current language or null if not set.
getLanguage(Context, Result) - Method in class ninja.i18n.LangImpl
 
getLastModified(Object) - Method in class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
getLastSentMail() - Method in class ninja.postoffice.mock.PostofficeMockImpl
 
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
 
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.FlashCookie
 
getOutgoingFlashCookieData() - Method in class ninja.session.FlashCookieImpl
 
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
Same like Context.getParameter(String), but returns given defaultValue instead of null in case parameter cannot be found.
getParameter(String) - Method in class ninja.WrappedContext
 
getParameter(String, 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, Integer) - Method in interface ninja.Context
Same like Context.getParameter(String, String), but converts the parameter to Integer if found.
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
 
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
 
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
 
getSessionCookie() - Method in interface ninja.Context
Returns the client side session.
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.TemplateEngineJsonGson
 
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
 
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, String, Object...) - Method in interface ninja.i18n.Lang
Deprecated.
Now lives in Messages
getWithDefault(String, String, String, Object...) - Method in class ninja.i18n.LangImpl
Deprecated.
getWithDefault(String, String, String, Object...) - Method in interface ninja.i18n.Messages
Gets a message for a message key.
getWithDefault(String, String, Context, Result, Object...) - Method in interface ninja.i18n.Messages
Gets a message for a message key.
getWithDefault(String, String, Context, Result, Object...) - Method in class ninja.i18n.MessagesImpl
 
getWithDefault(String, String, 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.

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
 
hasBeanViolations() - Method in interface ninja.validation.Validation
Whether any violation occured while validating your beans Note: For now, you can only have one bean in your controller method signature, so this is explicit.
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
Whether the validation context has a violation for the given field
hasFieldViolation(String) - Method in class ninja.validation.ValidationImpl
 
hashCode() - Method in class ninja.Cookie
 
hasLifecycleMethod(Class<?>) - Method in class ninja.lifecycle.LifecycleSupport
 
hasScheduledMethod(Class<?>) - Method in class ninja.scheduler.Scheduler
 
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
 
html() - Method in class ninja.Result
Set the content type of this result to Result.TEXT_HTML.
html() - Static method in class ninja.Results
 
html(int) - Static method in class ninja.Results
 
html(Object) - Static method in class ninja.Results
Deprecated.
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_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

IF_MODIFIED_SINCE - Static variable in interface ninja.utils.HttpHeaderConstants
 
IF_NONE_MATCH - Static variable in interface ninja.utils.HttpHeaderConstants
 
init(Router) - Method in interface ninja.application.ApplicationRoutes
 
init() - Method in interface ninja.NinjaModule
 
init(Context) - Method in interface ninja.session.FlashCookie
 
init(Context) - Method in class ninja.session.FlashCookieImpl
 
init(Context) - Method in interface ninja.session.SessionCookie
 
init(Context) - Method in class ninja.session.SessionCookieImpl
Has to be called initially.
internalServerError() - Static method in class ninja.Results
 
invoke(Context, Class<T>) - Method in interface ninja.bodyparser.BodyParserEngine
 
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.Impl) - Method in interface ninja.Ninja
Please ninja framwork - handle this context...
invoke(Context.Impl) - Method in class ninja.NinjaImpl
I do all the main work.
invoke(Object, Context) - Method in class ninja.params.ControllerMethodInvoker
 
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.TemplateEngineJsonGson
 
isDev() - Method in interface ninja.utils.NinjaProperties
Whether we are in dev mode
isDev() - Method in class ninja.utils.NinjaPropertiesImpl
 
isEmpty() - Method in interface ninja.session.SessionCookie
Returns true if the session is empty, e.g.
isEmpty() - Method in class ninja.session.SessionCookieImpl
Returns true if the session is empty, e.g.
IsFloat - Annotation Type in ninja.validation
Validates that the field is a floating point number.
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(String, Long, Context) - Method in interface ninja.utils.HttpCacheToolkit
Checks if resource has been modified.
isModified(String, 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
 
isProd() - Method in interface ninja.utils.NinjaProperties
Whether we are in prod mode
isProd() - Method in class ninja.utils.NinjaPropertiesImpl
 
isSecure() - Method in class ninja.Cookie
 
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
 
isValidMimeType(String) - Method in class ninja.utils.MimeTypes
check the mimetype is referenced in the mimetypes database

J

json() - Method in class ninja.Result
Set the content type of this result to Result.APPLICATON_JSON.
json(int) - Static method in class ninja.Results
Deprecated.
json() - Static method in class ninja.Results
 
json(Object) - Static method in class ninja.Results
 
JSR303Validation - Annotation Type in ninja.validation
Validates that the annoted element is conform to its JSR303-Annotations

K

keep(String) - Method in interface ninja.session.FlashCookie
 
keep() - Method in interface ninja.session.FlashCookie
 
keep(String) - Method in class ninja.session.FlashCookieImpl
 
keep() - Method in class ninja.session.FlashCookieImpl
 
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.JSR303Validation
 

L

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
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 - 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
loadConfigurationInUtf8(String) - Static method in class ninja.utils.SwissKnife
This is important: We load stuff as UTF-8.
LOCATION - Static variable in class ninja.Result
 
LOCATION_VIEW_FTL_HTML_FORBIDDEN - Static variable in interface ninja.utils.NinjaConstant
 
LOCATION_VIEW_FTL_HTML_NOT_FOUND - Static variable in interface ninja.utils.NinjaConstant
 
LoggerProvider - Class in ninja.utils
 
LoggerProvider() - Constructor for class ninja.utils.LoggerProvider
 

M

Mail - Interface in ninja.postoffice
A simple interface.
MailImpl - Class in ninja.postoffice.common
Simple implementation of Mail.
MailImpl() - Constructor for class ninja.postoffice.common.MailImpl
 
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
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.JSR303Validation
 
Messages - Interface in ninja.i18n
 
MessagesImpl - Class in ninja.i18n
 
MessagesImpl(NinjaProperties, Lang) - Constructor for class ninja.i18n.MessagesImpl
 
MimeTypes - Class in ninja.utils
MimeTypes utils Adapted from play 1.2.4
MimeTypes(NinjaProperties) - Constructor for class ninja.utils.MimeTypes
 
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

next(Context) - Method in interface ninja.FilterChain
Pass the request to the next filter
ninja - package ninja
 
Ninja - Interface in ninja
The main entry class for the framework.
ninja.application - package ninja.application
 
ninja.bodyparser - package ninja.bodyparser
 
ninja.i18n - package ninja.i18n
 
ninja.lifecycle - package ninja.lifecycle
 
ninja.params - package ninja.params
 
ninja.postoffice - package ninja.postoffice
 
ninja.postoffice.common - package ninja.postoffice.common
 
ninja.postoffice.commonsmail - package ninja.postoffice.commonsmail
 
ninja.postoffice.guice - package ninja.postoffice.guice
 
ninja.postoffice.mock - package ninja.postoffice.mock
 
ninja.scheduler - package ninja.scheduler
 
ninja.session - package ninja.session
 
ninja.template - package ninja.template
 
ninja.utils - package ninja.utils
 
ninja.validation - package ninja.validation
 
NINJA_EXTERNAL_CONF - Static variable in interface ninja.utils.NinjaProperties
Often you may want to use a separate configuration file.
NinjaConstant - Interface in ninja.utils
 
NinjaImpl - Class in ninja
Main implementation of the ninja framework.
NinjaImpl(LifecycleService, Router, ResultHandler) - Constructor for class ninja.NinjaImpl
 
NinjaModule - Interface in ninja
That is virtually the main() class of your Application.
NinjaModuleRegistry - Interface in ninja
 
NinjaModuleRegistryImpl - Class in ninja
 
NinjaModuleRegistryImpl() - Constructor for class ninja.NinjaModuleRegistryImpl
 
NinjaProperties - Interface in ninja.utils
 
NinjaPropertiesImpl - Class in ninja.utils
 
NinjaPropertiesImpl() - Constructor for class ninja.utils.NinjaPropertiesImpl
 
NO_PROPERTY - Static variable in annotation type ninja.scheduler.Schedule
 
noContent() - Static method in class ninja.Results
 
notFound() - Static method in class ninja.Results
 
now(String, String) - Method in interface ninja.session.FlashCookie
 
now(String, String) - Method in class ninja.session.FlashCookieImpl
 
NumberValue - Annotation Type in ninja.validation
Validates that the value of a number meets certain parameters

O

ok() - Static method in class ninja.Results
 
OPTIONS() - Method in interface ninja.Router
 
OPTIONS() - Method in class ninja.RouterImpl
 

P

Param - Annotation Type in ninja.params
Just an idea to inject parameters right into the methods...
ParamParser<T> - Interface in ninja.params
Parses a String parameter
ParamParsers - Class in ninja.params
Built in parsers for parameters
ParamParsers() - Constructor for class ninja.params.ParamParsers
 
ParamParsers.BooleanParamParser - Class in ninja.params
 
ParamParsers.BooleanParamParser() - Constructor for class ninja.params.ParamParsers.BooleanParamParser
 
ParamParsers.DoubleParamParser - Class in ninja.params
 
ParamParsers.DoubleParamParser() - Constructor for class ninja.params.ParamParsers.DoubleParamParser
 
ParamParsers.FloatParamParser - Class in ninja.params
 
ParamParsers.FloatParamParser() - Constructor for class ninja.params.ParamParsers.FloatParamParser
 
ParamParsers.IntegerParamParser - Class in ninja.params
 
ParamParsers.IntegerParamParser() - Constructor for class ninja.params.ParamParsers.IntegerParamParser
 
ParamParsers.LongParamParser - Class in ninja.params
 
ParamParsers.LongParamParser() - Constructor for class ninja.params.ParamParsers.LongParamParser
 
ParamParsers.PrimitiveBooleanParamParser - Class in ninja.params
 
ParamParsers.PrimitiveBooleanParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveBooleanParamParser
 
ParamParsers.PrimitiveDoubleParamParser - Class in ninja.params
 
ParamParsers.PrimitiveDoubleParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveDoubleParamParser
 
ParamParsers.PrimitiveFloatParamParser - Class in ninja.params
 
ParamParsers.PrimitiveFloatParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveFloatParamParser
 
ParamParsers.PrimitiveIntegerParamParser - Class in ninja.params
 
ParamParsers.PrimitiveIntegerParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveIntegerParamParser
 
ParamParsers.PrimitiveLongParamParser - Class in ninja.params
 
ParamParsers.PrimitiveLongParamParser() - Constructor for class ninja.params.ParamParsers.PrimitiveLongParamParser
 
parseBody(Class<T>) - Method in interface ninja.Context
This will give you the request body nicely parsed.
parseBody(Class<T>) - Method in class ninja.WrappedContext
 
parseHttpDateFormat(String) - Static method in class ninja.utils.DateUtil
Can be used to parse http times.
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.DoubleParamParser
 
parseParameter(String, String, Validation) - Method in class ninja.params.ParamParsers.FloatParamParser
 
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.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
 
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
 
PathParam - Annotation Type in ninja.params
Just an idea to inject parameters right into the methods...
POST() - Method in interface ninja.Router
 
POST() - Method in class ninja.RouterImpl
 
Postoffice - Interface in ninja.postoffice
Simply takes a Mail and sends it.
PostofficeCommonsmailImpl - Class in ninja.postoffice.commonsmail
 
PostofficeCommonsmailImpl(CommonsmailHelper, NinjaProperties) - Constructor for class ninja.postoffice.commonsmail.PostofficeCommonsmailImpl
 
PostofficeConstant - Interface in ninja.postoffice.guice
 
postofficeImplementation - Static variable in interface ninja.postoffice.guice.PostofficeConstant
 
PostofficeMockImpl - Class in ninja.postoffice.mock
 
PostofficeMockImpl() - Constructor for class ninja.postoffice.mock.PostofficeMockImpl
 
PostofficeProvider - Class in ninja.postoffice.guice
 
PUT() - Method in interface ninja.Router
 
PUT() - Method in class ninja.RouterImpl
 
put(String, String) - Method in interface ninja.session.FlashCookie
 
put(String, Object) - Method in interface ninja.session.FlashCookie
 
put(String, String) - Method in class ninja.session.FlashCookieImpl
 
put(String, Object) - Method in class ninja.session.FlashCookieImpl
 
put(String, String) - Method in interface ninja.session.SessionCookie
 
put(String, String) - Method in class ninja.session.SessionCookieImpl
Puts key into session.

R

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.FlashCookie
 
remove(String) - Method in class ninja.session.FlashCookieImpl
 
remove(String) - Method in interface ninja.session.SessionCookie
Removes the value of the key and returns the value or null.
remove(String) - Method in class ninja.session.SessionCookieImpl
 
render(Context, Result) - Method in interface ninja.Renderable
 
render(Object) - Method in class ninja.Result
 
Renderable - Interface in ninja
Renderables can be returned inside a result.
Required - Annotation Type in ninja.validation
Validates that the length of the field meets the given length constraints
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 - Class in ninja.utils
Handles the result
ResultHandler(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 - Interface in ninja
 
RouterImpl - Class in ninja
 
RouterImpl(Injector) - 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
 

S

save(Context, Result) - Method in interface ninja.session.FlashCookie
 
save(Context, Result) - Method in class ninja.session.FlashCookieImpl
 
save(Context, Result) - Method in interface ninja.session.SessionCookie
 
save(Context, Result) - Method in class ninja.session.SessionCookieImpl
 
SC_200_OK - 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_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
SecureFilter - Class in ninja
A simple default implementation of a SecureFilter.
SecureFilter() - 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
 
serverName - Static variable in interface ninja.utils.NinjaConstant
In many situations the server cannot know its own name.
SESSION_SUFFIX - Static variable in interface ninja.utils.NinjaConstant
Suffix used for Ninja cookies.
SessionCookie - Interface in ninja.session
Session Cookie...
SessionCookieImpl - Class in ninja.session
Session Cookie...
SessionCookieImpl(Crypto, NinjaProperties) - Constructor for class ninja.session.SessionCookieImpl
 
sessionExpireTimeInSeconds - Static variable in interface ninja.utils.NinjaConstant
 
sessionHttpOnly - Static variable in interface ninja.utils.NinjaConstant
Used to set the HttpOnly flag at the session cookie.
SessionParam - Annotation Type in ninja.params
Inject a session value to a controller method invocation
sessionSendOnlyIfChanged - Static variable in interface ninja.utils.NinjaConstant
 
sessionTransferredOverHttpsOnly - Static variable in interface ninja.utils.NinjaConstant
Used to set the Secure flag if the cookie.
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.
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
In general email addresses could look like: Joe Jocker or joe@joe.com.
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
 
shutdown() - Method in interface ninja.Ninja
Stop the Ninja Framework
shutdown() - Method in class ninja.NinjaImpl
 
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 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 interface ninja.Ninja
Start the Ninja Framework
start() - Method in class ninja.NinjaImpl
 
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 interface ninja.lifecycle.LifecycleService
Stop the application
stop() - Method in class ninja.lifecycle.LifecycleServiceImpl
 
success(String, Object...) - Method in interface ninja.session.FlashCookie
 
success(String, Object...) - Method in class ninja.session.FlashCookieImpl
 
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

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) - Constructor for class ninja.template.TemplateEngineFreemarker
 
TemplateEngineFreemarkerEscapedLoader - Class in ninja.template
This class html-escapes variables like ${...} in all templates (ftl.html).
TemplateEngineFreemarkerEscapedLoader(TemplateLoader) - Constructor for class ninja.template.TemplateEngineFreemarkerEscapedLoader
 
TemplateEngineHelper - Class in ninja.template
Helper methods for template engines
TemplateEngineHelper() - Constructor for class ninja.template.TemplateEngineHelper
 
TemplateEngineJsonGson - Class in ninja.template
 
TemplateEngineJsonGson(Logger) - Constructor for class ninja.template.TemplateEngineJsonGson
 
TemplateEngineManager - Interface in ninja.template
Template engine manager.
TemplateEngineManagerImpl - Class in ninja.template
 
TemplateEngineManagerImpl(Provider<TemplateEngineFreemarker>, Provider<TemplateEngineJsonGson>, Injector) - Constructor for class ninja.template.TemplateEngineManagerImpl
 
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
 
TODO() - Static method in class ninja.Results
 
toString() - Method in interface ninja.session.FlashCookie
 
Tuple<X,Y> - Class in ninja.postoffice.common
Simple tuple class for convenience.
Tuple(X, Y) - Constructor for class ninja.postoffice.common.Tuple
 

U

UNI_CODE_NULL_ENTITY - Static variable in interface ninja.utils.NinjaConstant
Used as spacer for instance in session cookie
unsetCookie(String) - Method in class ninja.Result
 
USERNAME - Variable in class ninja.SecureFilter
If a username is saved we assume the session is valid
UTF_8 - Static variable in interface ninja.utils.NinjaConstant
yea.

V

validate(T, String, Validation) - Method in interface ninja.validation.Validator
Validate the given value
validate(String, String, Validation) - Method in class ninja.validation.Validators.FloatValidator
 
validate(String, String, Validation) - Method in class ninja.validation.Validators.IntegerValidator
 
validate(Object, String, Validation) - Method in class ninja.validation.Validators.JSRValidator
 
validate(String, String, Validation) - Method in class ninja.validation.Validators.LengthValidator
 
validate(String, String, Validation) - Method in class ninja.validation.Validators.MatchesValidator
 
validate(Number, String, Validation) - Method in class ninja.validation.Validators.NumberValidator
 
validate(Object, String, Validation) - Method in class ninja.validation.Validators.RequiredValidator
 
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 - Interface in ninja.validation
This interface means the validation context (implemented by ValidationImpl) and can be injected in your controller method.
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.FloatValidator - Class in ninja.validation
 
Validators.FloatValidator(IsFloat) - Constructor for class ninja.validation.Validators.FloatValidator
 
Validators.IntegerValidator - Class in ninja.validation
 
Validators.IntegerValidator(IsInteger) - Constructor for class ninja.validation.Validators.IntegerValidator
 
Validators.JSRValidator - Class in ninja.validation
 
Validators.JSRValidator() - Constructor for class ninja.validation.Validators.JSRValidator
 
Validators.LengthValidator - Class in ninja.validation
 
Validators.LengthValidator(Length) - Constructor for class ninja.validation.Validators.LengthValidator
 
Validators.MatchesValidator - Class in ninja.validation
 
Validators.MatchesValidator(Matches) - Constructor for class ninja.validation.Validators.MatchesValidator
 
Validators.NumberValidator - Class in ninja.validation
 
Validators.NumberValidator(NumberValue) - Constructor for class ninja.validation.Validators.NumberValidator
 
Validators.RequiredValidator - Class in ninja.validation
 
Validators.RequiredValidator(Required) - Constructor for class ninja.validation.Validators.RequiredValidator
 
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.
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.
VIEWS_DIR - Static variable in interface ninja.utils.NinjaConstant
 

W

with(Class, String) - Method in interface ninja.RouteBuilder
 
WithArgumentExtractor - Annotation Type in ninja.params
Indicates that this annotation should use the given argument extractor
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
 

X

x - Variable in class ninja.postoffice.common.Tuple
 
xml() - Method in class ninja.Result
Set the content type of this result to Result#APPLICATON_XML.
xml() - Static method in class ninja.Results
 

Y

y - Variable in class ninja.postoffice.common.Tuple
 
A B C D E F G H I J K L M N O P R S T U V W X Y 

Copyright © 2013. All Rights Reserved.