public class WxCpMessageRouterRule extends Object
| 限定符 | 构造器和说明 | 
|---|---|
| protected  | WxCpMessageRouterRule(WxCpMessageRouter routerBuilder)Instantiates a new Wx cp message router rule. | 
protected WxCpMessageRouterRule(WxCpMessageRouter routerBuilder)
routerBuilder - the router builderpublic WxCpMessageRouterRule async(boolean async)
async - the asyncpublic WxCpMessageRouterRule agentId(Integer agentId)
agentId - the agent idpublic WxCpMessageRouterRule msgType(String msgType)
msgType - the msg typepublic WxCpMessageRouterRule event(String event)
event - the eventpublic WxCpMessageRouterRule eventKey(String eventKey)
eventKey - the event keypublic WxCpMessageRouterRule eventKeyRegex(String regex)
regex - the regexpublic WxCpMessageRouterRule content(String content)
content - the contentpublic WxCpMessageRouterRule rContent(String regex)
regex - the regexpublic WxCpMessageRouterRule fromUser(String fromUser)
fromUser - the from userpublic WxCpMessageRouterRule matcher(WxCpMessageMatcher matcher)
matcher - the matcherpublic WxCpMessageRouterRule interceptor(WxCpMessageInterceptor interceptor)
interceptor - the interceptorpublic WxCpMessageRouterRule interceptor(WxCpMessageInterceptor interceptor, WxCpMessageInterceptor... otherInterceptors)
interceptor - the interceptorotherInterceptors - the other interceptorspublic WxCpMessageRouterRule handler(WxCpMessageHandler handler)
handler - the handlerpublic WxCpMessageRouterRule handler(WxCpMessageHandler handler, WxCpMessageHandler... otherHandlers)
handler - the handlerotherHandlers - the other handlerspublic WxCpMessageRouter end()
public WxCpMessageRouter next()
protected boolean test(WxCpXmlMessage wxMessage)
wxMessage - the wx messageprotected WxCpXmlOutMessage service(WxCpXmlMessage wxMessage, Map<String,Object> context, WxCpService wxCpService, WxSessionManager sessionManager, WxErrorExceptionHandler exceptionHandler)
wxMessage - the wx messagecontext - the contextwxCpService - the wx cp servicesessionManager - the session managerexceptionHandler - the exception handlerCopyright © 2024. All rights reserved.