|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.speakright.servlet.SRServletRunner
public class SRServletRunner
Manages running a SpeakRight application inside a servlet. Is a lightweight wrapper around SRInstance to remove dependency of application code from it.
| Constructor Summary | |
|---|---|
SRServletRunner(SRFactory factory,
ISRServlet self,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String httpActionName)
|
|
| Method Summary | |
|---|---|
void |
continueApp()
|
SRRunner |
createNewSRRunner(javax.servlet.http.HttpServlet servlet)
Create an SRRunner object for this session (phone call) |
ISpeechPageWriter |
createPageWriter()
Create a page writer that renders SpeakRight output content into VoiceXML or whatever markup text you want. |
java.io.PrintWriter |
getWriter()
Get the print writer that will output the servlet's content (voicexml) |
boolean |
isNewSession()
Is this a new session? A session is considered new if session.isNew is true or if it can't find the saved SRRunner object saved in the session. |
void |
log(java.lang.String msg)
|
SRLogger |
logger()
Get the SpeakRight logger (log4j) |
SRRunner |
runner()
|
void |
startApp(IFlow flow)
Start the SpeakRight app. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SRServletRunner(SRFactory factory,
ISRServlet self,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String httpActionName)
| Method Detail |
|---|
public java.io.PrintWriter getWriter()
throws java.io.IOException
java.io.IOExceptionpublic SRLogger logger()
public void log(java.lang.String msg)
public SRRunner runner()
public boolean isNewSession()
public void startApp(IFlow flow)
throws java.io.IOException
flow - the application flow object
java.io.IOException
public void continueApp()
throws java.io.IOException
java.io.IOExceptionpublic SRRunner createNewSRRunner(javax.servlet.http.HttpServlet servlet)
servlet -
public ISpeechPageWriter createPageWriter()
createPageWriter in interface ISRExtensionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||