Package ortus.boxlang.servlet
Class BoxLangServlet
java.lang.Object
ortus.boxlang.servlet.BoxLangServlet
- All Implemented Interfaces:
javax.servlet.Servlet
The BoxLangServlet is a servlet that can be used to run BoxLang code in a web application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy the servlet.javax.servlet.ServletConfigGet the servlet configuration.Get the BoxLang Servlet information.voidinit(javax.servlet.ServletConfig config) Initialize the BoxLang servlet.voidservice(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) Service the request.
-
Constructor Details
-
BoxLangServlet
public BoxLangServlet()
-
-
Method Details
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException Initialize the BoxLang servlet.- Specified by:
initin interfacejavax.servlet.Servlet- Parameters:
config- The servlet configuration.- Throws:
javax.servlet.ServletException- If an error occurs during initialization.
-
service
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException, IOException Service the request.- Specified by:
servicein interfacejavax.servlet.Servlet- Parameters:
req- The servlet request.res- The servlet response.- Throws:
javax.servlet.ServletException- If an error occurs during request processing.IOException- If an I/O error occurs.
-
destroy
public void destroy()Destroy the servlet.- Specified by:
destroyin interfacejavax.servlet.Servlet
-
getServletConfig
public javax.servlet.ServletConfig getServletConfig()Get the servlet configuration.- Specified by:
getServletConfigin interfacejavax.servlet.Servlet
-
getServletInfo
Get the BoxLang Servlet information.- Specified by:
getServletInfoin interfacejavax.servlet.Servlet
-