use of com.willshex.blogwt.server.api.download.action.GetGeneratedDownloadsActionHandler in project blogwt by billy1380.
the class DownloadJsonServlet method processAction.
@Override
protected String processAction(String action, JsonObject request) {
String output = "null";
if ("DeleteGeneratedDownloads".equals(action)) {
DeleteGeneratedDownloadsRequest input = new DeleteGeneratedDownloadsRequest();
input.fromJson(request);
output = new DeleteGeneratedDownloadsActionHandler().handle(input).toString();
} else if ("GenerateDownload".equals(action)) {
GenerateDownloadRequest input = new GenerateDownloadRequest();
input.fromJson(request);
output = new GenerateDownloadActionHandler().handle(input).toString();
} else if ("GetGeneratedDownloads".equals(action)) {
GetGeneratedDownloadsRequest input = new GetGeneratedDownloadsRequest();
input.fromJson(request);
output = new GetGeneratedDownloadsActionHandler().handle(input).toString();
}
return output;
}
Aggregations