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:
- java.io.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 java.lang.String utf8
- See Also:
- Constant Field Values
MODE_PARAMETER
public static final java.lang.String MODE_PARAMETER
- See Also:
- Constant Field Values
DEFAULT_CODE_PAGE
public static final java.lang.String DEFAULT_CODE_PAGE
- See Also:
- Constant Field Values
baseWebappDirectory
public java.io.File baseWebappDirectory
server
public Service server
initializationSuccessful
protected boolean initializationSuccessful
servletGETParameters
protected java.util.Map<java.lang.String,java.lang.String> servletGETParameters
servletPOSTParameters
protected java.util.Map<java.lang.String,java.lang.String> servletPOSTParameters
servletGETParamOptions
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> servletGETParamOptions
servletPOSTParamOptions
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> servletPOSTParamOptions
SimpleServerServlet
public SimpleServerServlet(boolean localInit)
SimpleServerServlet
public SimpleServerServlet()
getLogger
protected java.util.logging.Logger getLogger()
declareServletParameters
protected void declareServletParameters()
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
java.io.IOException
analyze
protected void analyze(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
init
public void init(java.io.File descriptorFile,
java.io.File serviceSpecFile)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
initServer
protected boolean initServer()
transformResult
public java.lang.String transformResult(Result result,
java.lang.String mode)
getCustomDescription
public java.lang.String getCustomDescription()
constructHtmlDescription
public java.lang.String constructHtmlDescription(java.lang.String servletURL)
constructParameterDescription
public java.lang.String constructParameterDescription()
parameterDescription
public java.lang.String parameterDescription(java.util.Map<java.lang.String,java.lang.String> params,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> options)
constructResultDescription
public java.lang.String constructResultDescription()
getHtmlForm
public java.lang.String getHtmlForm(java.lang.String serverUrl)
Copyright © 2011. All Rights Reserved.