io.quarkus.devui.runtime.comms.JsonRpcMessage Maven / Gradle / Ivy
The newest version!
package io.quarkus.devui.runtime.comms;
/**
* Allows JSON RPC methods to response with more finer grade message types
*
* @param The type of the response object
*/
public class JsonRpcMessage {
private T response;
private MessageType messageType;
public JsonRpcMessage() {
}
public JsonRpcMessage(T response, MessageType messageType) {
this.response = response;
this.messageType = messageType;
}
public T getResponse() {
return response;
}
public void setResponse(T response) {
this.response = response;
}
public MessageType getMessageType() {
return messageType;
}
public void setMessageType(MessageType messageType) {
this.messageType = messageType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy