public class UtinyFramework extends Object implements CommandFramework
| 限定符和类型 | 字段和说明 |
|---|---|
protected AntPathMatcher |
antPathMatcher |
protected Map<String,xyz.downgoon.mydk.framework.utiny.UtinyHandlerStack> |
locationHandlerMapping
order matters
|
| 构造器和说明 |
|---|
UtinyFramework() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
doMatch(String pattern,
String path)
match the given
path against the given pattern. |
protected void |
doStack(Command command,
xyz.downgoon.mydk.framework.utiny.UtinyHandlerStack stack)
execute one command in one stack consist of multiple heading filters and
one tailing handler
|
void |
exec(Command command) |
CommandExceptionHandler |
getExceptionHandler() |
CommandNotFoundHandler |
getNotFoundHandler() |
CommandFramework |
location(String location,
CommandHandler handler,
CommandFilter... filters) |
void |
setExceptionHandler(CommandExceptionHandler exceptionHandler) |
void |
setNotFoundHandler(CommandNotFoundHandler notFoundHandler) |
protected Map<String,xyz.downgoon.mydk.framework.utiny.UtinyHandlerStack> locationHandlerMapping
protected AntPathMatcher antPathMatcher
public void exec(Command command)
exec 在接口中 CommandFrameworkprotected boolean doMatch(String pattern, String path)
path against the given pattern.protected void doStack(Command command, xyz.downgoon.mydk.framework.utiny.UtinyHandlerStack stack)
command - command to be executedstack - tuple of several filters and one handlerpublic CommandFramework location(String location, CommandHandler handler, CommandFilter... filters)
location 在接口中 CommandFrameworkpublic CommandNotFoundHandler getNotFoundHandler()
public void setNotFoundHandler(CommandNotFoundHandler notFoundHandler)
public CommandExceptionHandler getExceptionHandler()
public void setExceptionHandler(CommandExceptionHandler exceptionHandler)
Copyright © 2017. All rights reserved.