• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
REST, Web Sockets, Server-sent Events
 

REST, Web Sockets, Server-sent Events

on

  • 3,864 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
3,864
Views on SlideShare
3,852
Embed Views
12

Actions

Likes
6
Downloads
83
Comments
1

2 Embeds 12

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

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

11 of 1 previous next

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