Enum and Description |
---|
ninja.Context.HTTP_STATUS |
Field and Description |
---|
ninja.Result.APPLICATON_JSON |
ninja.Result.APPLICATON_JSONP |
Method and Description |
---|
ninja.validation.Validation.addViolation(ConstraintViolation) |
ninja.i18n.Messages.getAll(Optional<String>)
Might be removed from further releases. Usually is not implemented in a thread
safe way and is error prone.
Returns all messages for a language we have. Please note that this method
does NOT format any MessageFormat values. You have to do that yourself in
the controller logic most likely.
Note: If you don't want to determine the language yourself please use
Messages#getAll(Context, Result) |
ninja.Context.getFileItemIterator()
This method is kept for backward compatibility, use
FileProvider
to specify which FileItemProvider should be used to handle uploaded files, and
access them using Context.getParameterAsFileItem(String) . |
ninja.Context.getFlashCookie() |
ninja.utils.AbstractContext.getFlashCookie() |
ninja.validation.Validation.getGeneralViolations() |
ninja.Context.getRequestUri() |
ninja.Context.getSessionCookie() |
ninja.utils.AbstractContext.getSessionCookie() |
ninja.Result.renderRaw(String)
=> use text().render(string), html().render(string),
json().render(string), xml().render(string), or
contentType(type).render(string).
|
ninja.Result.setContentType(String) |
Copyright © 2016 ninjaframework. All Rights Reserved.