org.benjp.server
Class ChatServer

java.lang.Object
  extended by org.benjp.server.ChatServer

@ApplicationScoped
public class ChatServer
extends Object


Constructor Summary
ChatServer()
           
 
Method Summary
 juzu.Response.Content delete(String user, String token, String room, String messageId)
           
 juzu.Response.Content edit(String user, String token, String room, String messageId, String message)
           
 juzu.Response.Content getRoom(String user, String token, String targetUser, String isAdmin)
           
 juzu.Response.Content getStatistics()
           
 juzu.Response.Content getStatus(String user, String token, String targetUser)
           
 juzu.Response.Content getUsers(String user, String token, String space)
           
 void index()
           
 juzu.Response.Content notification(String user, String token, String event)
           
 juzu.Response.Content send(String user, String token, String targetUser, String message, String room, String event, String isSystem, String options, String isTextOnly)
           
 juzu.Response.Content setStatus(String user, String token, String status)
           
 juzu.Response.Content toggleFavorite(String user, String token, String targetUser)
           
 juzu.Response.Content updateUnreadMessages(String room, String user, String token)
           
 juzu.Response.Content whoIsOnline(String user, String token, String filter, String withUsers, String withSpaces, String withPublic, String withOffline, String isAdmin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatServer

public ChatServer()
Method Detail

index

public void index()
           throws IOException
Throws:
IOException

whoIsOnline

public juzu.Response.Content whoIsOnline(String user,
                                         String token,
                                         String filter,
                                         String withUsers,
                                         String withSpaces,
                                         String withPublic,
                                         String withOffline,
                                         String isAdmin)

send

public juzu.Response.Content send(String user,
                                  String token,
                                  String targetUser,
                                  String message,
                                  String room,
                                  String event,
                                  String isSystem,
                                  String options,
                                  String isTextOnly)
                           throws IOException
Throws:
IOException

delete

public juzu.Response.Content delete(String user,
                                    String token,
                                    String room,
                                    String messageId)
                             throws IOException
Throws:
IOException

edit

public juzu.Response.Content edit(String user,
                                  String token,
                                  String room,
                                  String messageId,
                                  String message)
                           throws IOException
Throws:
IOException

toggleFavorite

public juzu.Response.Content toggleFavorite(String user,
                                            String token,
                                            String targetUser)

getRoom

public juzu.Response.Content getRoom(String user,
                                     String token,
                                     String targetUser,
                                     String isAdmin)

updateUnreadMessages

public juzu.Response.Content updateUnreadMessages(String room,
                                                  String user,
                                                  String token)

notification

public juzu.Response.Content notification(String user,
                                          String token,
                                          String event)
                                   throws IOException
Throws:
IOException

getStatus

public juzu.Response.Content getStatus(String user,
                                       String token,
                                       String targetUser)

setStatus

public juzu.Response.Content setStatus(String user,
                                       String token,
                                       String status)

getUsers

public juzu.Response.Content getUsers(String user,
                                      String token,
                                      String space)

getStatistics

public juzu.Response.Content getStatistics()


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.