package com.pgf.mqspring.model; import java.io.Serializable; public class ReplyRequestModel implements Serializable { /** MQMD */ private MqmdRequestModel mqmd = new MqmdRequestModel(); /** MQCIH */ private MqcihRequestModel mqcih = new MqcihRequestModel(); /** SendMessage */ private SendMessageRequestModel sendMessage = new SendMessageRequestModel(); //TIMEOUT private String timeout = ""; public ReplyRequestModel() { } public MqmdRequestModel getMqmd() { return mqmd; } public void setMqmd(MqmdRequestModel mqmd) { this.mqmd = mqmd; } public MqcihRequestModel getMqcih() { return mqcih; } public void setMqcih(MqcihRequestModel mqcih) { this.mqcih = mqcih; } public SendMessageRequestModel getSendMessage() { return sendMessage; } public void setSendMessage(SendMessageRequestModel sendMessage) { this.sendMessage = sendMessage; } public String getTimeout() { return timeout; } public void setTimeout(String timeout) { this.timeout = timeout; } public ReplyRequestModel(MqmdRequestModel mqmd, MqcihRequestModel mqcih, SendMessageRequestModel sendMessage, String timeout) { this.mqmd = mqmd; this.mqcih = mqcih; this.sendMessage = sendMessage; this.timeout = timeout; } @Override public String toString() { StringBuilder str = new StringBuilder(); str.append(mqmd.getFormat()); str.append(mqmd.getMsgId()); str.append(mqmd.getCorrelId()); str.append(mqmd.getPersistence()); str.append(mqmd.getExpiry()); str.append(mqmd.getApplIdentityData()); str.append(mqcih.getStrucId()); str.append(mqcih.getVersion()); str.append(mqcih.getStrucLength()); str.append(mqcih.getFormat()); str.append(mqcih.getReturnCode()); str.append(mqcih.getCompCode()); str.append(mqcih.getReason()); str.append(mqcih.getUowControl()); str.append(mqcih.getGetWaitInterval()); str.append(mqcih.getLinkType()); str.append(mqcih.getOutputDataLength()); str.append(mqcih.getFacilityKeepTime()); str.append(mqcih.getAdsDescriptor()); str.append(mqcih.getConversationalTask()); str.append(mqcih.getTaskEndStatus()); str.append(mqcih.getFacility()); str.append(mqcih.getFunction()); str.append(mqcih.getAbendCode()); str.append(mqcih.getAutherticator()); str.append(mqcih.getReplyToFormat()); str.append(mqcih.getTransactionId()); str.append(mqcih.getFacilityLike()); str.append(mqcih.getAttentionId()); str.append(mqcih.getStartCode()); str.append(mqcih.getCancelCode()); str.append(mqcih.getNextTransactionCode()); str.append(mqcih.getCursorPositon()); str.append(mqcih.getErrorOffset()); str.append(sendMessage.getNormalMessage()); str.append(sendMessage.getReceiveMapVector().getVectorLength()); str.append(sendMessage.getReceiveMapVector().getVectorDescriptor()); str.append(sendMessage.getReceiveMapVector().getVectorType()); str.append(sendMessage.getReceiveMapVector().getVectorVersion()); str.append(sendMessage.getReceiveMapVector().getRmTransmitSendAreas()); str.append(sendMessage.getReceiveMapVector().getRmMapset()); str.append(sendMessage.getReceiveMapVector().getRmMap()); str.append(sendMessage.getReceiveMapVector().getRmAid()); str.append(sendMessage.getReceiveMapVector().getRmCposn()); str.append(sendMessage.getReceiveMapVector().getRmDataLen()); str.append(sendMessage.getAds()); return String.format("%s", str.toString()); } }