Class BoxLangServlet

java.lang.Object
ortus.boxlang.servlet.BoxLangServlet
All Implemented Interfaces:
javax.servlet.Servlet

public class BoxLangServlet extends Object implements javax.servlet.Servlet
The BoxLangServlet is a servlet that can be used to run BoxLang code in a web application.
  • 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:
      init in interface javax.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:
      service in interface javax.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:
      destroy in interface javax.servlet.Servlet
    • getServletConfig

      public javax.servlet.ServletConfig getServletConfig()
      Get the servlet configuration.
      Specified by:
      getServletConfig in interface javax.servlet.Servlet
    • getServletInfo

      public String getServletInfo()
      Get the BoxLang Servlet information.
      Specified by:
      getServletInfo in interface javax.servlet.Servlet