Class PathMatchingResult
- java.lang.Object
-
- com.helger.photon.api.pathdescriptor.PathMatchingResult
-
- All Implemented Interfaces:
Serializable
public final class PathMatchingResult extends Object implements Serializable
This class represents the overall result of a path matching. Upon successful matching all variable path parts are returned as a map in the order of the path.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PathMatchingResultNO_MATCH
-
Constructor Summary
Constructors Constructor Description PathMatchingResult(com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> aVariableValues)Constructor for "match"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathMatchingResultcreateSuccess(com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> aVariableValues)com.helger.commons.collection.impl.ICommonsOrderedMap<String,String>getAllVariableValues()booleanisMatch()StringtoString()
-
-
-
Field Detail
-
NO_MATCH
public static final PathMatchingResult NO_MATCH
-
-
Method Detail
-
isMatch
public boolean isMatch()
- Returns:
trueif the path matching was successful,falseotherwise.
-
getAllVariableValues
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> getAllVariableValues()
-
createSuccess
@Nonnull public static PathMatchingResult createSuccess(@Nonnull com.helger.commons.collection.impl.ICommonsOrderedMap<String,String> aVariableValues)
-
-