Package org.jivesoftware.openfire.nio
Class NettyClientConnectionHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<String>
-
- org.jivesoftware.openfire.nio.NettyConnectionHandler
-
- org.jivesoftware.openfire.nio.NettyClientConnectionHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class NettyClientConnectionHandler extends NettyConnectionHandler
Client-specific ConnectionHandler that knows which subclass ofStanzaHandler
should be created and how to build and configure aNettyConnection
.- Author:
- Matthew Vivian, Alex Gidman
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Boolean>
BACKUP_PACKET_DELIVERY_ENABLED
Enable / disable backup delivery of stanzas to the 'offline message store' of the corresponding user when a stanza failed to be delivered on a client connection.-
Fields inherited from class org.jivesoftware.openfire.nio.NettyConnectionHandler
configuration, CONNECTION, IDLE_FLAG, PARSER_CACHE, READ_BYTES, sslInitDone, WRITTEN_BYTES
-
-
Constructor Summary
Constructors Constructor Description NettyClientConnectionHandler(ConnectionConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
getMaxIdleTime()
Returns the time that a connection can be idle before being closed.String
toString()
-
Methods inherited from class org.jivesoftware.openfire.nio.NettyConnectionHandler
channelRead0, channelUnregistered, exceptionCaught, handlerAdded, handlerRemoved, userEventTriggered
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
-
-
-
Field Detail
-
BACKUP_PACKET_DELIVERY_ENABLED
public static final SystemProperty<Boolean> BACKUP_PACKET_DELIVERY_ENABLED
Enable / disable backup delivery of stanzas to the 'offline message store' of the corresponding user when a stanza failed to be delivered on a client connection. When disabled, stanzas that can not be delivered on the connection are discarded.
-
-
Constructor Detail
-
NettyClientConnectionHandler
public NettyClientConnectionHandler(ConnectionConfiguration configuration)
-
-
Method Detail
-
getMaxIdleTime
public Duration getMaxIdleTime()
Description copied from class:NettyConnectionHandler
Returns the time that a connection can be idle before being closed.- Specified by:
getMaxIdleTime
in classNettyConnectionHandler
- Returns:
- the time a connection can be idle.
-
toString
public String toString()
- Overrides:
toString
in classNettyConnectionHandler
-
-