com.timeindexing.servlet
Class MPEGDownloadServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.timeindexing.servlet.SelectServlet
              extended by com.timeindexing.servlet.MPEGDownloadServlet
All Implemented Interfaces:
IndexPrimaryEventListener, java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MPEGDownloadServlet
extends SelectServlet

This servlet returns downloads MPEG2 data.

The mime type of the reposnse is "video/mpeg".
The associate file name is "download.mpg".

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.timeindexing.servlet.SelectServlet
SelectServlet.WriterOutputStream
 
Constructor Summary
MPEGDownloadServlet()
           
 
Method Summary
protected  Selecter allocateSelecter(java.lang.String filename, java.io.OutputStream out)
          allocate a Selecter
protected  java.lang.String fileNameGenerator(IndexProperties properties)
          This filename generator, takes the arguments and generates a useful filename.
protected  java.lang.String getContentType()
          Get the content type.
 
Methods inherited from class com.timeindexing.servlet.SelectServlet
closed, committed, created, doGet, doPlayBack, empty, init, isBrowser, isSecurityCodeOn, opened, postPlaybackError, prePlaybackError, setContentType, setFilename, viewAdded, viewRemoved
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPEGDownloadServlet

public MPEGDownloadServlet()
Method Detail

getContentType

protected java.lang.String getContentType()
Get the content type.

Overrides:
getContentType in class SelectServlet

fileNameGenerator

protected java.lang.String fileNameGenerator(IndexProperties properties)
This filename generator, takes the arguments and generates a useful filename. Returns filename-0:10-to-1:23.

Overrides:
fileNameGenerator in class SelectServlet

allocateSelecter

protected Selecter allocateSelecter(java.lang.String filename,
                                    java.io.OutputStream out)
allocate a Selecter

Overrides:
allocateSelecter in class SelectServlet


Timeindexing 2008