Package com.sissi.context

Examples of com.sissi.context.JIDContext.jid()


    }

    private ByteBuf logIfNecessary(ChannelHandlerContext ctx, ByteBuf byteBuf) {
      if (MainServerHandlerBuilder.this.log.isInfoEnabled()) {
        JIDContext context = ctx.attr(MainServerHandlerBuilder.this.attrContext).get();
        MainServerHandlerBuilder.this.log.info("Read on " + (context != null && context.jid() != null ? context.jid().asString() : "N/A") + ": " + byteBuf.toString(Charset.forName("UTF-8")));
        byteBuf.readerIndex(0);
      }
      return byteBuf;
    }
  }
View Full Code Here


    }

    private ByteBuf logIfNecessary(ChannelHandlerContext ctx, ByteBuf byteBuf) {
      if (MainServerHandlerBuilder.this.log.isInfoEnabled()) {
        JIDContext context = ctx.attr(MainServerHandlerBuilder.this.attrContext).get();
        MainServerHandlerBuilder.this.log.info("Read on " + (context != null && context.jid() != null ? context.jid().asString() : "N/A") + ": " + byteBuf.toString(Charset.forName("UTF-8")));
        byteBuf.readerIndex(0);
      }
      return byteBuf;
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.