REQ - RESP - public class FilterChain<REQ,RESP> extends AbstractChain<REQ,RESP>
| 构造器和说明 |
|---|
FilterChain() |
FilterChain(boolean shareChain)
如果 是独占 chain,则 每一次使用chain时,需要新建一个独有的chain
|
FilterChain(IntegerCounter posHolder) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHandler(Handler<REQ,RESP> handler) |
void |
handle(REQ request,
RESP response)
Causes the next filter in the chain to be invoked, or if the calling filter is the last filter
in the chain, causes the resource at the end of the chain to be invoked.
|
getContext, setContextpublic FilterChain()
public FilterChain(IntegerCounter posHolder)
public FilterChain(boolean shareChain)
shareChain - public void handle(REQ request, RESP response)
Chainrequest - the request to pass along the chain.response - the response to pass along the chain.Copyright © 2022. All rights reserved.