Class RawSQLServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
fc.web.servlet.FCBaseServlet
fc.web.servlet.RawSQLServlet
- All Implemented Interfaces:
Servlet, ServletConfig, Serializable
Raw SQL query servlet. Useful to test for and do manual SQL
queries from a web page. Uses the
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX DOES NO AUTHENTICATION, for TESTING only. EXTREMELY dangerous to your data if used by an attacker. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxXXXX
ConnectionMgr
currently installed in the WebApp
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX DOES NO AUTHENTICATION, for TESTING only. EXTREMELY dangerous to your data if used by an attacker. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxXXXX
ONLY install/use this servlet in a DEVELOPMENT environment.
Since this servlet can be invoked as
/servlet/fc.web.RawSQLServlet , and since it's often
desirable to keep the /servlet mapping, this
servlet expects another servlet init parameter called
enable. This servlet will only run if this
parameter is present and it's value is the string
true.
- See Also:
-
Field Summary
Fields inherited from class HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(HttpServletRequest request, HttpServletResponse response) voiddoPost(HttpServletRequest request, HttpServletResponse response) voidinit(ServletConfig conf) Methods inherited from class FCBaseServlet
destroy, getLog, stats, toStringMethods inherited from class HttpServlet
serviceMethods inherited from class GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
RawSQLServlet
public RawSQLServlet()
-
-
Method Details
-
init
- Specified by:
initin interfaceServlet- Overrides:
initin classFCBaseServlet- Throws:
ServletException
-
doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Throws:
ServletExceptionIOException
-
doPost
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException - Throws:
ServletExceptionIOException
-