19 package org.turro.financials.cart.delivery;
21 import java.io.IOException;
22 import java.util.List;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import org.turro.string.Strings;
26 import org.turro.collections.KeyValueMap;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.context.IConstructor;
29 import org.turro.elephant.direct.AbstractDirectContentSearch;
30 import org.turro.elephant.direct.DirectContents;
31 import org.turro.financials.cart.ShopContext;
32 import org.turro.reflection.JSONSerializer;
48 String searchValue = map.get(
"search");
49 if(!Strings.isBlank(searchValue)) {
51 constructor.
getResponse().setContentType(
"application/json");
54 JSONSerializer ser =
new JSONSerializer(streets,
true);
55 constructor.
getResponse().getWriter().write(ser.toJson());
56 }
catch (IOException ex) {
static String logMsg(String msg)
static String getEncoding()
static String getIdentifier(Class<? extends IDirectContent > control)
DeliveryContexts getDeliveryContexts()
static ShopContext getInstance()
List< StreetItem > getDeliveryStreets(String search)
void doExecute(IConstructor constructor, KeyValueMap map)
HttpServletResponse getResponse()