org.pandora.client.rest
Class PandoraRestServer

java.lang.Object
  extended by org.pandora.client.rest.PandoraRestServer

public class PandoraRestServer
extends java.lang.Object

Defines a REST (JAXRS) server to provide web clients a set of Pandora services for chat. The can be used from mobile or other client to interact with a Pandora instance.


Field Summary
static int MAX_INSTANCES
           
 
Constructor Summary
PandoraRestServer()
           
 
Method Summary
 ChatResponse chat(ChatMessage message, java.lang.String instance)
           
 InstanceConfig checkInstance(InstanceConfig config)
           
 UserConfig checkUser(UserConfig config)
           
 void createInstance(InstanceConfig config)
           
 void createUser(UserConfig config)
           
 void editInstance(InstanceConfig config)
           
 void editUser(UserConfig config)
           
 java.util.List<PandoraInstance> getAllAdultInstances()
           
 java.util.List<PandoraInstance> getAllInstances()
           
 java.util.logging.Logger getLog()
           
 java.util.List<PandoraInstance> getPrivateInstances(UserConfig config)
           
 void setLog(java.util.logging.Logger log)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_INSTANCES

public static int MAX_INSTANCES
Constructor Detail

PandoraRestServer

public PandoraRestServer()
Method Detail

getLog

public java.util.logging.Logger getLog()

setLog

public void setLog(java.util.logging.Logger log)

getAllInstances

public java.util.List<PandoraInstance> getAllInstances()

getAllAdultInstances

public java.util.List<PandoraInstance> getAllAdultInstances()

getPrivateInstances

public java.util.List<PandoraInstance> getPrivateInstances(UserConfig config)

chat

public ChatResponse chat(ChatMessage message,
                         java.lang.String instance)

createInstance

public void createInstance(InstanceConfig config)

editInstance

public void editInstance(InstanceConfig config)

createUser

public void createUser(UserConfig config)

editUser

public void editUser(UserConfig config)

checkUser

public UserConfig checkUser(UserConfig config)

checkInstance

public InstanceConfig checkInstance(InstanceConfig config)