com.timeindexing.servlet
Class MP3StreamServlet

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

public class MP3StreamServlet
extends SelectServlet

This servlet returns a response that causes the receiver to stream MP3 data.

The mime type of the reposnse is "audio/x-mpegurl".
The associate file name is "download.m3u".

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.timeindexing.servlet.SelectServlet
SelectServlet.WriterOutputStream
 
Constructor Summary
MP3StreamServlet()
           
 
Method Summary
 void doPlayBack(HttpServletRequest request, HttpServletResponse response)
          Playback the data.
protected  java.lang.String encode(java.lang.String httpdata)
          Some URL encoding.
 
Methods inherited from class com.timeindexing.servlet.SelectServlet
doGet, empty, isBrowser, isSecurityCodeOn, postPlaybackError, prePlaybackError, setContentType, setContentType, setFilename, setFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MP3StreamServlet

public MP3StreamServlet()
Method Detail

doPlayBack

public void doPlayBack(HttpServletRequest request,
                       HttpServletResponse response)
                throws java.io.IOException
Description copied from class: SelectServlet
Playback the data.

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

encode

protected java.lang.String encode(java.lang.String httpdata)
Some URL encoding.