UserSetting.java 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. package com.genersoft.iot.vmp.conf;
  2. import org.junit.jupiter.api.Order;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. import java.util.ArrayList;
  6. import java.util.List;
  7. /**
  8. * 配置文件 user-settings 映射的配置信息
  9. */
  10. @Component
  11. @ConfigurationProperties(prefix = "user-settings", ignoreInvalidFields = true)
  12. @Order(0)
  13. public class UserSetting {
  14. private Boolean savePositionHistory = Boolean.FALSE;
  15. private Boolean autoApplyPlay = Boolean.FALSE;
  16. private Boolean seniorSdp = Boolean.FALSE;
  17. private Integer playTimeout = 18000;
  18. private int platformPlayTimeout = 60000;
  19. private Boolean interfaceAuthentication = Boolean.TRUE;
  20. private Boolean recordPushLive = Boolean.TRUE;
  21. private Boolean recordSip = Boolean.TRUE;
  22. private Boolean logInDatebase = Boolean.TRUE;
  23. private Boolean usePushingAsStatus = Boolean.FALSE;
  24. private Boolean useSourceIpAsStreamIp = Boolean.FALSE;
  25. private Boolean sipUseSourceIpAsRemoteAddress = Boolean.FALSE;
  26. private Boolean streamOnDemand = Boolean.TRUE;
  27. private Boolean pushAuthority = Boolean.TRUE;
  28. private Boolean gbSendStreamStrict = Boolean.FALSE;
  29. private Boolean syncChannelOnDeviceOnline = Boolean.FALSE;
  30. private Boolean pushStreamAfterAck = Boolean.FALSE;
  31. private Boolean sipLog = Boolean.FALSE;
  32. private String serverId = "000000";
  33. private String thirdPartyGBIdReg = "[\\s\\S]*";
  34. private String broadcastForPlatform = "UDP";
  35. private List<String> interfaceAuthenticationExcludes = new ArrayList<>();
  36. public Boolean getSavePositionHistory() {
  37. return savePositionHistory;
  38. }
  39. public Boolean isSavePositionHistory() {
  40. return savePositionHistory;
  41. }
  42. public Boolean isAutoApplyPlay() {
  43. return autoApplyPlay;
  44. }
  45. public Boolean isSeniorSdp() {
  46. return seniorSdp;
  47. }
  48. public Integer getPlayTimeout() {
  49. return playTimeout;
  50. }
  51. public Boolean isInterfaceAuthentication() {
  52. return interfaceAuthentication;
  53. }
  54. public Boolean isRecordPushLive() {
  55. return recordPushLive;
  56. }
  57. public List<String> getInterfaceAuthenticationExcludes() {
  58. return interfaceAuthenticationExcludes;
  59. }
  60. public void setSavePositionHistory(Boolean savePositionHistory) {
  61. this.savePositionHistory = savePositionHistory;
  62. }
  63. public void setAutoApplyPlay(Boolean autoApplyPlay) {
  64. this.autoApplyPlay = autoApplyPlay;
  65. }
  66. public void setSeniorSdp(Boolean seniorSdp) {
  67. this.seniorSdp = seniorSdp;
  68. }
  69. public void setPlayTimeout(Integer playTimeout) {
  70. this.playTimeout = playTimeout;
  71. }
  72. public void setInterfaceAuthentication(boolean interfaceAuthentication) {
  73. this.interfaceAuthentication = interfaceAuthentication;
  74. }
  75. public void setRecordPushLive(Boolean recordPushLive) {
  76. this.recordPushLive = recordPushLive;
  77. }
  78. public void setInterfaceAuthenticationExcludes(List<String> interfaceAuthenticationExcludes) {
  79. this.interfaceAuthenticationExcludes = interfaceAuthenticationExcludes;
  80. }
  81. public Boolean getLogInDatebase() {
  82. return logInDatebase;
  83. }
  84. public void setLogInDatebase(Boolean logInDatebase) {
  85. this.logInDatebase = logInDatebase;
  86. }
  87. public String getServerId() {
  88. return serverId;
  89. }
  90. public void setServerId(String serverId) {
  91. this.serverId = serverId;
  92. }
  93. public String getThirdPartyGBIdReg() {
  94. return thirdPartyGBIdReg;
  95. }
  96. public void setThirdPartyGBIdReg(String thirdPartyGBIdReg) {
  97. this.thirdPartyGBIdReg = thirdPartyGBIdReg;
  98. }
  99. public Boolean getRecordSip() {
  100. return recordSip;
  101. }
  102. public void setRecordSip(Boolean recordSip) {
  103. this.recordSip = recordSip;
  104. }
  105. public int getPlatformPlayTimeout() {
  106. return platformPlayTimeout;
  107. }
  108. public void setPlatformPlayTimeout(int platformPlayTimeout) {
  109. this.platformPlayTimeout = platformPlayTimeout;
  110. }
  111. public Boolean isUsePushingAsStatus() {
  112. return usePushingAsStatus;
  113. }
  114. public void setUsePushingAsStatus(Boolean usePushingAsStatus) {
  115. this.usePushingAsStatus = usePushingAsStatus;
  116. }
  117. public Boolean getStreamOnDemand() {
  118. return streamOnDemand;
  119. }
  120. public void setStreamOnDemand(Boolean streamOnDemand) {
  121. this.streamOnDemand = streamOnDemand;
  122. }
  123. public Boolean getUseSourceIpAsStreamIp() {
  124. return useSourceIpAsStreamIp;
  125. }
  126. public void setUseSourceIpAsStreamIp(Boolean useSourceIpAsStreamIp) {
  127. this.useSourceIpAsStreamIp = useSourceIpAsStreamIp;
  128. }
  129. public Boolean getPushAuthority() {
  130. return pushAuthority;
  131. }
  132. public void setPushAuthority(Boolean pushAuthority) {
  133. this.pushAuthority = pushAuthority;
  134. }
  135. public Boolean getGbSendStreamStrict() {
  136. return gbSendStreamStrict;
  137. }
  138. public void setGbSendStreamStrict(Boolean gbSendStreamStrict) {
  139. this.gbSendStreamStrict = gbSendStreamStrict;
  140. }
  141. public Boolean getSyncChannelOnDeviceOnline() {
  142. return syncChannelOnDeviceOnline;
  143. }
  144. public void setSyncChannelOnDeviceOnline(Boolean syncChannelOnDeviceOnline) {
  145. this.syncChannelOnDeviceOnline = syncChannelOnDeviceOnline;
  146. }
  147. public String getBroadcastForPlatform() {
  148. return broadcastForPlatform;
  149. }
  150. public void setBroadcastForPlatform(String broadcastForPlatform) {
  151. this.broadcastForPlatform = broadcastForPlatform;
  152. }
  153. public Boolean getPushStreamAfterAck() {
  154. return pushStreamAfterAck;
  155. }
  156. public void setPushStreamAfterAck(Boolean pushStreamAfterAck) {
  157. this.pushStreamAfterAck = pushStreamAfterAck;
  158. }
  159. public Boolean getSipUseSourceIpAsRemoteAddress() {
  160. return sipUseSourceIpAsRemoteAddress;
  161. }
  162. public void setSipUseSourceIpAsRemoteAddress(Boolean sipUseSourceIpAsRemoteAddress) {
  163. this.sipUseSourceIpAsRemoteAddress = sipUseSourceIpAsRemoteAddress;
  164. }
  165. public Boolean getSipLog() {
  166. return sipLog;
  167. }
  168. public void setSipLog(Boolean sipLog) {
  169. this.sipLog = sipLog;
  170. }
  171. }