Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Codecrew / Moya

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 30
  • Merge Requests 2
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
Merged
Merge Request !132 opened Nov 09, 2014 by Tuomas Riihimäki@tuomari

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
Edited Nov 09, 2014
Request to merge tuomari:placemapRest into master

Merged

  • The changes were merged into master.
  • The source branch has been removed.
  • Discussion 1
  • Commits 7
  • Changes 23
  • {{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • 2a54e04ac87f85d4d091c3be1c8f9cea?s=80&d=identicon
    Tuukka Kivilahti
    @tkfftk started a discussion on the diff Nov 09, 2014
    code/moya-web/src/main/java/fi/codecrew/moya/rest/JsonpRestFilter.java
    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...
    • Tuukka Kivilahti @tkfftk commented Nov 09, 2014
      Owner

      Mä voin nähdä mitä näiden kommenttirivien taustalla on :D

  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
2
2 participants
Reference: codecrew/moya!132