refactor: Update HttpEimsSender to use GlowCommunicationProperties

This commit is contained in:
jade
2026-07-08 13:11:40 +09:00
parent c3780f618f
commit 2e1f678599

View File

@@ -8,15 +8,20 @@ import org.springframework.web.client.RestClient;
import java.util.Map; import java.util.Map;
import io.shinhanlife.axhub.biz.mcp.tool.config.GlowCommunicationProperties;
@Slf4j @Slf4j
@Component @Component
public class HttpEimsSender implements EimsSender { public class HttpEimsSender implements EimsSender {
private final RestClient restClient; private final RestClient restClient;
private final String eimsUrl; private final String eimsUrl;
private final GlowCommunicationProperties glowProps;
public HttpEimsSender(@Value("${eims.http.url}") String eimsUrl) { public HttpEimsSender(GlowCommunicationProperties glowProps) {
this.eimsUrl = eimsUrl; this.glowProps = glowProps;
// yml의 대내 MCI host, port, uri를 조합하여 EIMS 호출 주소 생성
this.eimsUrl = glowProps.getMci().getHost() + ":" + glowProps.getMci().getPort() + glowProps.getMci().getUri();
this.restClient = RestClient.builder().build(); // 필요시 타임아웃 팩토리 추가 this.restClient = RestClient.builder().build(); // 필요시 타임아웃 팩토리 추가
} }