package com.pgf.mqspring.service.impl; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.springframework.stereotype.Service; import com.pgf.mqspring.model.SampleRequestModel; import com.pgf.mqspring.model.SampleResponseModel; import com.pgf.mqspring.service.SampleService; @Service public class SampleServiceImpl implements SampleService { // CREATE public SampleResponseModel createSample(SampleRequestModel request, String mqMsg) { // JMSレスポンスを含めて編集 List> mqcih = new ArrayList>(); HashMap sampleMap = new HashMap(); sampleMap.put("Function", "MQPUT"); // sampleMap.put("Facility", request.getMqcih().get(0).get("Facility")); mqcih.add(sampleMap); return new SampleResponseModel(request.getId(), mqMsg, mqcih); } }