Class WsUserAgentHandler

  • All Implemented Interfaces:,

    public class WsUserAgentHandler
    Channel handler which extracts a user agent header from a web socket handshake if present then logs the user agent and stores it as a channel attribute for future reference.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void userEventTriggered​( ctx, Object evt)  
      • Methods inherited from class

        channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
      • Methods inherited from class

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface

        handlerAdded, handlerRemoved
    • Field Detail


        public static final io.netty.util.AttributeKey<String> USER_AGENT_ATTR_KEY
    • Constructor Detail

      • WsUserAgentHandler

        public WsUserAgentHandler()
    • Method Detail

      • userEventTriggered

        public void userEventTriggered​( ctx,
                                       Object evt)
        Specified by:
        userEventTriggered in interface
        userEventTriggered in class