consciouscode.seedling.wiki
Class WikiServlet

java.lang.Object
  extended by consciouscode.seedling.tree.GenericNode
      extended by consciouscode.seedling.wiki.WikiServlet
All Implemented Interfaces:
LocatableNode, javax.servlet.Servlet

public class WikiServlet
extends GenericNode
implements javax.servlet.Servlet

A ridiculously primitive Wiki servlet.

This servlet will not function properly if installed as the "default servlet" at path "/", since it will not be able to determine where the servlet-part of the URL ends.


Constructor Summary
WikiServlet()
           
 
Method Summary
 void destroy()
           
 javax.servlet.ServletConfig getServletConfig()
           
 String getServletInfo()
           
 void init(javax.servlet.ServletConfig arg0)
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 void setRenderDebug(boolean renderDebug)
           
 void setStateDirectory(String path)
           
 
Methods inherited from class consciouscode.seedling.tree.GenericNode
getLocalRoot, getLog, getNodeLocation, getNodeName, getParentBranch, isLoggingDebug, nodeInstalled, setLog, setLoggingDebug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiServlet

public WikiServlet()
Method Detail

setRenderDebug

public void setRenderDebug(boolean renderDebug)

setStateDirectory

public void setStateDirectory(String path)
Parameters:
path - must be a directory; will be created if it doesn't exist.

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet

getServletConfig

public javax.servlet.ServletConfig getServletConfig()
Specified by:
getServletConfig in interface javax.servlet.Servlet

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet

init

public void init(javax.servlet.ServletConfig arg0)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Specified by:
service in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.