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

REST, Web Sockets, Server-sent Events

on

  • 4,554 views

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

Statistics

Views

Total Views
4,554
Views on SlideShare
4,541
Embed Views
13

Actions

Likes
7
Downloads
91
Comments
1

2 Embeds 13

http://storify.com 11
https://twitter.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • excellent.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

REST, Web Sockets, Server-sent Events REST, Web Sockets, Server-sent Events Presentation Transcript

  • •••
  • ••https://jersey.dev.java.net
  • ••https://jersey.dev.java.net
  • @Path
  • InputStream
  • @Consumes @PathParam
  • @pathParam
  • @PathParamid
  • @Consumes@POST @PUT
  • @Produces@GET @POST@PUT
  • • @FormParams–POST PUT• @HEAD–• @CookieParam–• @HeaderParam–•
  • ••••–•
  • ••––•
  • open event streameventeventServereventeventeventevent<EventSource>onmessageonmessageonmessageBrowserhttp://slidesha.re/LeNohX
  • ••
  • •––•– ws://– wss://
  • http://www.w3.org/TR/2009/WD-websockets-20091222/
  • •••••••••
  • 
  • 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);
  • <fieldName>: <fieldValue>n
  • fieldName•–•–•–•–
  • ••••