Package org.spincast.core.routing
Class DefaultRouteParamAliasesBinder<R extends RequestContext<?>,W extends WebsocketContext<?>>
java.lang.Object
org.spincast.core.routing.DefaultRouteParamAliasesBinder<R,W>
public class DefaultRouteParamAliasesBinder<R extends RequestContext<?>,W extends WebsocketContext<?>>
extends Object
Component that binds some default route parameter aliases.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
bindAlphaAlias
(boolean insensitive, Router<R, W> router) protected void
bindAlphaNumericAlias
(boolean insensitive, Router<R, W> router) protected void
bindAlphaNumericPlusAlias
(boolean insensitive, Router<R, W> router) protected void
bindAlphaPlusAlias
(boolean insensitive, Router<R, W> router) protected void
bindLangAlias
(boolean insensitive, Router<R, W> router) protected void
bindNumericAlias
(boolean insensitive, Router<R, W> router) protected void
bindNumericPlusAlias
(boolean insensitive, Router<R, W> router) Numeric aliasNumeric + "_" and "-" aliasAlpha aliasAlphanumeric aliasAlphanumeric + "_" and "-" aliasAlpha + "_" and "-" aliasISO 639 two-letter language codes: "en", "fr", etc.protected void
init
(SpincastConfig spincastConfig, Router<R, W> router) Init : binds the aliases.
-
Constructor Details
-
DefaultRouteParamAliasesBinder
public DefaultRouteParamAliasesBinder()
-
-
Method Details
-
init
Init : binds the aliases. -
getAlphaAliasKey
Alpha alias -
bindAlphaAlias
-
geNumericAliasKey
Numeric alias -
bindNumericAlias
-
getAlphaPlusAliasKey
Alpha + "_" and "-" alias -
bindAlphaPlusAlias
-
geNumericPlusAliasKey
Numeric + "_" and "-" alias -
bindNumericPlusAlias
-
getAlphaNumericAliasKey
Alphanumeric alias -
bindAlphaNumericAlias
-
getAlphaNumericPlusAliasKey
Alphanumeric + "_" and "-" alias -
bindAlphaNumericPlusAlias
-
getLangAliasKey
ISO 639 two-letter language codes: "en", "fr", etc.As returned by
Locale.getISOLanguages()
. -
bindLangAlias
-