Placemap rest and new svg placemap initial
- Placemap place fetching with rest
- jsonp-support for all REST functions
- Access-Control-Allow-Origin for REST functions
- Initial skeleton implementation of javascript placemap
-
32 33 @Override 34 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { 35 36 HttpServletResponse httpResp = (HttpServletResponse) response; 37 HttpServletRequest httpRequest = (HttpServletRequest) request; 38 39 httpResp.setHeader("Access-Control-Allow-Origin", "*"); 40 41 String jsonpFunc = request.getParameter(JSONP_PARAMETER); 42 boolean useJsonp = "GET".equals(httpRequest.getMethod()) && jsonpFunc != null && !jsonpFunc.isEmpty(); 43 44 ServletOutputStream ostream = response.getOutputStream(); 45 if (useJsonp) { 46 //.... Älä käytä response.getWriter():ä... Räjähtää. 47 //..... Älä käytä ostream.print():ä... Tulee writellä kirjoitettujen bytejen jälkeen... -
Owner
Mä voin nähdä mitä näiden kommenttirivien taustalla on :D
-
-
Please register or sign in to post a comment