public abstract class Router extends Object
┌─┐ ┌─┐
┌──┘ ┴───────┘ ┴──┐
│ │
│ ─── │
│ ─┬┘ └┬─ │
│ │
│ ─┴─ │
│ │
└───┐ ┌───┘
│ │
│ │
│ │
│ └──────────────┐
│ │
│ ├─┐
│ author:lelouch ┌─┘
│ │
└─┐ ┐ ┌───────┬──┐ ┌──┘
│ ─┤ ─┤ │ ─┤ ─┤
└──┴──┘ └──┴──┘
神兽保佑
代码无BUG!
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Router.RouteType |
| 限定符和类型 | 字段和说明 |
|---|---|
protected HTTPMethod |
httpMethod |
protected String |
route |
protected String |
url |
| 限定符 | 构造器和说明 |
|---|---|
|
Router(HTTPMethod httpMethod,
String url,
String route) |
protected |
Router(HTTPMethod httpMethod,
String url,
String route,
Router.RouteType routeType) |
protected HTTPMethod httpMethod
protected String url
protected String route
public Router(HTTPMethod httpMethod, String url, String route)
protected Router(HTTPMethod httpMethod, String url, String route, Router.RouteType routeType)
public HTTPMethod getHttpMethod()
public String getUrl()
public String getRoute()
public Router.RouteType getRouteType()
Copyright © 2020. All rights reserved.