19 package org.turro.elephant.snippet;
21 import java.io.IOException;
22 import java.nio.charset.StandardCharsets;
23 import java.util.Optional;
24 import org.turro.collections.KeyValueMap;
25 import org.turro.elephant.context.Application;
26 import org.turro.http.Respond;
27 import org.turro.json.Jsons;
40 protected Optional<Jsons>
getJson(KeyValueMap map) {
47 Respond.to(application.getHttpServletResponse()).flushJson(response, StandardCharsets.UTF_8);
void process(Application application, KeyValueMap map)
abstract void doProcess(Application application, KeyValueMap map)
void writeResponse(Application application, String response)
Optional< Jsons > getJson(KeyValueMap map)
static final String JSONPAR