recognizer
Class RecognitionServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
recognizer.RecognitionServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class RecognitionServlet
- extends javax.servlet.http.HttpServlet
- Author:
- Francois Mairesse
Servlet interface to the PersonalityRecognizer. It extracts parameters from a
web form, calls the recognizer and produces HTML output.
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.http.HttpServlet |
|
Fields inherited from class javax.servlet.GenericServlet |
|
Method Summary |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
init(javax.servlet.ServletConfig config)
|
private void |
printHTML(javax.servlet.http.HttpServletResponse response,
java.lang.String text,
double[] scores,
weka.classifiers.Classifier[] models,
java.util.Hashtable features,
java.lang.String user_id)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, 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 |
classDir
private java.lang.String classDir
fs
private final java.lang.String fs
recognizer
private PersonalityRecognizer recognizer
RecognitionServlet
public RecognitionServlet()
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
printHTML
private void printHTML(javax.servlet.http.HttpServletResponse response,
java.lang.String text,
double[] scores,
weka.classifiers.Classifier[] models,
java.util.Hashtable features,
java.lang.String user_id)
throws java.lang.Exception
- Throws:
java.lang.Exception