Top Description Fields Constructors Methods
org.glassfish.grizzly.servlet

public Class DefaultServlet

extends HttpServlet
Class Inheritance
Imports
java.io.IOException, org.glassfish.grizzly.http.server.Request, .StaticHttpHandlerBase, jakarta.servlet.ServletException, .ServletRequest, .ServletRequestWrapper, jakarta.servlet.http.HttpServlet, .HttpServletRequest, .HttpServletResponse

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

Field Summary

Modifier and TypeField and Description
private final StaticHttpHandlerBase
Inherited from jakarta.servlet.http.HttpServlet:
LEGACY_DO_HEAD

Constructor Summary

AccessConstructor and Description
protected
DefaultServlet(final StaticHttpHandlerBase staticHttpHandlerBase)

Method Summary

Modifier and TypeMethod and Description
protected void
service(final HttpServletRequest req, final HttpServletResponse resp)

Overrides jakarta.servlet.http.HttpServlet.service.

Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class.

private static HttpServletRequestImpl
unwrap(final ServletRequest request)

Inherited from jakarta.servlet.http.HttpServlet:
doDeletedoGetdoHeaddoOptionsdoPatchdoPostdoPutdoTracegetLastModifiedinitisSensitiveHeaderservice

Field Detail

staticHttpHandlerBaseback to summary
private final StaticHttpHandlerBase staticHttpHandlerBase

Constructor Detail

DefaultServletback to summary
protected DefaultServlet(final StaticHttpHandlerBase staticHttpHandlerBase)

Method Detail

serviceback to summary
protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException

Overrides jakarta.servlet.http.HttpServlet.service.

Doc from jakarta.servlet.http.HttpServlet.service.

Receives standard HTTP requests from the public service method and dispatches them to the doXXX methods defined in this class. This method is an HTTP-specific version of the jakarta.servlet.Servlet#service method. There's no need to override this method.

Annotations
@Override
Exceptions
ServletException:
if the HTTP request cannot be handled
IOException:
if an input or output error occurs while the servlet is handling the HTTP request
unwrapback to summary
private static HttpServletRequestImpl unwrap(final ServletRequest request)