Your SlideShare is downloading. ×
REST, Web Sockets, Server-sent Events
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

REST, Web Sockets, Server-sent Events

4,896

Published on

REST …

REST
Web Sockets
Server-sent Events

This presentation has been developed in the context of the Mobile Applications Development course, DISIM, University of L'Aquila (Italy), Spring 2013.

http://www.ivanomalavolta.com

Published in: Technology
1 Comment
8 Likes
Statistics
Notes
No Downloads
Views
Total Views
4,896
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
108
Comments
1
Likes
8
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. •••
  • 2.
  • 3. ••https://jersey.dev.java.net
  • 4. ••https://jersey.dev.java.net
  • 5. @Path
  • 6. InputStream
  • 7. @Consumes @PathParam
  • 8. @pathParam
  • 9. @PathParamid
  • 10. @Consumes@POST @PUT
  • 11. @Produces@GET @POST@PUT
  • 12. • @FormParams–POST PUT• @HEAD–• @CookieParam–• @HeaderParam–•
  • 13. ••••–•
  • 14. ••––•
  • 15. open event streameventeventServereventeventeventevent<EventSource>onmessageonmessageonmessageBrowserhttp://slidesha.re/LeNohX
  • 16. ••
  • 17. •––•– ws://– wss://
  • 18. http://www.w3.org/TR/2009/WD-websockets-20091222/
  • 19. •••••••••
  • 20. 
  • 21. var source = new EventSource(“http://some.url”);var handler = function(event){console.log(event.data);console.log(event.id);console.log(event.origin);console.log(event.lastEventId);}source.addEventListener(‘myEvent, handler, false);
  • 22.
  • 23. <fieldName>: <fieldValue>n
  • 24. fieldName•–•–•–•–
  • 25. ••••

×