com.timeindexing.servlet
Class FlashStreamDownloadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.timeindexing.servlet.SelectServlet
com.timeindexing.servlet.FlashStreamDownloadServlet
- All Implemented Interfaces:
- IndexPrimaryEventListener, java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig
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
|
Method Summary |
protected int |
doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
Playback the data. |
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 |
protected void |
setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String type)
Set the content type. |
| Methods inherited from class com.timeindexing.servlet.SelectServlet |
allocateSelecter, closed, committed, created, doGet, empty, init, isBrowser, isSecurityCodeOn, opened, postPlaybackError, prePlaybackError, 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 |
FlashStreamDownloadServlet
public FlashStreamDownloadServlet()
doPlayBack
protected int doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
throws java.io.IOException
- Playback the data.
- Overrides:
doPlayBack in class SelectServlet
- Returns:
- the status of doing the playback
- Throws:
java.io.IOException
setContentType
protected void setContentType(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String type)
- Set the content type.
- Overrides:
setContentType in class SelectServlet
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
Timeindexing 2008