org.pandora.client.servlet
Class ChatBean

java.lang.Object
  extended by org.pandora.client.servlet.ChatBean

public class ChatBean
extends java.lang.Object


Field Summary
static int MAX_LOG
           
static int MAX_UPLOAD_SIZE
           
 
Constructor Summary
ChatBean()
           
 
Method Summary
 java.lang.String getChatLog()
          Return the current chat log.
 long getConversation()
          Return the current conversation id.
 Pandora getPandora()
          Return the associated Pandora instance.
 PandoraBean getPandoraBean()
           
 java.lang.String getResponse()
           
 java.lang.String getResponseTTS()
          Return the response as a valid argument to Goggle TTS.
 boolean getSpeak()
           
 void loadChatFile(java.io.InputStream stream)
          Parse the uploaded chat log file.
 void processEmote(java.lang.String emote)
           
 void processInput(java.lang.String input, boolean correction, boolean offensive)
           
 void setPandoraBean(PandoraBean pandoraBean)
          Set the associated PandoraBean instance.
 void setSpeak(boolean speak)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_LOG

public static int MAX_LOG

MAX_UPLOAD_SIZE

public static int MAX_UPLOAD_SIZE
Constructor Detail

ChatBean

public ChatBean()
Method Detail

getResponse

public java.lang.String getResponse()

getSpeak

public boolean getSpeak()

setSpeak

public void setSpeak(boolean speak)

getResponseTTS

public java.lang.String getResponseTTS()
Return the response as a valid argument to Goggle TTS.


processInput

public void processInput(java.lang.String input,
                         boolean correction,
                         boolean offensive)

processEmote

public void processEmote(java.lang.String emote)

loadChatFile

public void loadChatFile(java.io.InputStream stream)
Parse the uploaded chat log file.


getChatLog

public java.lang.String getChatLog()
Return the current chat log. Clear the log if it is too big.


getPandora

public Pandora getPandora()
Return the associated Pandora instance.


setPandoraBean

public void setPandoraBean(PandoraBean pandoraBean)
Set the associated PandoraBean instance. Initialize the char instance if a new Pandora instance.


getPandoraBean

public PandoraBean getPandoraBean()

getConversation

public long getConversation()
Return the current conversation id.