Package com.sap.cds.adapter
Interface ServletAdapterFactory
- All Superinterfaces:
AdapterFactory
Specialized factory for creating Servlet adapters.
Implementing classes can get access to the
CdsRuntime by implementing CdsRuntimeAware.-
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.Servletcreate()Creates the adapterServletString[]Returns an array of all paths this servlet should be mapped to.Returns theStreamofUrlResourcePaths that are exposed by the servlet.Methods inherited from interface com.sap.cds.adapter.AdapterFactory
isEnabled
-
Method Details
-
create
jakarta.servlet.Servlet create()Creates the adapterServlet- Specified by:
createin interfaceAdapterFactory- Returns:
- the adapter
Servlet
-
getBasePath
String getBasePath()- Returns:
- the common base path of the servlet
-
getMappings
String[] getMappings()Returns an array of all paths this servlet should be mapped to. Recursive paths are given as/**. In the standard servlet API these are usually given only as/*.- Returns:
- an array of all path mappings
-
getServletPath
UrlResourcePath getServletPath()Returns theStreamofUrlResourcePaths that are exposed by the servlet.- Returns:
- The
UrlResourcePaths
-