public class Match extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkForEquivalents(List<String> paths)
Check for equivalent path.
|
static List<Match> |
getAllMatches(String incoming,
Set<TyrusEndpointWrapper> thingsWithPath)
Return a list of all matches, in order of match preference, best match last.
|
static Match |
getBestMatch(String incoming,
Set<TyrusEndpointWrapper> thingsWithPath)
Returns null, or a Match object
|
TyrusEndpointWrapper |
getEndpointWrapper()
Get
TyrusEndpointWrapper . |
List<String> |
getParameterNames()
Get parameter names.
|
String |
getParameterValue(String name)
Get value of given parameter.
|
String |
getPath()
Get path.
|
List<Integer> |
getVariableSegmentIndices()
Get variable segment indices (indexes).
|
static boolean |
isEquivalent(String path1,
String path2)
Check for equivalent paths.
|
boolean |
isExact()
TODO.
|
String |
toString() |
public String getPath()
public List<Integer> getVariableSegmentIndices()
public List<String> getParameterNames()
public String getParameterValue(String name)
name
- parameter name.public TyrusEndpointWrapper getEndpointWrapper()
TyrusEndpointWrapper
.Math
.public boolean isExact()
public static Match getBestMatch(String incoming, Set<TyrusEndpointWrapper> thingsWithPath)
incoming
- TODOthingsWithPath
- TODOpublic static List<Match> getAllMatches(String incoming, Set<TyrusEndpointWrapper> thingsWithPath)
incoming
- TODOthingsWithPath
- TODOpublic static boolean checkForEquivalents(List<String> paths)
paths
- list of paths.true
if at least one path in given list is equivalent with current one, false
otherwise.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.