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<WebSocketApplication> thingsWithPath)
Return a list of all matches, in order of match preference, best match last.
|
static Match |
getBestMatch(String incoming,
Set<WebSocketApplication> thingsWithPath)
Returns null, or a Match object
|
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).
|
WebSocketApplication |
getWebSocketApplication()
Get
WebSocketApplication. |
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 WebSocketApplication getWebSocketApplication()
WebSocketApplication.Math.public boolean isExact()
public static Match getBestMatch(String incoming, Set<WebSocketApplication> thingsWithPath)
incoming - TODOthingsWithPath - TODOpublic static List<Match> getAllMatches(String incoming, Set<WebSocketApplication> 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-2013. All Rights Reserved.