public.javadoc.org.spincast.plugins.routing.SpincastRouterConfigDefault.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.
SpincastRouterConfigDefault (org.spincast:spincast-framework 1.14.0 API)
org.spincast.plugins.routing
Class SpincastRouterConfigDefault
- java.lang.Object
-
- org.spincast.plugins.routing.SpincastRouterConfigDefault
-
- All Implemented Interfaces:
- SpincastRouterConfig
public class SpincastRouterConfigDefault
extends Object
implements SpincastRouterConfig
Default configuration for the Spincast Router.
-
-
Constructor Summary
Constructors
Constructor and Description
SpincastRouterConfigDefault(SpincastConfig spincastConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
int
getCorsFilterPosition()
The default position for a cors
"before" filter.
Set<RoutingType>
getFilterDefaultRoutingTypes()
The routing types to apply a filter (none "0" position)
when none is explicitly specified.
int
getRedirectFilterPosition()
The default position for a redirect
"before" filter.
protected SpincastConfig
getSpincastConfig()
-
-
Constructor Detail
-
SpincastRouterConfigDefault
@Inject
public SpincastRouterConfigDefault(SpincastConfig spincastConfig)
-
Method Detail
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
getFilterDefaultRoutingTypes
public Set<RoutingType> getFilterDefaultRoutingTypes()
Description copied from interface: SpincastRouterConfig
The routing types to apply a filter (none "0" position)
when none is explicitly specified.
- Specified by:
getFilterDefaultRoutingTypes
in interface SpincastRouterConfig
-
getCorsFilterPosition
public int getCorsFilterPosition()
Description copied from interface: SpincastRouterConfig
The default position for a cors
"before" filter.
Must be < 0 !
- Specified by:
getCorsFilterPosition
in interface SpincastRouterConfig
-
getRedirectFilterPosition
public int getRedirectFilterPosition()
Description copied from interface: SpincastRouterConfig
The default position for a redirect
"before" filter.
Must be < 0 and should probably be one of the very, very
first filter to run!
- Specified by:
getRedirectFilterPosition
in interface SpincastRouterConfig
Copyright © 2019. All rights reserved.