java - Server-Sent Events in Restlet 2.3 Framework - Is It Possible? -


good day everyone!

i'm trying use restlet 2.3 framework provide restful api in standalone javase application. problem restful api have provide contains resource represented server-sent events stream. restlet neophyte , cannot understand internals, see 3 problems regarding implementation of sse restlet's serverresource:

  • there should way create endless representation, framework wouldn't wait until serverresource instance finish filling it, send client portions. i've found writablerepresentation or appendablerepresentation classes in restlet documentation - names similar needed, there not examples of usage;
  • this endless reresentation should managed framework in other way. can make thread append new events representation, (?) request-processing resources of framework should released;
  • i have set "text/event-stream" media type representation, not in media's possible values.

i've done small internet research on topic , found implementation of sse restlet 1 of ideas year's gsoc (may wrong, link lost). found feature planned restlet 3.0.

is possible in restlet 2.3 workarounds?

if not, java framework standalone restful services recommend?

thank you.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -