public class RequestPathDefinition extends AbstractRequestPathMetadata
RequestPath that enable entry-point to invoke.| Modifier and Type | Field and Description |
|---|---|
protected String |
actualPath |
static RequestPathMetadata |
EMPTY |
protected List<String> |
requestMethods |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestPathDefinition(String path,
String[] requestMethods) |
| Modifier and Type | Method and Description |
|---|---|
static RequestPathDefinition |
define(String root,
String path) |
static RequestPathDefinition |
define(String root,
String path,
String[] requestMethods) |
protected static StringBuilder |
editPath(String root,
String path) |
protected static StringBuilder |
editRoot(String root,
String path) |
String |
getActualPath()
Obtain defined path.
|
List<String> |
getRequestMethods()
Obtain defined (HTTP) request methods.
|
boolean |
match(RequestPath requestPath)
Check own
RequestPath match assigned one. |
String |
toString() |
equals, hashCodepublic static final RequestPathMetadata EMPTY
protected final String actualPath
public static RequestPathDefinition define(String root, String path)
public static RequestPathDefinition define(String root, String path, String[] requestMethods)
protected static StringBuilder editPath(String root, String path)
protected static StringBuilder editRoot(String root, String path)
public String getActualPath()
RequestPathMetadatapublic List<String> getRequestMethods()
RequestPathMetadatapublic boolean match(RequestPath requestPath)
RequestPathMetadataRequestPath match assigned one.requestPath - RequestPathtrue - if matched RequestPathCopyright © 2011-2017 Analog Web Framework Development Team. All Rights Reserved.