Class SpringRestServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.apache.juneau.rest.servlet.RestServlet
org.apache.juneau.rest.springboot.SpringRestServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
- Direct Known Subclasses:
BasicSpringRestServlet
Subclass of a
RestServlet
that hooks into Spring Boot for using Spring Beans.
Notes:
-
Users will typically extend from
BasicSpringRestServlet
orBasicSpringRestServletGroup
instead of this class directly.
See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBeanStore
(Optional<BeanStore> parent) Hook into Spring bean injection framework.Methods inherited from class org.apache.juneau.rest.servlet.RestServlet
destroy, doLog, getContext, getPath, getRequest, getResponse, init, log, log, service, setContext
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SpringRestServlet
public SpringRestServlet()
-
-
Method Details
-
createBeanStore
Hook into Spring bean injection framework.- Parameters:
parent
- Optional parent resource.- Returns:
- A BeanStore that retrieves beans from the Spring Boot app context.
-