public.javadoc.org.spincast.plugins.routing.utils.SpincastRoutingUtilsDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastRoutingUtilsDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.routing.utils
Class SpincastRoutingUtilsDefault
- java.lang.Object
-
- org.spincast.plugins.routing.utils.SpincastRoutingUtilsDefault
-
- All Implemented Interfaces:
- SpincastRoutingUtils
public class SpincastRoutingUtilsDefault
extends Object
implements SpincastRoutingUtils
Spincast router utils implementation.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastRoutingUtilsDefault(SpincastConfig spincastConfig,
SpincastUtils spincastUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected ReplaceDynamicParamsResult
createReplaceDynamicParamsResult(String path,
boolean placeholdersRemaining)
protected SpincastConfig
getSpincastConfig()
protected SpincastUtils
getSpincastUtils()
boolean
isPathContainDynamicParams(String path)
Does the specified path contain dynamic (or splat) parameters?
ReplaceDynamicParamsResult
replaceDynamicParamsInPath(String path,
Map<String,String> dynamicParams)
Replaces all the dynamic (and splat) parameters in the
specified 'path'.
-
-
Constructor Detail
-
SpincastRoutingUtilsDefault
@Inject
public SpincastRoutingUtilsDefault(SpincastConfig spincastConfig,
SpincastUtils spincastUtils)
-
Method Detail
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getSpincastUtils
protected SpincastUtils 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 interface SpincastRoutingUtils
-
createReplaceDynamicParamsResult
protected ReplaceDynamicParamsResult createReplaceDynamicParamsResult(String path,
boolean placeholdersRemaining)
-
isPathContainDynamicParams
public boolean isPathContainDynamicParams(String path)
Description copied from interface: SpincastRoutingUtils
Does the specified path contain dynamic (or splat) parameters?
- Specified by:
isPathContainDynamicParams
in interface SpincastRoutingUtils
Copyright © 2019. All rights reserved.