public class ImKit extends Object
Constructor and Description |
---|
ImKit() |
Modifier and Type | Method and Description |
---|---|
static ImPacket |
ConvertRespPacket(byte[] body,
Command command,
org.tio.core.ChannelContext channelContext)
功能描述:[转换不同协议响应包]
创建者:WChao 创建时间: 2017年9月21日 下午3:21:54
|
static ImPacket |
ConvertRespPacket(ImPacket imPacket,
Command command,
org.tio.core.ChannelContext channelContext) |
static ImPacket |
ConvertRespPacket(RespBody respBody,
org.tio.core.ChannelContext channelContext)
功能描述:[转换不同协议响应包]
创建者:WChao 创建时间: 2017年9月21日 下午3:21:54
|
static Group |
copyGroupWithoutUsers(Group source)
复制分组或者群组,不包括users;
|
static User |
copyUserWithoutFriendsGroups(User source)
复制用户信息不包括frieds、groups下的users信息;
|
static User |
copyUserWithoutUsers(User source)
复制用户信息不包括frieds、groups下的users信息;
|
static Map<String,AbProtocol> |
getProtocols()
获取所有协议判断器,目前内置(HttpProtocol、WebsocketProtocol、HttpProtocol)
|
static IProtocol |
protocol(ByteBuffer byteBuffer,
org.tio.core.ChannelContext channelContext)
获取所属终端协议;
|
static byte[] |
toImStatusBody(ImStatus status)
格式化状态码消息响应体;
|
public static ImPacket ConvertRespPacket(RespBody respBody, org.tio.core.ChannelContext channelContext)
body
- channelContext
- public static ImPacket ConvertRespPacket(byte[] body, Command command, org.tio.core.ChannelContext channelContext)
body
- channelContext
- public static ImPacket ConvertRespPacket(ImPacket imPacket, Command command, org.tio.core.ChannelContext channelContext)
public static IProtocol protocol(ByteBuffer byteBuffer, org.tio.core.ChannelContext channelContext)
byteBuffer
- channelContext
- public static byte[] toImStatusBody(ImStatus status)
status
- public static Map<String,AbProtocol> getProtocols()
public static User copyUserWithoutFriendsGroups(User source)
source
- target
- public static User copyUserWithoutUsers(User source)
source
- target
- Copyright © 2018. All rights reserved.