Interface ServletEnvironment

All Superinterfaces:
Registration, Registration.Dynamic, ServletConfig, ServletRegistration, ServletRegistration.Dynamic
All Known Implementing Classes:
DefaultServletEnvironment

public interface ServletEnvironment
extends ServletRegistration.Dynamic, ServletConfig
  • Field Details

  • Method Details

    • getLoadOnStartup

      int getLoadOnStartup()
      Get the load on startup.
      Returns:
      the load on startup.
    • getMultipartConfig

      MultipartConfigElement getMultipartConfig()
      Get the multi-part config.
      Returns:
      the multi-part config.
    • getServlet

      Servlet getServlet()
      Get the servlet.
      Returns:
      the servlet.
    • getServletClass

      java.lang.Class<? extends Servlet> getServletClass()
      Get the servlet class.
      Returns:
      the servlet class.
    • getStatus

      int getStatus()
      Get the status.
      Returns:
      the status.
    • getWebApplication

      WebApplication getWebApplication()
      Get the web application.
      Returns:
      the web application.
    • isAsyncSupported

      boolean isAsyncSupported()
      Is async supported.
      Returns:
      true if it is, false otherwise.
    • setClassName

      void setClassName​(java.lang.String className)
      Set the class name.
      Parameters:
      className - the class name.
    • setServlet

      void setServlet​(Servlet servlet)
      Set the servlet.
      Parameters:
      servlet - the servlet.
    • setStatus

      void setStatus​(int status)
      Set the status.
      Parameters:
      status - the status.
    • getUnavailableException

      java.lang.Throwable getUnavailableException()
      The exception that caused this servlet to become unavailable
      Returns:
      the exception.
    • setUnavailableException

      void setUnavailableException​(java.lang.Throwable unavailableException)
      Sets the exception that caused this servlet to become unavailable