public class RestfulStyleSubstitutionHandler extends Object implements RewriteSubstitutionHandler
Constructor and Description |
---|
RestfulStyleSubstitutionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addConvert(ValueConverter converter) |
void |
postSubstitution(RewriteSubstitutionContext context)
先获取原来的请求路径与UrlRestful的配置进行匹配,把匹配的值放到上下文中,最后重新设置请求的路径。
|
void |
removeConvert(ValueConverter converter) |
void |
setUrlRestfulManager(UrlRestfulManager urlRestfulManager) |
public void setUrlRestfulManager(UrlRestfulManager urlRestfulManager)
public void addConvert(ValueConverter converter)
public void removeConvert(ValueConverter converter)
public void postSubstitution(RewriteSubstitutionContext context)
postSubstitution
in interface RewriteSubstitutionHandler
Copyright © 2006–2018 TinyGroup. All rights reserved.