net.hurstfrost.santa.web
Class SantaServlet

java.lang.Object
  extended by com.caucho.services.server.GenericService
      extended by com.caucho.burlap.server.BurlapServlet
          extended by net.hurstfrost.santa.web.SantaServlet
All Implemented Interfaces:
com.caucho.services.server.Service, javax.servlet.Servlet, net.hurstfrost.santa.control.SantaControlService, net.hurstfrost.santa.control.SantaSoundService

public class SantaServlet
extends com.caucho.burlap.server.BurlapServlet
implements net.hurstfrost.santa.control.SantaControlService, net.hurstfrost.santa.control.SantaSoundService


Field Summary
 
Fields inherited from class com.caucho.services.server.GenericService
_config, _objectId, _request, _serviceId
 
Constructor Summary
SantaServlet()
           
 
Method Summary
 void addSoundBite(byte[] audioData, java.lang.String filename, java.lang.String[] tags)
           
 void closeMouth()
           
 void faceForward()
           
 void faceLeft()
           
 void faceRight()
           
 java.util.List<java.lang.String> getSounds(java.lang.String query)
           
 java.util.List<net.hurstfrost.santa.sound.SantaVoice> getVoices()
           
 void init()
           
 void openMouth()
           
 void play(java.lang.String soundBite)
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 void speak(java.lang.String text)
           
 void speak(java.lang.String text, boolean priveight, java.lang.String voiceId)
           
 void turnLeft()
           
 void turnRight()
           
 void turnStop()
           
 void wiggleStart()
           
 void wiggleStop()
           
 
Methods inherited from class com.caucho.burlap.server.BurlapServlet
getServletInfo, init, setService
 
Methods inherited from class com.caucho.services.server.GenericService
destroy, getInitParameter, getObjectId, getRequest, getServiceId, getServletConfig, getServletContext, log, setRequestObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig
 

Constructor Detail

SantaServlet

public SantaServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class com.caucho.services.server.GenericService
Throws:
javax.servlet.ServletException

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Specified by:
service in interface javax.servlet.Servlet
Overrides:
service in class com.caucho.burlap.server.BurlapServlet
Throws:
java.io.IOException
javax.servlet.ServletException

closeMouth

public void closeMouth()
Specified by:
closeMouth in interface net.hurstfrost.santa.control.SantaControlService

faceForward

public void faceForward()
Specified by:
faceForward in interface net.hurstfrost.santa.control.SantaControlService

faceLeft

public void faceLeft()
Specified by:
faceLeft in interface net.hurstfrost.santa.control.SantaControlService

faceRight

public void faceRight()
Specified by:
faceRight in interface net.hurstfrost.santa.control.SantaControlService

openMouth

public void openMouth()
Specified by:
openMouth in interface net.hurstfrost.santa.control.SantaControlService

turnLeft

public void turnLeft()
Specified by:
turnLeft in interface net.hurstfrost.santa.control.SantaControlService

turnRight

public void turnRight()
Specified by:
turnRight in interface net.hurstfrost.santa.control.SantaControlService

turnStop

public void turnStop()
Specified by:
turnStop in interface net.hurstfrost.santa.control.SantaControlService

wiggleStart

public void wiggleStart()
Specified by:
wiggleStart in interface net.hurstfrost.santa.control.SantaControlService

wiggleStop

public void wiggleStop()
Specified by:
wiggleStop in interface net.hurstfrost.santa.control.SantaControlService

speak

public void speak(java.lang.String text)
Specified by:
speak in interface net.hurstfrost.santa.control.SantaSoundService

speak

public void speak(java.lang.String text,
                  boolean priveight,
                  java.lang.String voiceId)
Specified by:
speak in interface net.hurstfrost.santa.control.SantaSoundService

getVoices

public java.util.List<net.hurstfrost.santa.sound.SantaVoice> getVoices()
Specified by:
getVoices in interface net.hurstfrost.santa.control.SantaSoundService

getSounds

public java.util.List<java.lang.String> getSounds(java.lang.String query)
Specified by:
getSounds in interface net.hurstfrost.santa.control.SantaSoundService

play

public void play(java.lang.String soundBite)
Specified by:
play in interface net.hurstfrost.santa.control.SantaSoundService

addSoundBite

public void addSoundBite(byte[] audioData,
                         java.lang.String filename,
                         java.lang.String[] tags)
                  throws net.hurstfrost.santa.sound.SoundBiteException
Specified by:
addSoundBite in interface net.hurstfrost.santa.control.SantaSoundService
Throws:
net.hurstfrost.santa.sound.SoundBiteException


Copyright © 2009. All Rights Reserved.