Uses of Class
jakarta.servlet.ServletException
-
Packages that use ServletException Package Description jakarta.servlet The jakarta.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container.jakarta.servlet.http The jakarta.servlet.http package contains a number of classes and interfaces that describe and define the contracts between a servlet class running under the HTTP protocol and the runtime environment provided for an instance of such a class by a conforming servlet container.jakarta.servlet.jsp org.apache.jasper org.apache.jasper.runtime org.apache.jasper.servlet -
-
Uses of ServletException in jakarta.servlet
Subclasses of ServletException in jakarta.servlet Modifier and Type Class Description classUnavailableExceptionDefines an exception that a servlet or filter throws to indicate that it is permanently or temporarily unavailable.Methods in jakarta.servlet that throw ServletException Modifier and Type Method Description <T extends Filter>
TServletContext. createFilter(java.lang.Class<T> c)Create a Filter instance using the given class.<T extends AsyncListener>
TAsyncContext. createListener(java.lang.Class<T> clazz)Creates and returns an AsyncListener object<T extends java.util.EventListener>
TServletContext. createListener(java.lang.Class<T> c)TODO SERVLET3 - Add comments<T extends Servlet>
TServletContext. createServlet(java.lang.Class<T> c)Create an Servlet instance using the given class.voidFilter. doFilter(ServletRequest request, ServletResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain.voidFilterChain. doFilter(ServletRequest request, ServletResponse response)Causes the next filter in the chain to be invoked, or if the calling filter is the last filter in the chain, causes the resource at the end of the chain to be invoked.voidRequestDispatcher. forward(ServletRequest request, ServletResponse response)Forwards a request from a servlet to another resource (servlet, JSP file, or HTML file) on the server.ServletServletContext. getServlet(java.lang.String name)Deprecated.As of Java Servlet API 2.1, with no direct replacement.voidRequestDispatcher. include(ServletRequest request, ServletResponse response)Includes the content of a resource (servlet, JSP page, HTML file) in the response.default voidFilter. init(FilterConfig filterConfig)Called by the web container to indicate to a filter that it is being placed into service.voidGenericFilter. init()Convenience method for sub-classes to save them having to callsuper.init(config).voidGenericFilter. init(FilterConfig filterConfig)voidGenericServlet. init()A convenience method which can be overridden so that there's no need to callsuper.init(config).voidGenericServlet. init(ServletConfig config)Called by the servlet container to indicate to a servlet that the servlet is being placed into service.voidServlet. init(ServletConfig config)Called by the servlet container to indicate to a servlet that the servlet is being placed into service.voidServletContainerInitializer. onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext ctx)Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.abstract voidGenericServlet. service(ServletRequest req, ServletResponse res)Called by the servlet container to allow the servlet to respond to a request.voidServlet. service(ServletRequest req, ServletResponse res)Called by the servlet container to allow the servlet to respond to a request. -
Uses of ServletException in jakarta.servlet.http
Methods in jakarta.servlet.http that throw ServletException Modifier and Type Method Description booleanHttpServletRequest. authenticate(HttpServletResponse response)Triggers the same authentication process as would be triggered if the request is for a resource that is protected by a security constraint.booleanHttpServletRequestWrapper. authenticate(HttpServletResponse response)Triggers the same authentication process as would be triggered if the request is for a resource that is protected by a security constraint.protected voidHttpServlet. doDelete(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle a DELETE request.protected voidHttpFilter. doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain.voidHttpFilter. doFilter(ServletRequest request, ServletResponse response, FilterChain chain)ThedoFiltermethod of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain.protected voidHttpServlet. doGet(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle a GET request.protected voidHttpServlet. doHead(HttpServletRequest req, HttpServletResponse resp)Receives an HTTP HEAD request from the protectedservicemethod and handles the request.protected voidHttpServlet. doOptions(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle an OPTIONS request.protected voidHttpServlet. doPost(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle a POST request.protected voidHttpServlet. doPut(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle a PUT request.protected voidHttpServlet. doTrace(HttpServletRequest req, HttpServletResponse resp)Called by the server (via theservicemethod) to allow a servlet to handle a TRACE request.PartHttpServletRequest. getPart(java.lang.String name)Gets the named Part or null if the Part does not exist.PartHttpServletRequestWrapper. getPart(java.lang.String name)Gets the named Part or null if the Part does not exist.java.util.Collection<Part>HttpServletRequest. getParts()Return a collection of all uploaded Parts.java.util.Collection<Part>HttpServletRequestWrapper. getParts()Return a collection of all uploaded Parts.voidHttpServletRequest. login(java.lang.String username, java.lang.String password)Authenticate the provided user name and password and then associated the authenticated user with the request.voidHttpServletRequestWrapper. login(java.lang.String username, java.lang.String password)Authenticate the provided user name and password and then associated the authenticated user with the request.voidHttpServletRequest. logout()Removes any authenticated user from the request.voidHttpServletRequestWrapper. logout()Removes any authenticated user from the request.protected voidHttpServlet. service(HttpServletRequest req, HttpServletResponse resp)Receives standard HTTP requests from the publicservicemethod and dispatches them to thedoMethod methods defined in this class.voidHttpServlet. service(ServletRequest req, ServletResponse res)Dispatches client requests to the protectedservicemethod.<T extends HttpUpgradeHandler>
THttpServletRequest. upgrade(java.lang.Class<T> httpUpgradeHandlerClass)Start the HTTP upgrade process and create and instance of the provided protocol handler class.<T extends HttpUpgradeHandler>
THttpServletRequestWrapper. upgrade(java.lang.Class<T> httpUpgradeHandlerClass)Start the HTTP upgrade process and create and instance of the provided protocol handler class. -
Uses of ServletException in jakarta.servlet.jsp
Methods in jakarta.servlet.jsp that throw ServletException Modifier and Type Method Description voidHttpJspPage. _jspService(HttpServletRequest request, HttpServletResponse response)The _jspService()method corresponds to the body of the JSP page.abstract voidPageContext. forward(java.lang.String relativeUrlPath)This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application.abstract voidPageContext. handlePageException(java.lang.Exception e)This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP.abstract voidPageContext. handlePageException(java.lang.Throwable t)This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP.abstract voidPageContext. include(java.lang.String relativeUrlPath)Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread.abstract voidPageContext. include(java.lang.String relativeUrlPath, boolean flush)Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread. -
Uses of ServletException in org.apache.jasper
Subclasses of ServletException in org.apache.jasper Modifier and Type Class Description classJasperExceptionBase class for all exceptions generated by the JSP engine. -
Uses of ServletException in org.apache.jasper.runtime
Methods in org.apache.jasper.runtime that throw ServletException Modifier and Type Method Description abstract voidHttpJspBase. _jspService(HttpServletRequest request, HttpServletResponse response)voidJspContextWrapper. forward(java.lang.String relativeUrlPath)voidPageContextImpl. forward(java.lang.String relativeUrlPath)voidJspContextWrapper. handlePageException(java.lang.Exception ex)voidJspContextWrapper. handlePageException(java.lang.Throwable t)voidPageContextImpl. handlePageException(java.lang.Exception ex)voidPageContextImpl. handlePageException(java.lang.Throwable t)voidJspContextWrapper. include(java.lang.String relativeUrlPath)voidJspContextWrapper. include(java.lang.String relativeUrlPath, boolean flush)static voidJspRuntimeLibrary. include(ServletRequest request, ServletResponse response, java.lang.String relativePath, JspWriter out, boolean flush)Perform a RequestDispatcher.include() operation, with optional flushing of the response beforehand.voidPageContextImpl. include(java.lang.String relativeUrlPath)voidPageContextImpl. include(java.lang.String relativeUrlPath, boolean flush)voidHttpJspBase. init(ServletConfig config)voidHttpJspBase. service(HttpServletRequest request, HttpServletResponse response)Entry point into service. -
Uses of ServletException in org.apache.jasper.servlet
Methods in org.apache.jasper.servlet that throw ServletException Modifier and Type Method Description <T extends Filter>
TJspCServletContext. createFilter(java.lang.Class<T> c)<T extends java.util.EventListener>
TJspCServletContext. createListener(java.lang.Class<T> c)<T extends Servlet>
TJspCServletContext. createServlet(java.lang.Class<T> c)ServletJspCServletContext. getServlet(java.lang.String name)Deprecated.This method has been deprecated with no replacementServletJspServletWrapper. getServlet()voidJspServlet. init(ServletConfig config)voidJasperInitializer. onStartup(java.util.Set<java.lang.Class<?>> types, ServletContext context)voidJspServlet. service(HttpServletRequest request, HttpServletResponse response)voidJspServletWrapper. service(HttpServletRequest request, HttpServletResponse response, boolean precompile)
-