OghamCloudhopperProperties.java

1
package fr.sii.ogham.spring.sms;
2
3
import java.util.List;
4
5
import javax.validation.constraints.Min;
6
7
import org.springframework.boot.context.properties.ConfigurationProperties;
8
import org.springframework.boot.context.properties.NestedConfigurationProperty;
9
10
import com.cloudhopper.smpp.SmppBindType;
11
import com.cloudhopper.smpp.pdu.EnquireLink;
12
13
@ConfigurationProperties("ogham.sms.cloudhopper")
14
public class OghamCloudhopperProperties {
15
	/**
16
	 * The system_id parameter is used to identify an ESME ( External Short
17
	 * Message Entity) or an SMSC (Short Message Service Centre) at bind time.
18
	 * An ESME system_id identifies the ESME or ESME agent to the SMSC. The SMSC
19
	 * system_id provides an identification of the SMSC to the ESME. This is an
20
	 * alias of ogham.sms.smpp.system-id. If both properties are defined, this
21
	 * value is used.
22
	 * 
23
	 */
24
	private String systemId;
25
	/**
26
	 * The password parameter is used by the SMSC (Short Message Service Centre)
27
	 * to authenticate the identity of the binding ESME (External Short Message
28
	 * Entity). The Service Provider may require ESME’s to provide a password
29
	 * when binding to the SMSC. This password is normally issued by the SMSC
30
	 * system administrator. The password parameter may also be used by the ESME
31
	 * to authenticate the identity of the binding SMSC (e.g. in the case of the
32
	 * outbind operation). This is an alias of ogham.sms.smpp.password. If both
33
	 * properties are defined, this value is used.
34
	 */
35
	private String password;
36
	/**
37
	 * The SMPP server host (IP or address).<br />
38
	 * <br />
39
	 * 
40
	 * This is an alias of ogham.sms.smpp.host. If both properties are defined,
41
	 * this value is used.
42
	 */
43
	private String host;
44
	/**
45
	 * The SMPP server port.<br />
46
	 * <br />
47
	 * 
48
	 * This is an alias of ogham.sms.smpp.port. If both properties are defined,
49
	 * this value is used.<br />
50
	 * <br />
51
	 * 
52
	 * <i>Default: 2775</i>
53
	 */
54
	private Integer port;
55
	/**
56
	 * The version of the SMPP protocol.<br />
57
	 * <br />
58
	 * 
59
	 * Default: <i>"3.4"</i>
60
	 */
61
	private String interfaceVersion;
62
	/**
63
	 * The bind command type.<br />
64
	 * <br />
65
	 * 
66
	 * This is an alias of ogham.sms.smpp.bind-type. If both properties are
67
	 * defined, this value is used. <br />
68
	 * 
69
	 * Default: <i>"TRANCEIVER"</i>
70
	 */
71
	private SmppBindType bindType;
72
	/**
73
	 * The system_type parameter is used to categorize the type of ESME that is
74
	 * binding to the SMSC. Examples include “VMS” (voice mail system) and “OTA”
75
	 * (over-the-air activation system). Specification of the system_type is
76
	 * optional - some SMSC’s may not require ESME’s to provide this detail. In
77
	 * this case, the ESME can set the system_type to NULL. The system_type
78
	 * (optional) may be used to categorize the system, e.g., “EMAIL”, “WWW”,
79
	 * etc. <br />
80
	 * 
81
	 * This is an alias of ogham.sms.smpp.system-type. If both properties are
82
	 * defined, this value is used.
83
	 */
84
	private String systemType;
85
	@NestedConfigurationProperty
86
	private SessionProperties session = new SessionProperties();
87
	@NestedConfigurationProperty
88
	private DataCodingSchemeProperties dataCodingScheme = new DataCodingSchemeProperties();
89
	@NestedConfigurationProperty
90
	private EncoderProperties encoder = new EncoderProperties();
91
	@NestedConfigurationProperty
92
	private UserDataProperties userData = new UserDataProperties();
93
	@NestedConfigurationProperty
94
	private SplitProperties split = new SplitProperties();
95
96
	public String getSystemId() {
97 1 1. getSystemId : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSystemId → SURVIVED
		return systemId;
98
	}
99
100
	public void setSystemId(String systemId) {
101
		this.systemId = systemId;
102
	}
103
104
	public String getPassword() {
105 1 1. getPassword : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPassword → SURVIVED
		return password;
106
	}
107
108
	public void setPassword(String password) {
109
		this.password = password;
110
	}
111
112
	public String getHost() {
113 1 1. getHost : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getHost → SURVIVED
		return host;
114
	}
115
116
	public void setHost(String host) {
117
		this.host = host;
118
	}
119
120
	public Integer getPort() {
121 2 1. getPort : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPort → KILLED
2. getPort : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPort → KILLED
		return port;
122
	}
123
124
	public void setPort(Integer port) {
125
		this.port = port;
126
	}
127
128
	public SessionProperties getSession() {
129 2 1. getSession : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSession → KILLED
2. getSession : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSession → KILLED
		return session;
130
	}
131
132
	public void setSession(SessionProperties session) {
133
		this.session = session;
134
	}
135
136
	public String getInterfaceVersion() {
137 1 1. getInterfaceVersion : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getInterfaceVersion → SURVIVED
		return interfaceVersion;
138
	}
139
140
	public SmppBindType getBindType() {
141 1 1. getBindType : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getBindType → SURVIVED
		return bindType;
142
	}
143
144
	public void setBindType(SmppBindType bindType) {
145
		this.bindType = bindType;
146
	}
147
148
	public String getSystemType() {
149 1 1. getSystemType : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSystemType → SURVIVED
		return systemType;
150
	}
151
152
	public void setSystemType(String systemType) {
153
		this.systemType = systemType;
154
	}
155
156
	public DataCodingSchemeProperties getDataCodingScheme() {
157 2 1. getDataCodingScheme : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getDataCodingScheme → KILLED
2. getDataCodingScheme : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getDataCodingScheme → KILLED
		return dataCodingScheme;
158
	}
159
160
	public void setDataCodingScheme(DataCodingSchemeProperties dataCodingScheme) {
161
		this.dataCodingScheme = dataCodingScheme;
162
	}
163
164
	public EncoderProperties getEncoder() {
165 2 1. getEncoder : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getEncoder → KILLED
2. getEncoder : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getEncoder → KILLED
		return encoder;
166
	}
167
168
	public void setEncoder(EncoderProperties encoder) {
169
		this.encoder = encoder;
170
	}
171
172
	public UserDataProperties getUserData() {
173 2 1. getUserData : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getUserData → KILLED
2. getUserData : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getUserData → KILLED
		return userData;
174
	}
175
176
	public void setUserData(UserDataProperties userData) {
177
		this.userData = userData;
178
	}
179
180
	public void setInterfaceVersion(String interfaceVersion) {
181
		this.interfaceVersion = interfaceVersion;
182
	}
183
184
	public SplitProperties getSplit() {
185 2 1. getSplit : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSplit → KILLED
2. getSplit : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSplit → KILLED
		return split;
186
	}
187
188
	public void setSplit(SplitProperties split) {
189
		this.split = split;
190
	}
191
192
	public static class SessionProperties {
193
		/**
194
		 * A name for the session (used to name threads used by Cloudhopper).
195
		 */
196
		private String name;
197
		/**
198
		 * Set the maximum amount of time (in milliseconds) to wait for the
199
		 * success of a bind attempt to the SMSC.<br />
200
		 * <br />
201
		 * 
202
		 * Default: <i>5 seconds</i>
203
		 */
204
		private Long bindTimeout;
205
		/**
206
		 * Set the maximum amount of time (in milliseconds) to wait for a
207
		 * establishing the connection.<br />
208
		 * <br />
209
		 * 
210
		 * Default: <i>10 seconds</i>
211
		 */
212
		private Long connectTimeout;
213
		/**
214
		 * Set the amount of time (milliseconds) to wait for an endpoint to
215
		 * respond to a request before it expires.<br />
216
		 * <br />
217
		 * 
218
		 * Default: <i>-1</i> (disabled)
219
		 */
220
		private Long requestExpiryTimeout;
221
		/**
222
		 * Sets the amount of time (milliseconds) between executions of
223
		 * monitoring the window for requests that expire. It's recommended that
224
		 * this generally either matches or is half the value of
225
		 * requestExpiryTimeout. Therefore, at worst a request would could take
226
		 * up 1.5X the requestExpiryTimeout to clear out.<br />
227
		 * <br />
228
		 * 
229
		 * Default: <i>-1</i> (disabled)
230
		 */
231
		private Long windowMonitorInterval;
232
		/**
233
		 * Sets the maximum number of requests permitted to be outstanding
234
		 * (unacknowledged) at a given time. Must be &gt; 0.<br />
235
		 * <br />
236
		 * 
237
		 * Default: <i>1</i>
238
		 */
239
		@Min(0)
240
		private Integer windowSize;
241
		/**
242
		 * Set the amount of time (milliseconds) to wait until a slot opens up
243
		 * in the sendWindow.<br />
244
		 * <br />
245
		 * 
246
		 * Default: <i>1 minute</i>
247
		 * 
248
		 */
249
		private Long windowWaitTimeout;
250
		/**
251
		 * Set the maximum amount of time (in milliseconds) to wait for bytes to
252
		 * be written when creating a new SMPP session.<br />
253
		 * <br />
254
		 * 
255
		 * Default: 0 (no timeout, for backwards compatibility)
256
		 */
257
		private Long writeTimeout;
258
		/**
259
		 * Set the maximum amount of time (in milliseconds) to wait until a
260
		 * valid response is received when a "submit" request is synchronously
261
		 * sends to the remote endpoint. The timeout value includes both waiting
262
		 * for a "window" slot, the time it takes to transmit the actual bytes
263
		 * on the socket, and for the remote endpoint to send a response
264
		 * back.<br />
265
		 * <br />
266
		 * 
267
		 * Default: <i>5 seconds</i>
268
		 */
269
		private Long responseTimeout;
270
		/**
271
		 * Set the maximum amount of time (in milliseconds) to wait until the
272
		 * session is unbounded, waiting up to a specified period of
273
		 * milliseconds for an unbind response from the remote endpoint.
274
		 * Regardless of whether a proper unbind response was received, the
275
		 * socket/channel is closed.<br />
276
		 * <br />
277
		 * 
278
		 * Default: <i>5 seconds</i>
279
		 */
280
		private Long unbindTimeout;
281
		@NestedConfigurationProperty
282
		private ReuseSessionOptions reuseSession = new ReuseSessionOptions();
283
		@NestedConfigurationProperty
284
		private KeepAliveOptions keepAlive = new KeepAliveOptions();
285
		@NestedConfigurationProperty
286
		private ConnectRetryProperties connectRetry = new ConnectRetryProperties();
287
288
		public String getName() {
289 1 1. getName : replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getName → SURVIVED
			return name;
290
		}
291
292
		public void setName(String name) {
293
			this.name = name;
294
		}
295
296
		public Long getBindTimeout() {
297 1 1. getBindTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getBindTimeout → TIMED_OUT
			return bindTimeout;
298
		}
299
300
		public void setBindTimeout(Long bindTimeout) {
301
			this.bindTimeout = bindTimeout;
302
		}
303
304
		public Long getConnectTimeout() {
305 1 1. getConnectTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectTimeout → SURVIVED
			return connectTimeout;
306
		}
307
308
		public void setConnectTimeout(Long connectTime) {
309
			this.connectTimeout = connectTime;
310
		}
311
312
		public Long getRequestExpiryTimeout() {
313 1 1. getRequestExpiryTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getRequestExpiryTimeout → SURVIVED
			return requestExpiryTimeout;
314
		}
315
316
		public void setRequestExpiryTimeout(Long requestExpiryTimeout) {
317
			this.requestExpiryTimeout = requestExpiryTimeout;
318
		}
319
320
		public Long getWindowMonitorInterval() {
321 1 1. getWindowMonitorInterval : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowMonitorInterval → SURVIVED
			return windowMonitorInterval;
322
		}
323
324
		public void setWindowMonitorInterval(Long windowMonitorInterval) {
325
			this.windowMonitorInterval = windowMonitorInterval;
326
		}
327
328
		public Integer getWindowSize() {
329 1 1. getWindowSize : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowSize → TIMED_OUT
			return windowSize;
330
		}
331
332
		public void setWindowSize(Integer windowSize) {
333
			this.windowSize = windowSize;
334
		}
335
336
		public Long getWindowWaitTimeout() {
337 1 1. getWindowWaitTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowWaitTimeout → SURVIVED
			return windowWaitTimeout;
338
		}
339
340
		public void setWindowWaitTimeout(Long windowWaitTimeout) {
341
			this.windowWaitTimeout = windowWaitTimeout;
342
		}
343
344
		public Long getWriteTimeout() {
345 1 1. getWriteTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWriteTimeout → SURVIVED
			return writeTimeout;
346
		}
347
348
		public void setWriteTimeout(Long writeTimeout) {
349
			this.writeTimeout = writeTimeout;
350
		}
351
352
		public Long getResponseTimeout() {
353 2 1. getResponseTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getResponseTimeout → KILLED
2. getResponseTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getResponseTimeout → KILLED
			return responseTimeout;
354
		}
355
356
		public void setResponseTimeout(Long responseTimeout) {
357
			this.responseTimeout = responseTimeout;
358
		}
359
360
		public Long getUnbindTimeout() {
361 1 1. getUnbindTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getUnbindTimeout → SURVIVED
			return unbindTimeout;
362
		}
363
364
		public void setUnbindTimeout(Long unbindTimeout) {
365
			this.unbindTimeout = unbindTimeout;
366
		}
367
368
		public ConnectRetryProperties getConnectRetry() {
369 2 1. getConnectRetry : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectRetry → KILLED
2. getConnectRetry : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectRetry → KILLED
			return connectRetry;
370
		}
371
372
		public void setConnectRetry(ConnectRetryProperties connectRetry) {
373
			this.connectRetry = connectRetry;
374
		}
375
376
		public ReuseSessionOptions getReuseSession() {
377 2 1. getReuseSession : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getReuseSession → KILLED
2. getReuseSession : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getReuseSession → KILLED
			return reuseSession;
378
		}
379
380
		public void setReuseSession(ReuseSessionOptions reuseSession) {
381
			this.reuseSession = reuseSession;
382
		}
383
384
		public KeepAliveOptions getKeepAlive() {
385 2 1. getKeepAlive : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getKeepAlive → KILLED
2. getKeepAlive : replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getKeepAlive → KILLED
			return keepAlive;
386
		}
387
388
		public void setKeepAlive(KeepAliveOptions keepAlive) {
389
			this.keepAlive = keepAlive;
390
		}
391
392
	}
393
394
	public static class ConnectRetryProperties {
395
		/**
396
		 * Set the maximum number of attempts for establishing a
397
		 * connection.<br />
398
		 * <br />
399
		 * 
400
		 * Default: <i>10</i>
401
		 */
402
		private Integer maxAttempts;
403
		/**
404
		 * Set the delay between two attemps for establishing a connection (in
405
		 * milliseconds).<br />
406
		 * <br />
407
		 * 
408
		 * Default: <i>5 seconds</i>
409
		 */
410
		private Long delayBetweenAttempts;
411
412
		/**
413
		 * Set the initial delay between two executions (in milliseconds). This
414
		 * delay will be doubled for each try.
415
		 */
416
		private Long exponentialInitialDelay;
417
418
		/**
419
		 * Set specific delays (in milliseconds) used for each new execution. If
420
		 * there are more attempts than the configured delays, the last delay is
421
		 * used for remaining attempts.
422
		 */
423
		private List<Long> perExecutionDelays;
424
425
		/**
426
		 * Retry several times with a fixed delay between each try (no matter
427
		 * how long the execution of the action lasts) until the maximum
428
		 * attempts is reached. The next execution date is based on the
429
		 * execution start date of the first execution.<br />
430
		 * <br />
431
		 * Set the interval between two executions (in milliseconds).
432
		 */
433
		private Long executionInterval;
434
435
		public Integer getMaxAttempts() {
436 1 1. getMaxAttempts : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getMaxAttempts → SURVIVED
			return maxAttempts;
437
		}
438
439
		public void setMaxAttempts(Integer maxAttempts) {
440
			this.maxAttempts = maxAttempts;
441
		}
442
443
		public Long getDelayBetweenAttempts() {
444 1 1. getDelayBetweenAttempts : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getDelayBetweenAttempts → SURVIVED
			return delayBetweenAttempts;
445
		}
446
447
		public void setDelayBetweenAttempts(Long delayBetweenAttempts) {
448
			this.delayBetweenAttempts = delayBetweenAttempts;
449
		}
450
451
		public Long getExponentialInitialDelay() {
452 1 1. getExponentialInitialDelay : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getExponentialInitialDelay → SURVIVED
			return exponentialInitialDelay;
453
		}
454
455
		public void setExponentialInitialDelay(Long exponentialInitialDelay) {
456
			this.exponentialInitialDelay = exponentialInitialDelay;
457
		}
458
459
		public List<Long> getPerExecutionDelays() {
460 1 1. getPerExecutionDelays : replaced return value with Collections.emptyList for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getPerExecutionDelays → SURVIVED
			return perExecutionDelays;
461
		}
462
463
		public void setPerExecutionDelays(List<Long> perExecutionDelays) {
464
			this.perExecutionDelays = perExecutionDelays;
465
		}
466
467
		public Long getExecutionInterval() {
468 1 1. getExecutionInterval : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getExecutionInterval → SURVIVED
			return executionInterval;
469
		}
470
471
		public void setExecutionInterval(Long executionInterval) {
472
			this.executionInterval = executionInterval;
473
		}
474
475
	}
476
477
	public static class KeepAliveOptions {
478
		/**
479
		 * Enable or disable sending of {@link EnquireLink} messages to keep the
480
		 * session alive.<br />
481
		 * <br />
482
		 * 
483
		 * Default: <i>false</i>
484
		 */
485
		private Boolean enable;
486
		/**
487
		 * The delay (in milliseconds) between two {@link EnquireLink}
488
		 * messages.<br />
489
		 * <br />
490
		 * 
491
		 * Default: <i>30 seconds</i>
492
		 */
493
		private Long requestInterval;
494
		/**
495
		 * The maximum amount of time (in milliseconds) to wait for receiving a
496
		 * response from the server to an {@link EnquireLink} request.<br />
497
		 * <br />
498
		 * 
499
		 * Default: <i>10 seconds</i>
500
		 */
501
		private Long responseTimeout;
502
		/**
503
		 * Connect to the server directly when the client is ready (if true).
504
		 * Otherwise, the connection is done when the first message is
505
		 * sent.<br />
506
		 * <br />
507
		 * 
508
		 * This may be useful to avoid a latency for the first message.<br />
509
		 * <br />
510
		 * 
511
		 * If connection fails at startup, then a new attempt is done when first
512
		 * message is sent.<br />
513
		 * <br />
514
		 * 
515
		 * Default: <i>false</i>
516
		 */
517
		private Boolean connectAtStartup;
518
		/**
519
		 * The maximum number of consecutive EnquireLink requests that end in
520
		 * timeout to consider that a new session is required.<br />
521
		 * <br />
522
		 * 
523
		 * Default: <i>3</i>
524
		 */
525
		private Integer maxConsecutiveTimeouts;
526
527
		public Boolean getEnable() {
528 3 1. getEnable : replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → SURVIVED
2. getEnable : replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → SURVIVED
3. getEnable : replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → TIMED_OUT
			return enable;
529
		}
530
531
		public void setEnable(Boolean enable) {
532
			this.enable = enable;
533
		}
534
535
		public Long getRequestInterval() {
536 1 1. getRequestInterval : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getRequestInterval → SURVIVED
			return requestInterval;
537
		}
538
539
		public void setRequestInterval(Long enquireLinkInterval) {
540
			this.requestInterval = enquireLinkInterval;
541
		}
542
543
		public Long getResponseTimeout() {
544 1 1. getResponseTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getResponseTimeout → SURVIVED
			return responseTimeout;
545
		}
546
547
		public void setResponseTimeout(Long enquireLinkTimeout) {
548
			this.responseTimeout = enquireLinkTimeout;
549
		}
550
551
		public Boolean getConnectAtStartup() {
552 2 1. getConnectAtStartup : replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getConnectAtStartup → SURVIVED
2. getConnectAtStartup : replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getConnectAtStartup → SURVIVED
			return connectAtStartup;
553
		}
554
555
		public void setConnectAtStartup(Boolean connectAtStartup) {
556
			this.connectAtStartup = connectAtStartup;
557
		}
558
559
		public Integer getMaxConsecutiveTimeouts() {
560 1 1. getMaxConsecutiveTimeouts : replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getMaxConsecutiveTimeouts → SURVIVED
			return maxConsecutiveTimeouts;
561
		}
562
563
		public void setMaxConsecutiveTimeouts(Integer maximumConsecutiveTimeouts) {
564
			this.maxConsecutiveTimeouts = maximumConsecutiveTimeouts;
565
		}
566
	}
567
568
	public static class ReuseSessionOptions {
569
		/**
570
		 * Enable or disable the reuse the same session (if possible) for
571
		 * sending messages.<br />
572
		 * <br />
573
		 * 
574
		 * Default: <i>false</i>
575
		 */
576
		private Boolean enable;
577
		/**
578
		 * To check if the session is still alive, an {@link EnquireLink}
579
		 * request is sent. The request is sent just before sending the
580
		 * message.<br />
581
		 * <br />
582
		 * 
583
		 * This is the time (in milliseconds) to wait before considering last
584
		 * {@link EnquireLink} response as expired (need to send a new
585
		 * {@link EnquireLink} request to check if session is still
586
		 * alive).<br />
587
		 * <br />
588
		 * 
589
		 * This is needed to prevent sending {@link EnquireLink} request every
590
		 * time a message has to be sent. Instead it considers that the time
591
		 * elapsed between now and the last {@link EnquireLink} response (or the
592
		 * last sent message) is not enough so a new {@link EnquireLink} is not
593
		 * necessary to check if session is still alive.<br />
594
		 * <br />
595
		 * 
596
		 * Set to 0 or null to always check session before sending
597
		 * message.<br />
598
		 * <br />
599
		 * 
600
		 * Default: <i>30 seconds</i>
601
		 */
602
		private Long lastInteractionExpirationDelay;
603
		/**
604
		 * To check if the session is still alive, an {@link EnquireLink}
605
		 * request is sent. This request may fail since the session may be
606
		 * killed by the server. The timeout ensures that the client doesn't
607
		 * wait too long for a response that may never come.<br />
608
		 * <br />
609
		 * 
610
		 * The maximum amount of time (in milliseconds) to wait for receiving a
611
		 * response from the server to an {@link EnquireLink} request.<br />
612
		 * <br />
613
		 * 
614
		 * Default: <i>10 seconds</i>
615
		 */
616
		private Long responseTimeout;
617
618
		public Boolean getEnable() {
619 2 1. getEnable : replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getEnable → SURVIVED
2. getEnable : replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getEnable → SURVIVED
			return enable;
620
		}
621
622
		public void setEnable(Boolean enable) {
623
			this.enable = enable;
624
		}
625
626
		public Long getLastInteractionExpirationDelay() {
627 1 1. getLastInteractionExpirationDelay : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getLastInteractionExpirationDelay → SURVIVED
			return lastInteractionExpirationDelay;
628
		}
629
630
		public void setLastInteractionExpirationDelay(Long delay) {
631
			this.lastInteractionExpirationDelay = delay;
632
		}
633
634
		public Long getResponseTimeout() {
635 1 1. getResponseTimeout : replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getResponseTimeout → SURVIVED
			return responseTimeout;
636
		}
637
638
		public void setResponseTimeout(Long enquireLinkTimeout) {
639
			this.responseTimeout = enquireLinkTimeout;
640
		}
641
	}
642
}

Mutations

97

1.1
Location : getSystemId
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSystemId → SURVIVED

105

1.1
Location : getPassword
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPassword → SURVIVED

113

1.1
Location : getHost
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getHost → SURVIVED

121

1.1
Location : getPort
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPort → KILLED

2.2
Location : getPort
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.smsUsingFreemarkerTemplateAndStaticMethodAccessDisabledShouldFail(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getPort → KILLED

129

1.1
Location : getSession
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSession → KILLED

2.2
Location : getSession
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSession → KILLED

137

1.1
Location : getInterfaceVersion
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getInterfaceVersion → SURVIVED

141

1.1
Location : getBindType
Killed by : none
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getBindType → SURVIVED

149

1.1
Location : getSystemType
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSystemType → SURVIVED

157

1.1
Location : getDataCodingScheme
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getDataCodingScheme → KILLED

2.2
Location : getDataCodingScheme
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getDataCodingScheme → KILLED

165

1.1
Location : getEncoder
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getEncoder → KILLED

2.2
Location : getEncoder
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getEncoder → KILLED

173

1.1
Location : getUserData
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getUserData → KILLED

2.2
Location : getUserData
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getUserData → KILLED

185

1.1
Location : getSplit
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSplit → KILLED

2.2
Location : getSplit
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties::getSplit → KILLED

289

1.1
Location : getName
Killed by : none
replaced return value with "" for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getName → SURVIVED

297

1.1
Location : getBindTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getBindTimeout → TIMED_OUT

305

1.1
Location : getConnectTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectTimeout → SURVIVED

313

1.1
Location : getRequestExpiryTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getRequestExpiryTimeout → SURVIVED

321

1.1
Location : getWindowMonitorInterval
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowMonitorInterval → SURVIVED

329

1.1
Location : getWindowSize
Killed by : none
replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowSize → TIMED_OUT

337

1.1
Location : getWindowWaitTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWindowWaitTimeout → SURVIVED

345

1.1
Location : getWriteTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getWriteTimeout → SURVIVED

353

1.1
Location : getResponseTimeout
Killed by : oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest.smsUsingFreemarkerTemplateShouldResolveBeans(oghamspringbootv1autoconfigure.it.SpringBeanResolutionTest)
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getResponseTimeout → KILLED

2.2
Location : getResponseTimeout
Killed by : oghamspringbootv2autoconfigure.it.StaticMethodAccessTest.smsUsingFreemarkerTemplateShouldBeAbleToCallStaticMethodsWithCustomVariableName(oghamspringbootv2autoconfigure.it.StaticMethodAccessTest)
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getResponseTimeout → KILLED

361

1.1
Location : getUnbindTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getUnbindTimeout → SURVIVED

369

1.1
Location : getConnectRetry
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectRetry → KILLED

2.2
Location : getConnectRetry
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getConnectRetry → KILLED

377

1.1
Location : getReuseSession
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getReuseSession → KILLED

2.2
Location : getReuseSession
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getReuseSession → KILLED

385

1.1
Location : getKeepAlive
Killed by : oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests.oghamPropertiesWithSpringPropsShouldUseOghamPropertiesPrecedence(oghamspringbootv2autoconfigure.it.OghamSpringBoot2JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getKeepAlive → KILLED

2.2
Location : getKeepAlive
Killed by : oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests.oghamAloneShouldUseOghamProperties(oghamspringbootv1autoconfigure.it.OghamSpringBoot1JavaMailAutoConfigurationTests)
replaced return value with null for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$SessionProperties::getKeepAlive → KILLED

436

1.1
Location : getMaxAttempts
Killed by : none
replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getMaxAttempts → SURVIVED

444

1.1
Location : getDelayBetweenAttempts
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getDelayBetweenAttempts → SURVIVED

452

1.1
Location : getExponentialInitialDelay
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getExponentialInitialDelay → SURVIVED

460

1.1
Location : getPerExecutionDelays
Killed by : none
replaced return value with Collections.emptyList for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getPerExecutionDelays → SURVIVED

468

1.1
Location : getExecutionInterval
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ConnectRetryProperties::getExecutionInterval → SURVIVED

528

1.1
Location : getEnable
Killed by : none
replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → SURVIVED

2.2
Location : getEnable
Killed by : none
replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → TIMED_OUT

3.3
Location : getEnable
Killed by : none
replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getEnable → SURVIVED

536

1.1
Location : getRequestInterval
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getRequestInterval → SURVIVED

544

1.1
Location : getResponseTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getResponseTimeout → SURVIVED

552

1.1
Location : getConnectAtStartup
Killed by : none
replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getConnectAtStartup → SURVIVED

2.2
Location : getConnectAtStartup
Killed by : none
replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getConnectAtStartup → SURVIVED

560

1.1
Location : getMaxConsecutiveTimeouts
Killed by : none
replaced Integer return value with 0 for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$KeepAliveOptions::getMaxConsecutiveTimeouts → SURVIVED

619

1.1
Location : getEnable
Killed by : none
replaced Boolean return with False for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getEnable → SURVIVED

2.2
Location : getEnable
Killed by : none
replaced Boolean return with True for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getEnable → SURVIVED

627

1.1
Location : getLastInteractionExpirationDelay
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getLastInteractionExpirationDelay → SURVIVED

635

1.1
Location : getResponseTimeout
Killed by : none
replaced Long return value with 0L for fr/sii/ogham/spring/sms/OghamCloudhopperProperties$ReuseSessionOptions::getResponseTimeout → SURVIVED

Active mutators

Tests examined


Report generated by PIT OGHAM