Class SpincastRoutingUtilsDefault
java.lang.Object
org.spincast.plugins.routing.utils.SpincastRoutingUtilsDefault
- All Implemented Interfaces:
SpincastRoutingUtils
Spincast router utils implementation.
-
Constructor Summary
ConstructorDescriptionSpincastRoutingUtilsDefault
(SpincastConfig spincastConfig, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionprotected ReplaceDynamicParamsResult
createReplaceDynamicParamsResult
(String path, boolean placeholdersRemaining) protected SpincastConfig
protected SpincastUtils
boolean
Does the specified path contain dynamic (or splat) parameters?replaceDynamicParamsInPath
(String path, Map<String, String> dynamicParams) Replaces all the dynamic (and splat) parameters in the specified 'path'.
-
Constructor Details
-
SpincastRoutingUtilsDefault
@Inject public SpincastRoutingUtilsDefault(SpincastConfig spincastConfig, SpincastUtils spincastUtils)
-
-
Method Details
-
getSpincastConfig
-
getSpincastUtils
-
replaceDynamicParamsInPath
public ReplaceDynamicParamsResult replaceDynamicParamsInPath(String path, Map<String, String> dynamicParams) Description copied from interface:SpincastRoutingUtils
Replaces all the dynamic (and splat) parameters in the specified 'path'.- Specified by:
replaceDynamicParamsInPath
in interfaceSpincastRoutingUtils
-
createReplaceDynamicParamsResult
protected ReplaceDynamicParamsResult createReplaceDynamicParamsResult(String path, boolean placeholdersRemaining) -
isPathContainDynamicParams
Description copied from interface:SpincastRoutingUtils
Does the specified path contain dynamic (or splat) parameters?- Specified by:
isPathContainDynamicParams
in interfaceSpincastRoutingUtils
-