consciouscode.seedling.webConsole
Class ConsoleServlet

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

public class ConsoleServlet
extends GenericNode
implements javax.servlet.Servlet

A servlet for browsing a Seedling container.

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
ConsoleServlet()
           
 
Method Summary
 void destroy()
           
 boolean getConsoleDebuggingEnabled()
           
 NodeIndex getNodeIndex()
           
 javax.servlet.ServletConfig getServletConfig()
           
 String getServletInfo()
           
 String getStaticResourcePath()
           
 void init(javax.servlet.ServletConfig arg0)
           
 boolean isPropertyEditingEnabled()
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
           
 void setConsoleDebuggingEnabled(boolean enabled)
           
 void setNodeIndex(NodeIndex index)
           
 void setPropertyEditingEnabled(boolean enabled)
           
 void setStaticResourcePath(String path)
          Sets the URI path to the console's static resources, relative to the servlet's context.
 
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

ConsoleServlet

public ConsoleServlet()
Method Detail

getNodeIndex

public NodeIndex getNodeIndex()

setNodeIndex

public void setNodeIndex(NodeIndex index)

getStaticResourcePath

public String getStaticResourcePath()

setStaticResourcePath

public void setStaticResourcePath(String path)
Sets the URI path to the console's static resources, relative to the servlet's context. If the path starts with '/' then the path is treated as absolute and the context is ignored.

Parameters:
path - may be null or empty.

isPropertyEditingEnabled

public boolean isPropertyEditingEnabled()

setPropertyEditingEnabled

public void setPropertyEditingEnabled(boolean enabled)

getConsoleDebuggingEnabled

public boolean getConsoleDebuggingEnabled()

setConsoleDebuggingEnabled

public void setConsoleDebuggingEnabled(boolean enabled)

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.