ch.uzh.ifi.attempto.acewiki
Class AceWikiServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by nextapp.echo.webcontainer.WebContainerServlet
              extended by ch.uzh.ifi.attempto.acewiki.AceWikiServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AceWikiServlet
extends nextapp.echo.webcontainer.WebContainerServlet

This servlet class is used by the web server to start AceWiki. In order to run the AceWiki servlet, a web application archive (WAR) file has to be created. See the README file and the web.xml example file.

An APE should be accessibe for the server, either directly installed on local or using socket or web service. See the documentation of APE for more information.

For larger ontologies it might be necessary to adjust the stack and heap size, for example by the following Java VM arguments: -Xmx400m -Xss4m

Author:
Tobias Kuhn, Yu Changyuan
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.WebContainerServlet
nextapp.echo.webcontainer.WebContainerServlet.MultipartRequestWrapper
 
Field Summary
 
Fields inherited from class nextapp.echo.webcontainer.WebContainerServlet
DEBUG_PRINT_MESSAGES_TO_CONSOLE, DISABLE_CACHING, ENABLE_CLIENT_DEBUG_CONSOLE, SERVICE_ID_BLANK_DOCUMENT, SERVICE_ID_DEFAULT, SERVICE_ID_NEW_INSTANCE, SERVICE_ID_PARAMETER, SERVICE_ID_SESSION_EXPIRED
 
Constructor Summary
AceWikiServlet()
          Creates a new AceWiki servlet object.
 
Method Summary
 void init(javax.servlet.ServletConfig config)
          Init the AceWiki servlet, get its Backend from ServletContext according to its config in web.xml or create backend if no 'backend' parameter exist.
 nextapp.echo.app.ApplicationInstance newApplicationInstance()
           
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class nextapp.echo.webcontainer.WebContainerServlet
addInitScript, addInitStyleSheet, doGet, doPost, getActiveConnection, getInitScripts, getInitStyleSheets, getMultipartRequestWrapper, getResourceRegistry, getServiceRegistry, setMultipartRequestWrapper
 
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
 

Constructor Detail

AceWikiServlet

public AceWikiServlet()
Creates a new AceWiki servlet object.

Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Init the AceWiki servlet, get its Backend from ServletContext according to its config in web.xml or create backend if no 'backend' parameter exist.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - servlet config.
Throws:
javax.servlet.ServletException

newApplicationInstance

public nextapp.echo.app.ApplicationInstance newApplicationInstance()
Specified by:
newApplicationInstance in class nextapp.echo.webcontainer.WebContainerServlet

process

protected void process(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws java.io.IOException,
                       javax.servlet.ServletException
Overrides:
process in class nextapp.echo.webcontainer.WebContainerServlet
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright 2008-2012, AceWiki developers