com.microdeveloper.servlets.jndi
Class ListServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.microdeveloper.servlets.jndi.ListServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class ListServlet
- extends HttpServlet
Generates a list of available host server resources built to debug JNDI classes. Note that with some servers a resouce is not fully
disclosed until it is accessed once. Use this class to get the list of resources, their names, and class type.
- Since:
- 1.5
- Version:
- 1.0
- Author:
- MicroDeveloper, Inc.
- See Also:
ConnectionPool
,
Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListServlet
public ListServlet()
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Handles the HTTP
GET
method.
- Overrides:
doGet
in class HttpServlet
- Parameters:
request
- servlet requestresponse
- servlet response
- Throws:
ServletException
- thrown if the response can not be written
IOException
- thrown if the IO can not be opened
processRequest
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Throws:
ServletException
IOException
printTree
void printTree(Context c,
PrintWriter out)
throws NamingException
- Throws:
NamingException
printOpen
void printOpen(PrintWriter out,
String contextName)
printElement
void printElement(PrintWriter out,
String name,
String className)
printClose
void printClose(PrintWriter out)
Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.