Class WsUserAgentHandler
- java.lang.Object
- 
- io.netty.channel.ChannelHandlerAdapter
- 
- io.netty.channel.ChannelInboundHandlerAdapter
- 
- org.apache.tinkerpop.gremlin.server.handler.WsUserAgentHandler
 
 
 
- 
- All Implemented Interfaces:
- io.netty.channel.ChannelHandler,- io.netty.channel.ChannelInboundHandler
 
 public class WsUserAgentHandler extends io.netty.channel.ChannelInboundHandlerAdapterChannel 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.
- 
- 
Field SummaryFields Modifier and Type Field Description static io.netty.util.AttributeKey<String>USER_AGENT_ATTR_KEY
 - 
Constructor SummaryConstructors Constructor Description WsUserAgentHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)- 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
 - 
Methods inherited from class io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharable
 
- 
 
- 
- 
- 
Field Detail- 
USER_AGENT_ATTR_KEYpublic static final io.netty.util.AttributeKey<String> USER_AGENT_ATTR_KEY 
 
- 
 - 
Method Detail- 
userEventTriggeredpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)- Specified by:
- userEventTriggeredin interface- io.netty.channel.ChannelInboundHandler
- Overrides:
- userEventTriggeredin class- io.netty.channel.ChannelInboundHandlerAdapter
 
 
- 
 
-