Home

Castle Stronghold

LocalizationFilterAttribute API Document

This is an special filter attribute. It is used to define from where MonoRail should read the localization information to find out the locale of the client.

For example, it can use the browser, or a cookie, an entry in the query string (or even in the session)

Constructors

LocalizationFilterAttribute()

Defines that you want to use a cookie named "locale", but if that fails it falls back to the client's browser locale.

LocalizationFilterAttribute(RequestStore store, String key)

Defines a new LocalizationFilter.

ParameterDescription
store Location where the localization parameter is stored.
key Name of the parameter in the store.

Properties

NameTypeDescription
KeyString Key under which the locale value is stored.
StoreRequestStore Location where the locale value is to be stored.
FailOnErrorBoolean True if an exception is to be thrown when a specific culture appears to be incorrect (can't be created).
UseBrowserBoolean Use client browser defined languages as default.
FilterTypeType Gets the filter implementation type
WhenExecuteEnum Gets when to run the filter
ExecutionOrderInt32 Gets or sets the filter execution order. The lower the value, the higher the priority

Methods

BuildFilterDescriptors() : FilterDescriptor[]

Implementation of Castle.MonoRail.Framework.Internal.IFilterDescriptorBuilder. Returns the descriptor for this filter association.

Google
Search WWW Search castleproject.org