The result of searching for a symbol or type is JSON - mark the outcome as such.
authorJan Lahoda <jlahoda@netbeans.org>
Sat, 05 Jan 2013 09:22:06 +0100
changeset 9216a16dc0f72ee
parent 920 96c6d04e2ba1
child 922 f8f62f61694b
The result of searching for a symbol or type is JSON - mark the outcome as such.
remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java
remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java
     1.1 --- a/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java	Tue Jan 01 18:56:54 2013 +0100
     1.2 +++ b/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Symbol.java	Sat Jan 05 09:22:06 2013 +0100
     1.3 @@ -61,7 +61,7 @@
     1.4  
     1.5      @GET
     1.6      @Path("/search")
     1.7 -    @Produces("text/plain")
     1.8 +    @Produces("application/json")
     1.9      public String findSymbol(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
    1.10          return doFind(segment, prefix, casesensitive, queryKindName, "feature", new SymbolConvertorImpl());
    1.11      }
     2.1 --- a/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java	Tue Jan 01 18:56:54 2013 +0100
     2.2 +++ b/remoting/server/web/type.web.api/src/org/netbeans/modules/jackpot30/backend/type/api/Type.java	Sat Jan 05 09:22:06 2013 +0100
     2.3 @@ -59,7 +59,7 @@
     2.4  
     2.5      @GET
     2.6      @Path("/search")
     2.7 -    @Produces("text/plain")
     2.8 +    @Produces("application/json")
     2.9      public String findType(@QueryParam("path") String segment, @QueryParam("prefix") String prefix, @QueryParam("casesensitive") @DefaultValue("false") boolean casesensitive, @QueryParam("querykind") String queryKindName) throws IOException, InterruptedException {
    2.10          return doFind(segment, prefix, casesensitive, queryKindName, "class", new TypeConvertorImpl());
    2.11      }