public class ProtocolManager extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Protocol |
getProtocol(Integer protocolType) |
Map<Integer,Protocol> |
getProtocolMap() |
int |
getProtocolNum() |
List<Protocol> |
getProtocols() |
ProtocolManager |
init(String encoding) |
static ProtocolManager |
instance()
no need to be thread safe, since it is called when bootstrap
|
void |
registerProtocol(Integer protocolType,
Protocol protocol) |
public static ProtocolManager instance()
public ProtocolManager init(String encoding)
public int getProtocolNum()
Copyright © 2018 Baidu, Inc.. All rights reserved.