public class UrlPath extends Object
Encapsulate the logic to compare an incoming URL path with a route entry path.
Note we can’t do simple String match as route entry path might contains the dynamic part
Modifier and Type | Method and Description |
---|---|
static void |
classInit(App app) |
boolean |
equals(Object obj) |
boolean |
isBuiltIn()
Check if the URL path is a built-in service url.
|
String |
lastPart() |
static UrlPath |
of(CharSequence path) |
String |
part(int index) |
int |
size() |
static void |
testClassInit() |
public int size()
public String part(int index)
public String lastPart()
public boolean isBuiltIn()
Check if the URL path is a built-in service url.
A built in service URL starts with ~
true
if the URL represented by this UrlPath
is a built-in service URLpublic static void classInit(App app)
public static void testClassInit()
public static UrlPath of(CharSequence path)
Copyright © 2014–2018 ActFramework. All rights reserved.