Java 类org.eclipse.lsp4j.jsonrpc.json.MessageConstants 实例源码

项目:SOMns-vscode    文件:RemoteEndpoint.java   
@Override
public void notify(String method, Object parameter) {
    NotificationMessage notificationMessage = new NotificationMessage();
    notificationMessage.setJsonrpc(MessageConstants.JSONRPC_VERSION);
    notificationMessage.setMethod(method);
    notificationMessage.setParams(parameter);
    out.consume(notificationMessage);
}
项目:lsp4j    文件:RemoteEndpoint.java   
protected NotificationMessage createNotificationMessage(String method, Object parameter) {
    NotificationMessage notificationMessage = new NotificationMessage();
    notificationMessage.setJsonrpc(MessageConstants.JSONRPC_VERSION);
    notificationMessage.setMethod(method);
    notificationMessage.setParams(parameter);
    return notificationMessage;
}
项目:lsp4j    文件:RemoteEndpoint.java   
protected ResponseMessage createResponseMessage(RequestMessage requestMessage) {
    ResponseMessage responseMessage = new ResponseMessage();
    responseMessage.setId(requestMessage.getId());
    responseMessage.setJsonrpc(MessageConstants.JSONRPC_VERSION);
    return responseMessage;
}