com.timeindexing.servlet
Class SecurityCodeServlet

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

public class SecurityCodeServlet
extends SelectServlet

This servlet generates a security code for an index, given a start time and an end time.

The security code is placed in the request attribute "securitycode".
The response is presented through /security/show_code.jsp.

If an exception occurs, the exception is placed in the request attribute "exception".
The response is presented through /security/select_exception.jsp.

See Also:
Serialized Form

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

Constructor Detail

SecurityCodeServlet

public SecurityCodeServlet()
Method Detail

doPlayBack

public void doPlayBack(HttpServletRequest request,
                       HttpServletResponse response)
                throws java.io.IOException
Do the playout functionality. In this case, it is to show the security code for a selection.

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

setContentType

protected void setContentType()
Set the content type.

Overrides:
setContentType in class SelectServlet