package com.example.service.serviceImpl; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.springframework.stereotype.Service; import com.example.model.SampleRequestModel; import com.example.model.SampleResponseModel; import com.example.model.StubModel; import com.example.service.SampleService; @Service public class SampleServiceImpl implements SampleService { // CREATE public SampleResponseModel createSample(SampleRequestModel request) { // JMS送信 StubServiceImpl stubServiceImpl = new StubServiceImpl(); StubModel stubModel = stubServiceImpl.sendToJms(request); // JMSレスポンスを含めて編集 List> mqcih = new ArrayList>(); HashMap sampleMap = new HashMap(); sampleMap.put("Function", stubModel.getBody()); sampleMap.put("Facility", request.getMqcih().get(0).get("Facility")); mqcih.add(sampleMap); return new SampleResponseModel(request.getId(), request.getContent(), mqcih); } }