@Override public String getFirstPart(String cadastreObjectType, byte[] cadastreObjectGeometry) { HashMap params = new HashMap<String, Serializable>(); params.put("type", cadastreObjectType); params.put("the_geom", cadastreObjectGeometry); return systemEJB .checkRuleGetResultSingle("generate-cadastre-object-first-part", params) .getValue() .toString(); }
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String prefix = systemEJB.getSetting("system-id", ""); // Set response content type response.setContentType("text/plain"); // Actual logic goes here. PrintWriter out = response.getWriter(); out.println(prefix); }