REST, Web Sockets, Server-sent Events

  • 4,306 views
Uploaded 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

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • excellent.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
4,306
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
98
Comments
1
Likes
7

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. ••••