use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method getSourceTemplate.
public void getSourceTemplate(String name, String template, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(name));
params.set(1, new JSONString(template));
sendRequest(RPC_SCOPE, GET_SOURCE_TEMPLATE, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method log.
public void log(int logEntryType, String logEntry, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(logEntryType));
params.set(1, new JSONString(logEntry));
sendRequest(LOG_SCOPE, LOG, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method abort.
public void abort(String nextProj, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(StringUtil.notNull(nextProj)));
sendRequest(RPC_SCOPE, ABORT, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method cleanReplayNotebookChunkPlots.
@Override
public void cleanReplayNotebookChunkPlots(String docId, String chunkId, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(chunkId));
sendRequest(RPC_SCOPE, "clean_replay_notebook_chunk_plots", params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method consoleInput.
public void consoleInput(String consoleInput, String consoleId, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, consoleInput == null ? JSONNull.getInstance() : new JSONString(consoleInput));
params.set(1, consoleId == null ? JSONNull.getInstance() : new JSONString(consoleId));
sendRequest(RPC_SCOPE, CONSOLE_INPUT, params, requestCallback);
}
Aggregations