Package org.vrspace.server.obj
Class BotLibre
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.VRObject
org.vrspace.server.obj.Client
org.vrspace.server.obj.User
org.vrspace.server.obj.Bot
org.vrspace.server.obj.BotLibre
BotLibre integration point. Forwards user query to configured url, sets
application and service to configured values. Keeps track of conversation id.
- Author:
- joe
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getResponse
(Client client, String message) org.springframework.web.client.RestTemplate
int
hashCode()
void
selfTest()
Self test runs on server startup.void
setRestTemplate
(org.springframework.web.client.RestTemplate restTemplate) toString()
Methods inherited from class org.vrspace.server.obj.Bot
getGender, getLang, getParameter, getParameterMap, getUrl, objectsAdded, objectsRemoved, processEvent, respondTo, sendMessage, setGender, setLang, setParameterMap, setUrl, write
Methods inherited from class org.vrspace.server.obj.User
createScene, getLeftArmPos, getLeftArmRot, getRightArmPos, getRightArmRot, isHumanoid, isVideo, setHumanoid, setLeftArmPos, setLeftArmRot, setRightArmPos, setRightArmRot, setVideo
Methods inherited from class org.vrspace.server.obj.Client
clearToken, getIdentity, getMapper, getName, getPrivateMapper, getScene, getSceneProperties, getSession, getToken, getTokens, getUserHeight, getWriteBack, isGuest, setGuest, setIdentity, setMapper, setName, setPrivateMapper, setScene, setSceneProperties, setSession, setToken, setTokens, setUserHeight, setWriteBack
Methods inherited from class org.vrspace.server.obj.VRObject
active, addChildren, addListener, getActive, getAnimation, getChildren, getListeners, getMesh, getPermanent, getPosition, getProperties, getRotation, getScale, getScript, getTemporary, getWorld, getWorldId, isActive, isPermanent, isTemporary, notifyListeners, passive, removeListener, setActive, setAnimation, setChildren, setListeners, setMesh, setPermanent, setPosition, setProperties, setRotation, setScale, setScript, setTemporary, setWorld, setWorldId
Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
BotLibre
public BotLibre()
-
-
Method Details
-
selfTest
Description copied from class:Bot
Self test runs on server startup. Exceptions are logged but otherwise ignored. -
getResponse
- Specified by:
getResponse
in classBot
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate() -
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-