This commit is contained in:
parent
70a0316d19
commit
27c44fa262
1 changed files with 4 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.apache.kafka.clients.consumer.Consumer;
|
import org.apache.kafka.clients.consumer.Consumer;
|
||||||
import org.apache.kafka.clients.producer.Producer;
|
import org.apache.kafka.clients.producer.Producer;
|
||||||
|
|
@ -285,7 +286,9 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendRequest(OutboundRequest request) {
|
private void sendRequest(OutboundRequest request) {
|
||||||
request.setClearingSystem(gatewayApiSettings.getClearingSystem());
|
String clearingSystem = StringUtils.isNotEmpty(gatewayApiSettings.getClearingSystem()) ?
|
||||||
|
gatewayApiSettings.getClearingSystem() : "SPVB";
|
||||||
|
request.setClearingSystem(clearingSystem);
|
||||||
if (inboundServerSettings.getAllowedTypes().isEmpty() ||
|
if (inboundServerSettings.getAllowedTypes().isEmpty() ||
|
||||||
inboundServerSettings.getAllowedTypes().contains(request.getType())) {
|
inboundServerSettings.getAllowedTypes().contains(request.getType())) {
|
||||||
String url = formingInboundUrl(inboundServerSettings.getEnableSsl(),
|
String url = formingInboundUrl(inboundServerSettings.getEnableSsl(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue