1 | package fr.sii.ogham.spring.sms; | |
2 | ||
3 | import org.springframework.boot.context.properties.ConfigurationProperties; | |
4 | import org.springframework.boot.context.properties.NestedConfigurationProperty; | |
5 | ||
6 | import com.cloudhopper.smpp.SmppBindType; | |
7 | ||
8 | @ConfigurationProperties("ogham.sms.smpp") | |
9 | public class OghamSmppProperties { | |
10 | /** | |
11 | * The system_id parameter is used to identify an ESME ( External Short | |
12 | * Message Entity) or an SMSC (Short Message Service Centre) at bind time. | |
13 | * An ESME system_id identifies the ESME or ESME agent to the SMSC. The SMSC | |
14 | * system_id provides an identification of the SMSC to the ESME. This is an | |
15 | * alias of ogham.sms.cloudhopper.system-id. If both properties are defined, | |
16 | * the value of the property ogham.sms.cloudhopper.system-id is used. | |
17 | */ | |
18 | private String systemId; | |
19 | /** | |
20 | * The password parameter is used by the SMSC (Short Message Service Centre) | |
21 | * to authenticate the identity of the binding ESME (External Short Message | |
22 | * Entity). The Service Provider may require ESME’s to provide a password | |
23 | * when binding to the SMSC. This password is normally issued by the SMSC | |
24 | * system administrator. The password parameter may also be used by the ESME | |
25 | * to authenticate the identity of the binding SMSC (e.g. in the case of the | |
26 | * outbind operation). This is an alias of ogham.sms.cloudhopper.password. | |
27 | * If both properties are defined, the value of the property | |
28 | * ogham.sms.cloudhopper.password is used. | |
29 | */ | |
30 | private String password; | |
31 | /** | |
32 | * The SMPP server host (IP or address).<br /> | |
33 | * <br /> | |
34 | * | |
35 | * This is an alias of ogham.sms.cloudhopper.host. If both properties are | |
36 | * defined, the value of the property ogham.sms.cloudhopper.host is used. | |
37 | */ | |
38 | private String host; | |
39 | /** | |
40 | * The SMPP server port.<br /> | |
41 | * <br /> | |
42 | * | |
43 | * This is an alias of ogham.sms.cloudhopper.port. If both properties are | |
44 | * defined, the value of the property ogham.sms.cloudhopper.port is | |
45 | * used.<br /> | |
46 | * <br /> | |
47 | * Default: <i>2775</i> | |
48 | */ | |
49 | private Integer port; | |
50 | /** | |
51 | * The bind command type.<br /> | |
52 | * | |
53 | * This is an alias of ogham.sms.cloudhopper.bind-type. If both properties | |
54 | * are defined, the value of the property ogham.sms.cloudhopper.bind-type is | |
55 | * used.<br /> | |
56 | * <br /> | |
57 | * Default: <i>"TRANSMITTER".</i> | |
58 | */ | |
59 | private SmppBindType bindType; | |
60 | /** | |
61 | * The system_type parameter is used to categorize the type of ESME that is | |
62 | * binding to the SMSC. Examples include “VMS” (voice mail system) and “OTA” | |
63 | * (over-the-air activation system). Specification of the system_type is | |
64 | * optional - some SMSC’s may not require ESME’s to provide this detail. In | |
65 | * this case, the ESME can set the system_type to NULL. The system_type | |
66 | * (optional) may be used to categorize the system, e.g., “EMAIL”, “WWW”, | |
67 | * etc.<br /> | |
68 | * | |
69 | * This is an alias of ogham.sms.cloudhopper.system-type. If both properties | |
70 | * are defined, the value of the property ogham.sms.cloudhopper.system-type | |
71 | * is used.<br /> | |
72 | */ | |
73 | private String systemType; | |
74 | @NestedConfigurationProperty | |
75 | private EncoderProperties encoder = new EncoderProperties(); | |
76 | @NestedConfigurationProperty | |
77 | private UserDataProperties userData = new UserDataProperties(); | |
78 | @NestedConfigurationProperty | |
79 | private SplitProperties split = new SplitProperties(); | |
80 | @NestedConfigurationProperty | |
81 | private DataCodingSchemeProperties dataCodingScheme = new DataCodingSchemeProperties(); | |
82 | ||
83 | public String getSystemType() { | |
84 |
1
1. getSystemType : replaced return value with "" for fr/sii/ogham/spring/sms/OghamSmppProperties::getSystemType → SURVIVED |
return systemType; |
85 | } | |
86 | ||
87 | public void setSystemType(String systemType) { | |
88 | this.systemType = systemType; | |
89 | } | |
90 | ||
91 | public String getSystemId() { | |
92 |
1
1. getSystemId : replaced return value with "" for fr/sii/ogham/spring/sms/OghamSmppProperties::getSystemId → SURVIVED |
return systemId; |
93 | } | |
94 | ||
95 | public void setSystemId(String systemId) { | |
96 | this.systemId = systemId; | |
97 | } | |
98 | ||
99 | public String getPassword() { | |
100 |
1
1. getPassword : replaced return value with "" for fr/sii/ogham/spring/sms/OghamSmppProperties::getPassword → SURVIVED |
return password; |
101 | } | |
102 | ||
103 | public void setPassword(String password) { | |
104 | this.password = password; | |
105 | } | |
106 | ||
107 | public String getHost() { | |
108 |
1
1. getHost : replaced return value with "" for fr/sii/ogham/spring/sms/OghamSmppProperties::getHost → SURVIVED |
return host; |
109 | } | |
110 | ||
111 | public void setHost(String host) { | |
112 | this.host = host; | |
113 | } | |
114 | ||
115 | public Integer getPort() { | |
116 |
2
1. getPort : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamSmppProperties::getPort → KILLED 2. getPort : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamSmppProperties::getPort → KILLED |
return port; |
117 | } | |
118 | ||
119 | public void setPort(Integer port) { | |
120 | this.port = port; | |
121 | } | |
122 | ||
123 | public SmppBindType getBindType() { | |
124 |
1
1. getBindType : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getBindType → SURVIVED |
return bindType; |
125 | } | |
126 | ||
127 | public void setBindType(SmppBindType bindType) { | |
128 | this.bindType = bindType; | |
129 | } | |
130 | ||
131 | public EncoderProperties getEncoder() { | |
132 |
2
1. getEncoder : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getEncoder → KILLED 2. getEncoder : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getEncoder → KILLED |
return encoder; |
133 | } | |
134 | ||
135 | public void setEncoder(EncoderProperties encoder) { | |
136 | this.encoder = encoder; | |
137 | } | |
138 | ||
139 | public UserDataProperties getUserData() { | |
140 |
2
1. getUserData : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getUserData → KILLED 2. getUserData : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getUserData → KILLED |
return userData; |
141 | } | |
142 | ||
143 | public void setUserData(UserDataProperties userData) { | |
144 | this.userData = userData; | |
145 | } | |
146 | ||
147 | public SplitProperties getSplit() { | |
148 |
2
1. getSplit : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getSplit → KILLED 2. getSplit : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getSplit → KILLED |
return split; |
149 | } | |
150 | ||
151 | public void setSplit(SplitProperties split) { | |
152 | this.split = split; | |
153 | } | |
154 | ||
155 | public DataCodingSchemeProperties getDataCodingScheme() { | |
156 |
2
1. getDataCodingScheme : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getDataCodingScheme → KILLED 2. getDataCodingScheme : replaced return value with null for fr/sii/ogham/spring/sms/OghamSmppProperties::getDataCodingScheme → KILLED |
return dataCodingScheme; |
157 | } | |
158 | ||
159 | public void setDataCodingScheme(DataCodingSchemeProperties dataCodingScheme) { | |
160 | this.dataCodingScheme = dataCodingScheme; | |
161 | } | |
162 | ||
163 | } | |
Mutations | ||
84 |
1.1 |
|
92 |
1.1 |
|
100 |
1.1 |
|
108 |
1.1 |
|
116 |
1.1 2.2 |
|
124 |
1.1 |
|
132 |
1.1 2.2 |
|
140 |
1.1 2.2 |
|
148 |
1.1 2.2 |
|
156 |
1.1 2.2 |