org.apache.uima.simpleserver.servlet
Class SimpleServerServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.uima.simpleserver.servlet.SimpleServerServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- ResultMerger
public class SimpleServerServlet
- extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, 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 |
utf8
public static final String utf8
- See Also:
- Constant Field Values
MODE_PARAMETER
public static final String MODE_PARAMETER
- See Also:
- Constant Field Values
DEFAULT_CODE_PAGE
public static final String DEFAULT_CODE_PAGE
- See Also:
- Constant Field Values
baseWebappDirectory
public File baseWebappDirectory
server
public Service server
initializationSuccessful
protected boolean initializationSuccessful
servletGETParameters
protected Map<String,String> servletGETParameters
servletPOSTParameters
protected Map<String,String> servletPOSTParameters
servletGETParamOptions
protected Map<String,Map<String,String>> servletGETParamOptions
servletPOSTParamOptions
protected Map<String,Map<String,String>> servletPOSTParamOptions
SimpleServerServlet
public SimpleServerServlet(boolean localInit)
SimpleServerServlet
public SimpleServerServlet()
getLogger
protected Logger getLogger()
declareServletParameters
protected void declareServletParameters()
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
IOException
analyze
protected void analyze(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
init
public void init(File descriptorFile,
File serviceSpecFile)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
initServer
protected boolean initServer()
transformResult
public String transformResult(Result result,
String mode)
getCustomDescription
public String getCustomDescription()
constructHtmlDescription
public String constructHtmlDescription(String servletURL)
constructParameterDescription
public String constructParameterDescription()
parameterDescription
public String parameterDescription(Map<String,String> params,
Map<String,Map<String,String>> options)
constructResultDescription
public String constructResultDescription()
getHtmlForm
public String getHtmlForm(String serverUrl)
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.