Class ServerCommandStrategyFactory
java.lang.Object
io.github.lunasaw.gbproxy.server.transmit.cmd.strategy.ServerCommandStrategyFactory
服务端SIP消息类型策略工厂
管理和获取不同类型的SIP消息处理策略
符合SIP协议架构要求,处理MESSAGE、SUBSCRIBE、INVITE、BYE、ACK、INFO、REGISTER等SIP消息类型
- Author:
- luna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerCommandStrategy
static Map<String,
ServerCommandStrategy> 获取所有已注册的策略static ServerCommandStrategy
static ServerCommandStrategy
static ServerCommandStrategy
static ServerCommandStrategy
static ServerCommandStrategy
static ServerCommandStrategy
getStrategy
(String sipMethod) 获取SIP消息类型策略static ServerCommandStrategy
static boolean
isSupported
(String sipMethod) 检查是否支持指定的SIP方法
-
Constructor Details
-
ServerCommandStrategyFactory
public ServerCommandStrategyFactory()
-
-
Method Details
-
getStrategy
获取SIP消息类型策略- Parameters:
sipMethod
- SIP方法- Returns:
- 策略实例
-
getMessageStrategy
-
getSubscribeStrategy
-
getInviteStrategy
-
getByeStrategy
-
getAckStrategy
-
getInfoStrategy
-
getRegisterStrategy
-
getAllStrategies
获取所有已注册的策略- Returns:
- 策略映射
-
isSupported
检查是否支持指定的SIP方法- Parameters:
sipMethod
- SIP方法- Returns:
- 是否支持
-