1 /*2 * SampleVoiceXML3 *4 * Enhydra super-servlet presentation object5 *6 * @Copyright 2000 Lutris Technologies, Inc. All Rights Reserved7 *8 */9 10 package simplevxml.presentation;11 12 import simplevxml.*;13 // Enhydra SuperServlet imports14 import com.lutris.appserver.server.httpPresentation.HttpPresentation;15 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms;16 import com.lutris.appserver.server.httpPresentation.HttpPresentationException;17 import com.lutris.appserver.server.httpPresentation.HttpPresentationOutputStream;18 import com.lutris.appserver.server.httpPresentation.HttpPresentationResponse;19 20 // Standard imports21 import java.io.IOException ;22 import java.util.Date ;23 import java.text.DateFormat ;24 25 public class WelcomePresentation implements HttpPresentation {26 27 28 public void run(HttpPresentationComms comms)29 throws HttpPresentationException, IOException {30 31 WelcomeVoiceXML welcome;32 String now;33 welcome = (WelcomeVoiceXML)comms.xmlcFactory.create(WelcomeVoiceXML.class);34 now = DateFormat.getTimeInstance(DateFormat.SHORT).format(new Date ());35 welcome.setTextTime(now);36 comms.response.writeDOM(welcome);37 38 }39 40 }41