Top Description Fields Constructors Methods
org.eclipse.jetty.ee10.servlet

public Class JspPropertyGroupServlet

extends GenericServlet
Class Inheritance
Imports
java.io.IOException, java.util.Locale, jakarta.servlet.GenericServlet, .ServletException, .ServletRequest, .ServletResponse, jakarta.servlet.http.HttpServletRequest, org.eclipse.jetty.server.handler.ContextHandler, org.eclipse.jetty.util.URIUtil, org.eclipse.jetty.util.resource.Resource

Servlet handling JSP Property Group mappings

This servlet is mapped to by any URL pattern for a JSP property group. Resources handled by this servlet that are not directories will be passed directly to the JSP servlet. Resources that are directories will be passed directly to the default servlet.

Field Summary

Modifier and TypeField and Description
private final ContextHandler
private ServletHolder
private ServletHolder
private final ServletHandler
private boolean
public static final String
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
init()

Overrides jakarta.servlet.GenericServlet.init.

A convenience method which can be overridden so that there's no need to call super.init(config).

public void
service(ServletRequest
the ServletRequest object that contains the client's request
req
,
ServletResponse
the ServletResponse object that will contain the servlet's response
res
)

Implements abstract jakarta.servlet.GenericServlet.service.

Implements jakarta.servlet.Servlet.service.

Called by the servlet container to allow the servlet to respond to a request.

Inherited from jakarta.servlet.GenericServlet:
destroygetInitParametergetInitParameterNamesgetServletConfiggetServletContextgetServletInfogetServletNameinitloglog

Field Detail

_contextHandlerback to summary
private final ContextHandler _contextHandler
_dftServletback to summary
private ServletHolder _dftServlet
_jspServletback to summary
private ServletHolder _jspServlet
_servletHandlerback to summary
private final ServletHandler _servletHandler
_starJspMappedback to summary
private boolean _starJspMapped
NAMEback to summary
public static final String NAME
serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.servlet.GenericServlet.serialVersionUID.

Constructor Detail

JspPropertyGroupServletback to summary
public JspPropertyGroupServlet(ContextHandler context, ServletHandler servletHandler)

Method Detail

initback to summary
public void init() throws ServletException

Overrides jakarta.servlet.GenericServlet.init.

Doc from jakarta.servlet.GenericServlet.init.

A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via getServletConfig.

Annotations
@Override
Exceptions
ServletException:
if an exception occurs that interrupts the servlet's normal operation
serviceback to summary
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException

Implements abstract jakarta.servlet.GenericServlet.service.

Implements jakarta.servlet.Servlet.service.

Doc from jakarta.servlet.GenericServlet.service.

Called by the servlet container to allow the servlet to respond to a request. See Servlet#service.

This method is declared abstract so subclasses, such as HttpServlet, must override it.

Parameters
req:ServletRequest

the ServletRequest object that contains the client's request

res:ServletResponse

the ServletResponse object that will contain the servlet's response

Annotations
@Override
Exceptions
ServletException:
if an exception occurs that interferes with the servlet's normal operation occurred
IOException:
if an input or output exception occurs