com.groupdocs.annotation.service
Class AnnotationManagedService

java.lang.Object
  extended by com.groupdocs.annotation.service.AnnotationManagedService

@ManagedService(path="/annotation")
public class AnnotationManagedService
extends Object

Socket service for Atmosphere

Author:
Alex Bobkov

Constructor Summary
AnnotationManagedService()
           
 
Method Summary
 void onDisconnect(org.atmosphere.cpr.AtmosphereResourceEvent event)
          On disconnect handler
 void onMessage(org.atmosphere.cpr.AtmosphereResource resource)
          On message handler [POST]
 void onReady(org.atmosphere.cpr.AtmosphereResource resource)
          On ready handler
static boolean sendMessage(Object message)
          Send message to all clients
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationManagedService

public AnnotationManagedService()
Method Detail

onReady

public void onReady(org.atmosphere.cpr.AtmosphereResource resource)
On ready handler

Parameters:
resource - resource data received from socket

onDisconnect

public void onDisconnect(org.atmosphere.cpr.AtmosphereResourceEvent event)
On disconnect handler

Parameters:
event - resource event

onMessage

public void onMessage(org.atmosphere.cpr.AtmosphereResource resource)
On message handler [POST]

Parameters:
resource - resource data received from socket

sendMessage

public static boolean sendMessage(Object message)
Send message to all clients

Parameters:
message - class implements com.groupdocs.annotation.domain.atmosphere.IAnnotationMessage
Returns:
success


Copyright © 2014. All rights reserved.