接口 WebSocketHandlerDecoratorFactory


  • public interface WebSocketHandlerDecoratorFactory
    A factory for applying decorators to a WebSocketHandler.

    Decoration should be done through sub-classing WebSocketHandlerDecorator to allow any code to traverse decorators and/or unwrap the original handler when necessary .

    从以下版本开始:
    4.1.2
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • decorate

        WebSocketHandler decorate​(WebSocketHandler handler)
        Decorate the given WebSocketHandler.
        参数:
        handler - the handler to be decorated.
        返回:
        the same handler or the handler wrapped with a sub-class of WebSocketHandlerDecorator.