com.timeindexing.servlet
Class SecurityCodeServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.timeindexing.servlet.SelectServlet
com.timeindexing.servlet.SecurityCodeServlet
- All Implemented Interfaces:
- IndexPrimaryEventListener, java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig
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
|
Method Summary |
int |
doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
Do the playout functionality. |
protected java.lang.String |
getContentType()
Get the content type. |
| Methods inherited from class com.timeindexing.servlet.SelectServlet |
allocateSelecter, closed, committed, created, doGet, empty, fileNameGenerator, 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 |
SecurityCodeServlet
public SecurityCodeServlet()
doPlayBack
public int doPlayBack(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
IndexProperties properties,
int passedInStatus)
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
- Returns:
- the status of doing the playback
- Throws:
java.io.IOException
getContentType
protected java.lang.String getContentType()
- Get the content type.
- Overrides:
getContentType in class SelectServlet
Timeindexing 2008