use of com.liferay.portal.kernel.poller.DefaultPollerResponse in project liferay-blade-samples by liferay.
the class BladePollProcessor method doReceive.
@Override
protected PollerResponse doReceive(PollerRequest pollerRequest) throws Exception {
_log.log(LogService.LOG_INFO, "Recevied the poller request" + pollerRequest);
JSONObject responseObject = JSONFactoryUtil.createJSONObject();
PollerResponse pollerResponse = new DefaultPollerResponse();
responseObject.put("message", "Hello from BLADE Poller, time now is:" + new Date());
pollerResponse.setParameter("content", responseObject);
return pollerResponse;
}
Aggregations