Questions tagged [resty-gwt]

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

RestyGWT is a GWT generator for REST services and JSON encoded data transfer objects.

Its features are:

  • Generates Async Restful JSON based service proxies
  • Java Object to JSON encoding/decoding
  • Easy to use REST API
65 questions
5
votes
1 answer

Google end point returns JSON for long data type in quotes

I am using Google cloud end point for my rest service. I am consuming this data in a GWT web client using RestyGWT. I noticed that cloud end point is automatically enclosing a long datatype in double quotes which is causing an exception in RestyGWT…
Sathya
  • 1,076
  • 1
  • 8
  • 17
3
votes
0 answers

API expects queries to look like `foo?bar[baz]` instead of `foo?bar=baz`. Is this possible with @QueryParam?

Our team needs to consume a rest-ish API that expects path parameters in the form of api/v1/foo?bar[baz] instead of api/v1/foo?bar=baz or bar=[baz] and api/v1/foo?filter[baz][baz.id][id]=123 instead of .. I don't even know. They somehow map this…
florian
  • 434
  • 2
  • 12
3
votes
4 answers

Resty-GWT custom callback on async start and end

I use resty gwt for all server communication. I would like some indicator that would show the operation is in progress. I consider 2 aproaches: progressbar, which will show in progress percentage; animation, that will be showed while operation is…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
3
votes
2 answers

RestyGWT- custom dispatcher doesn't call registered filters

I am trying to write my custom dispatcher for resty gwt. My dispatcher RestyDispatcher will contain two filters: BasicAuthHeaderDispatcherFilter (which will add to each request security token), ForbiddenDispatcherFilter (which will contains…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
3
votes
2 answers

RestyGWT: does it support plain text?

I'm not able to receive plain text using RestyGWT. A very simple test service looks like this: @GET @Consumes(MediaType.TEXT_PLAIN) @Produces(MediaType.TEXT_PLAIN) void test(MethodCallback callback); On the client side I always…
andrew.z
  • 1,039
  • 3
  • 15
  • 24
2
votes
2 answers

Basic Auth with RestyGWT Rest Services?

How can I set the Basic Auth user id and password when using a RestyGWT Rest Services? The RestyGWT User Guide describes how to set the user id and password used in basic authentication for the RestyGWT REST API but I haven't found any docs…
Justin
  • 6,031
  • 11
  • 48
  • 82
2
votes
0 answers

Unable to configure RestyGWT sample application

I want to run a sample GWT application. I am using Eclipse IDE. I had imported code from https://github.com/ronanquillevere/gwtrestapp. I want to run this application, but found a configuration error. (Click image to enlarge)
2
votes
0 answers

RestyGWT with XSRF

I use gwt framework in my project.I decide to rest service instead of rpc and find restygwt for this.Does restyGWT support GWT XSRF mechanism or need other solutions e.g integeration with spring security?
2
votes
0 answers

RestyGWT. How to download file from rest service?

I would like You to ask what is the best way to download the file from server (Rest Spring Service) to the GWT Client? As far I know I can use 2 options: Window.open (have tested) iframe (haven't tested) For Rest asynchronous ajax calls I use…
masterdany88
  • 5,041
  • 11
  • 58
  • 132
2
votes
1 answer

RestyGWT- custom url mapping for spring rest service

I have problem that my Spring Rest Controllers is mapped other way than RestyGWT would like. My application is on: http://localhost:8080/restgwt/ According to web.xml: Spring MVC Dispatcher Servlet
masterdany88
  • 5,041
  • 11
  • 58
  • 132
2
votes
1 answer

RestyGWT & GWT integration

repost: OBJECTIVE: I'm using GWT and trying to call an existing Twitter REST Service using RestyGWT client PROBLEM: I am not receiving a response to my GET request to "https://api.twitter.com/1.1/statuses/mentions_timeline.json" , or another…
denyy den
  • 21
  • 2
2
votes
3 answers

Rest Cannot be resolved to a type

I'm trying to write my Rest Interface with restygwt therefore I inherit and also added the dependency into my pom file. import java.awt.PageAttributes.MediaType; import…
vicR
  • 789
  • 4
  • 23
  • 52
2
votes
2 answers

Making GWT and REST work together

I have this working code in DevMode however when I run it in compiled code (live), its throwing an error in the Javascript browser console: Code: MyService service = GWT.create(MyService.class); // This works service.createStuff(title.getText(),…
quarks
  • 33,478
  • 73
  • 290
  • 513
2
votes
2 answers

RestyGWT - Does JsonEncoderDecoder work with lists?

I am trying to use RestyGWT's JsonEncoderDecoder to encode/decode JSON objects. From their documentation I was able to do: public interface PersonCodec extends JsonEncoderDecoder> {} and use the encode/decode functions. However, when I…
ankurvsoni
  • 2,064
  • 3
  • 18
  • 22
1
vote
0 answers

jersey at serverside nerver stopped processing a request even though client cancelled the connection

Am using restyGwt to send a request to jersey , I have closed the request using request object at client side(request.cancel) , but i found that the server is processing my request even though i closed at client side , it is never notified to server…
1
2 3 4 5