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