public class WebSocketRouter
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
after(WebSocketListener listener)
后置监听
|
void |
afterIfAbsent(WebSocketListener listener)
后置监听,如果没有同类型的
|
void |
before(WebSocketListener listener)
前置监听
|
void |
beforeIfAbsent(WebSocketListener listener)
前置监听,如果没有同类型的
|
static WebSocketRouter |
getInstance() |
WebSocketListener |
getListener() |
java.util.Collection<java.lang.String> |
getPaths() |
SubProtocolCapable |
getSubProtocol(java.lang.String path) |
WebSocketListener |
matching(java.lang.String path) |
void |
of(java.lang.String path,
WebSocketListener listener)
主监听
|
public static WebSocketRouter getInstance()
public void before(WebSocketListener listener)
public void beforeIfAbsent(WebSocketListener listener)
public void of(java.lang.String path, WebSocketListener listener)
public void after(WebSocketListener listener)
public void afterIfAbsent(WebSocketListener listener)
public WebSocketListener getListener()
public java.util.Collection<java.lang.String> getPaths()
public SubProtocolCapable getSubProtocol(java.lang.String path)
public WebSocketListener matching(java.lang.String path)