Class EventSourceResource

java.lang.Object
org.wicketstuff.html5.eventsource.EventSourceResource
All Implemented Interfaces:
Serializable, IResource, IClusterable

public abstract class EventSourceResource extends Object implements IResource
A IResource that supports the response protocol of Server Side Events
Since:
6.0
See Also:
  • Constructor Details

    • EventSourceResource

      public EventSourceResource()
  • Method Details

    • respond

      public final void respond(IResource.Attributes attributes)
      Specified by:
      respond in interface IResource
    • respond

      protected abstract void respond(EventSourceResource.EventSource eventSource)
      A callback method which is called when an EventSource makes a request to this resource
      Parameters:
      eventSource - a helper that should be used to write back to the client