Package org.glassfish.grizzly.servlet
Class DefaultServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.glassfish.grizzly.servlet.DefaultServlet
- All Implemented Interfaces:
Servlet,ServletConfig,Serializable
This servlet will be invoked when no other servlet matches the request URI.
TODO: This needs more work. Review the DefaultServlet implementations included with popular servlet containers to get
an understanding of what may be added
- Since:
- 2.2
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultServlet(StaticHttpHandlerBase staticHttpHandlerBase) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidservice(HttpServletRequest req, HttpServletResponse resp) Receives standard HTTP requests from the publicservicemethod and dispatches them to thedoXXX methods defined in this class.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
DefaultServlet
-
-
Method Details
-
service
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException Description copied from class:HttpServletReceives standard HTTP requests from the publicservicemethod and dispatches them to thedoXXX methods defined in this class. This method is an HTTP-specific version of theServlet.service(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse)method. There's no need to override this method.- Overrides:
servicein classHttpServlet- Parameters:
req- theHttpServletRequestobject that contains the request the client made of the servletresp- theHttpServletResponseobject that contains the response the servlet returns to the client- Throws:
ServletException- if the HTTP request cannot be handledIOException- if an input or output error occurs while the servlet is handling the HTTP request- See Also:
-