Package rife.engine
Class PathInfoMapping
java.lang.Object
rife.engine.PathInfoMapping
Micro DSL to describe the format of how a pathinfo should
be structure and mapped to parameters.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIndicates that a match for regex [\w-._~]+ is expected and will be mapped to a named parameter.Indicates that a match for a provided regex is expected and will be mapped to a named parameter.s()
Indicates that a slash is expected.Indicates that a text literal is expected
-
Constructor Details
-
PathInfoMapping
public PathInfoMapping()
-
-
Method Details
-
s
Indicates that a slash is expected.- Returns:
- the instance of the DSL
- Since:
- 1.0
-
t
Indicates that a text literal is expected- Parameters:
literal
- the expected text literal- Returns:
- the instance of the DSL
- Since:
- 1.0
-
p
Indicates that a match for regex [\w-._~]+ is expected and will be mapped to a named parameter.- Parameters:
name
- the parameter name the pathinfo segment will be mapped to- Returns:
- the instance of the DSL
- Since:
- 1.0
-
p
Indicates that a match for a provided regex is expected and will be mapped to a named parameter.- Parameters:
name
- the parameter name the pathinfo segment will be mapped toregex
- the regex that will be matched- Returns:
- the instance of the DSL
- Since:
- 1.0
-