rpc.params().asString(0))) { portalSession.discard(); return;
rpc.params().asString(0))) { portalSession.discard(); return;
JsonArray params = (JsonArray) event.request().params(); params.asArray(0).arrayStream().forEach(item -> { String key = item.asString(0);
@SuppressWarnings("PMD.DataflowAnomalyAnalysis") Store data = getStore(channel); JsonArray params = (JsonArray) event.request().params(); params.asArray(0).arrayStream().forEach(item -> { String key = item.asString(0);
/** * Handle JSON input. * * @param event the event * @param channel the channel * @throws InterruptedException the interrupted exception * @throws IOException Signals that an I/O exception has occurred. */ @SuppressWarnings("PMD.DataflowAnomalyAnalysis") @Handler(channels = PortalChannel.class) public void onJsonInput(JsonInput event, PortalSession channel) throws InterruptedException, IOException { // Send events to portlets on portal's channel JsonArray params = event.request().params(); switch (event.request().method()) { // NOPMD case "setTheme": { fire(new SetTheme(params.asString(0)), channel); break; } default: // Ignore unknown break; } }
throws InterruptedException, IOException { JsonArray params = event.request().params(); switch (event.request().method()) { case "portalReady": {
throws InterruptedException, IOException { JsonArray params = event.request().params(); switch (event.request().method()) { case "portalReady": {