com.timeindexing.servlet
Class FlashStreamDownloadServlet

java.lang.Object
  extended byHttpServlet
      extended bycom.timeindexing.servlet.SelectServlet
          extended bycom.timeindexing.servlet.FlashStreamDownloadServlet

public class FlashStreamDownloadServlet
extends SelectServlet

This servlet returns downloads FlashStream data.

The mime type of the reposnse is "audio/x-mpeg", unless the browser is IE, then reposnse is "audio/mp3".
The associate file name is "download.mp3".

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.timeindexing.servlet.SelectServlet
SelectServlet.WriterOutputStream
 
Constructor Summary
FlashStreamDownloadServlet()
           
 
Method Summary
protected  void doPlayBack(HttpServletRequest request, HttpServletResponse response)
          Playback the data.
protected  void setContentType()
          Set the content type.
protected  void setFilename()
          Set the filename for downloads.
 
Methods inherited from class com.timeindexing.servlet.SelectServlet
doGet, empty, isBrowser, isSecurityCodeOn, postPlaybackError, prePlaybackError, setContentType, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlashStreamDownloadServlet

public FlashStreamDownloadServlet()
Method Detail

doPlayBack

protected void doPlayBack(HttpServletRequest request,
                          HttpServletResponse response)
                   throws java.io.IOException
Playback the data.

Overrides:
doPlayBack in class SelectServlet
Throws:
java.io.IOException

setContentType

protected void setContentType()
Set the content type.

Overrides:
setContentType in class SelectServlet

setFilename

protected void setFilename()
Set the filename for downloads.

Overrides:
setFilename in class SelectServlet