dart_force_mvc_lib library

Classes

AbstractHttpMessageConverter<T>
Abstract base class for most HttpMessageConverter implementations.
AbstractLocaleResolver
AcceptHeaderLocaleResolver
Implementation of LocaleResolver that simply uses the primary locale specified in the "accept-language" header of the HTTP request (that is, the locale sent by the client browser, normally that of the client's OS).
Bidi
This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
BidiFormatter
Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row. [...]
CookieHolderManager
CookieLocaleResolver
{@link LocaleResolver} implementation that uses a cookie sent back to the user in case of a custom setting, with a fallback to the specified default locale or the request's accept-header locale. [...]
CsvMessageConverter<List>
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner. [...]
ExceptionHandler
Annotation that will be used to indicate a method that will be called when an exception happens
FixedLocaleResolver
Always returns a default locale, implementation of a locale resolver
ForceRegistry
ForceRequest
ForceViewRender
HandlerExceptionResolver
Abstract class to be implemented by objects than can resolve exceptions thrown during handler mapping or execution, in the typical case to error views.
HandlerInterceptor
HttpHeadersWrapper
HttpInputMessage
Represents an HTTP input message, consisting of headers and a readable body. [...]
HttpMessage
Represents the base interface for HTTP request and response messages. Consists of HttpHeaders, retrievable via #getHeaders(). [...]
HttpMessageConverter<T>
HttpMessageRegulator
HttpMethodUtils
HttpOutputMessage
Represents an HTTP output message, consisting of headers and a writable body. [...]
HttpRequestStreamer
InterceptorsCollection
Intl
The Intl class provides a common entry point for internationalization related tasks. An Intl instance can be created for a particular locale and used to create a date format via anIntl.date(). Static methods on this class are also used in message formatting. [...]
JsonHttpMessageConverter<T>
Locale
Locale strings. [...]
LocaleResolver
Astract class for web-based locale resolution strategies that allows for both locale resolution via the request and locale modification via request and response. [...]
MediaType
A sub-class of MimeType that adds support for quality parameters as defined in the HTTP specification. [...]
MicroMoney
Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64. [...]
MimeType
Represents a MIME Type, as originally defined in RFC 2046 and subsequently used in other Internet protocols including HTTP. [...]
MimeTypeUtils
Model
ModelAttribute
Annotation that will indicate that a method or a field needs to be added to the Model. [...]
MustacheRender
MVCAnnotationHelper
NoSecurityStrategy
NumberFormat
Provides the ability to format a number in a locale-specific way. The format is specified as a pattern using a subset of the ICU formatting patterns. [...]
PathAnalyzer
PathVariable
You can also use the annotation @PathVariable("name") to match the pathvariable, like below: [...]
PreAuthorizeIf
PreAuthorizeRoles
RequestMapping
Annotation for mapping web requests onto specific handler classes and/or handler methods. Provides a consistent style between the different environments, with the semantics adapting to the concrete environment. [...]
RequestMethod
RequestParam
Annotation which indicates that a method parameter should be bound to a web request parameter.
ResponseDone
When a response is already done by a responseBody or RestController.
ResponseStatus
Annotation for assigning the status code of the http response
SecurityContextHolder
SecurityStrategy<T>
ServingAssistent
ServingFiles
SimpleExceptionResolver
A simple dummy implementation for the handling of a exception
SimpleWebServer
TextDirection
Bidi stands for Bi-directional text. According to http://en.wikipedia.org/wiki/Bi-directional_text: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row. [...]
TextHttpMessageConverter<T>
WebApplication

Constants

Authentication → const _Authentication
Annotation that will be used when the methods of the class needing authentication
const _Authentication()
Controller → const _Controller
Annotation that will be used to indicate that a class is a controller
const _Controller()
ControllerAdvice → const _ControllerAdvice
Annotation that will be used to indicate that a class is a controller adviser
const _ControllerAdvice()
ResponseBody → const _ResponseBody
Annotation that will be used to set the response type as a json object
const _ResponseBody()
RestController → const _RestController
Annotation that will be used to indicate that a class is a controller and all methods have ResponseBody annotation
const _RestController()

Properties

randomPortFallback Null Function(SimpleWebServer sws, WebSocketHandler wsHandler)
read / write

Functions

ordinalDayFromMarchFirst(int month, int day) int
Return the day of the year counting March 1st as 1, after which the number of days per month is constant, so it's easier to calculate. Formula from http://en.wikipedia.org/wiki/Ordinal_date
response_hook_cors(HttpResponse response) → dynamic
toBeginningOfSentenceCase(String input, [String locale]) String
Convert a string to beginning of sentence case, in a way appropriate to the locale. [...]

Enums

HttpMethod

Typedefs

ControllerHandler(ForceRequest req, Model model) → dynamic
FallbackStart(SimpleWebServer sws, WebSocketHandler wsHandler) → dynamic
PreAuthorizeFunc(dynamic user, [List methodArguments]) bool
ResponseHook(HttpResponse res) → dynamic
WebSocketHandler(WebSocket ws, HttpRequest req) → dynamic

Exceptions / Errors

AssistentError
InvalidMimeTypeError
RequiredError
When a request parameter is been required this will be thrown.
WebApplicationStartError