blob: 5ed32cf8bd7acfad5754c3332f7be5338849f78a [file]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.rocketmq.a2a.common;
public class RocketMQResponse {
private String liteTopic;
private String contextId;
private String responseBody;
private String messageId;
private boolean isStream;
private boolean isEnd;
public RocketMQResponse(String liteTopic, String contextId, String responseBody, String messageId, boolean isStream, boolean isEnd) {
this.liteTopic = liteTopic;
this.contextId = contextId;
this.responseBody = responseBody;
this.messageId = messageId;
this.isStream = isStream;
this.isEnd = isEnd;
}
public RocketMQResponse() {}
public String getLiteTopic() {
return liteTopic;
}
public void setLiteTopic(String liteTopic) {
this.liteTopic = liteTopic;
}
public String getContextId() {
return contextId;
}
public void setContextId(String contextId) {
this.contextId = contextId;
}
public String getResponseBody() {
return responseBody;
}
public void setResponseBody(String responseBody) {
this.responseBody = responseBody;
}
public boolean isStream() {
return isStream;
}
public void setStream(boolean stream) {
isStream = stream;
}
public boolean isEnd() {
return isEnd;
}
public void setEnd(boolean end) {
isEnd = end;
}
public String getMessageId() {
return messageId;
}
public void setMessageId(String messageId) {
this.messageId = messageId;
}
}