org.pandora.client.rest
Class PandoraRestServer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_INSTANCES
public static int MAX_INSTANCES
PandoraRestServer
public PandoraRestServer()
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)