public.javadoc.org.spincast.plugins.routing.RouteHandlerMatchDefault.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.
RouteHandlerMatchDefault (org.spincast:spincast-framework 1.13.0 API)
org.spincast.plugins.routing
Class RouteHandlerMatchDefault<R extends RequestContext<?>>
- java.lang.Object
-
- org.spincast.plugins.routing.RouteHandlerMatchDefault<R>
-
- All Implemented Interfaces:
- RouteHandlerMatch<R>
public class RouteHandlerMatchDefault<R extends RequestContext<?>>
extends Object
implements RouteHandlerMatch<R>
-
-
Constructor Summary
Constructors
Constructor and Description
RouteHandlerMatchDefault(Route<R> sourceRoute,
Handler<R> routeHandler,
Map<String,String> params,
int position)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Handler<R>
getHandler()
The route handler.
Map<String,String>
getPathParams()
The values parsed from the URL, given
the dynamic parameters of the route's path, if any.
int
getPosition()
The position the handler should be run at.
Route<R>
getSourceRoute()
The route associated with this match.
String
toString()
-
-
Method Detail
-
getSourceRoute
public Route<R> getSourceRoute()
Description copied from interface: RouteHandlerMatch
The route associated with this match.
- Specified by:
getSourceRoute
in interface RouteHandlerMatch<R extends RequestContext<?>>
-
getHandler
public Handler<R> getHandler()
Description copied from interface: RouteHandlerMatch
The route handler.
- Specified by:
getHandler
in interface RouteHandlerMatch<R extends RequestContext<?>>
-
getPathParams
public Map<String,String> getPathParams()
Description copied from interface: RouteHandlerMatch
The values parsed from the URL, given
the dynamic parameters of the route's path, if any.
- Specified by:
getPathParams
in interface RouteHandlerMatch<R extends RequestContext<?>>
-
getPosition
public int getPosition()
Description copied from interface: RouteHandlerMatch
The position the handler should be run at.
- Specified by:
getPosition
in interface RouteHandlerMatch<R extends RequestContext<?>>
Copyright © 2019. All rights reserved.