public class RouterImpl extends Object implements Router
| 构造器和说明 |
|---|
RouterImpl(int id,
RouterManagerImpl routerManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Router o) |
Router |
consumes(String contentType) |
Router |
delete(String url) |
Router |
disable() |
Router |
enable() |
boolean |
equals(Object o) |
Router |
get(String url) |
Handler |
getHandler() |
int |
getId() |
Set<Matcher.MatchType> |
getMatchTypes() |
Router |
handler(Handler handler) |
int |
hashCode() |
boolean |
isEnable() |
Router |
method(HttpMethod httpMethod) |
Router |
method(String method) |
Router |
path(String url) |
Router |
pathRegex(String regex) |
Router |
paths(List<String> urlList) |
Router |
post(String url) |
Router |
produces(String accept) |
Router |
put(String url) |
String |
toString() |
public RouterImpl(int id,
RouterManagerImpl routerManager)
public Router method(HttpMethod httpMethod)
public Set<Matcher.MatchType> getMatchTypes()
getMatchTypes 在接口中 Routerpublic Handler getHandler()
public int compareTo(Router o)
compareTo 在接口中 Comparable<Router>Copyright © 2017. All rights reserved.