Package com.sap.cds.adapter
Class ServletUrlResourcePaths
java.lang.Object
com.sap.cds.adapter.ServletUrlResourcePaths
A utility to iterate the public
UrlResourcePaths of Servlets created by ServletAdapterFactory
according to the passed CdsRuntime.
Define an instance of ServletUrlResourcePaths.UrlResourcePathVisitor to take further action on public endpoints.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface of a visitor -
Constructor Summary
ConstructorsConstructorDescriptionServletUrlResourcePaths(CdsRuntime runtime) Create an instance based on the underlyingCdsRuntime. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base paths found in the model.voidStarts enumerating all cds servlet paths recursively (depth-first order).
-
Constructor Details
-
ServletUrlResourcePaths
Create an instance based on the underlyingCdsRuntime.- Parameters:
runtime- theCdsRuntime.
-
-
Method Details
-
getBasePaths
Returns the base paths found in the model.- Returns:
- a
StreamofUrlResourcePathdefining the base endpoints.
-
visit
Starts enumerating all cds servlet paths recursively (depth-first order).- Parameters:
visitor- a visitor being notified during iteration
-