public abstract class BasePathMatchInterceptor extends Object implements PrototypeInterceptor
| 限定符和类型 | 字段和说明 |
|---|---|
private String[] |
exclude |
private String[] |
include |
private org.springframework.util.PathMatcher |
pathMatcher |
| 构造器和说明 |
|---|
BasePathMatchInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract okhttp3.Response |
doIntercept(okhttp3.Interceptor.Chain chain)
do intercept
|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
private boolean |
isMatch(String[] patterns,
String path)
当前http的url路径是否与指定的patterns匹配
Whether the current http URL path matches the specified patterns
|
void |
setExclude(String[] exclude) |
void |
setInclude(String[] include) |
private String[] include
private String[] exclude
private org.springframework.util.PathMatcher pathMatcher
public void setInclude(String[] include)
public void setExclude(String[] exclude)
public final okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionprotected abstract okhttp3.Response doIntercept(okhttp3.Interceptor.Chain chain)
throws IOException
chain - interceptor chainIOException - IOExceptionCopyright © 2022. All rights reserved.