public class ServletUrlResourcePaths extends Object
UrlResourcePaths of Servlets created by ServletAdapterFactory
according to the passed CdsModel.
Define an instance of ServletUrlResourcePaths.UrlResourcePathVisitor to take further action on public endpoints.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServletUrlResourcePaths.UrlResourcePathVisitor
The interface of a visitor
|
| Constructor and Description |
|---|
ServletUrlResourcePaths(com.sap.cds.reflect.CdsModel cdsModel)
Create an instance based on t underlying
CdsModel. |
| Modifier and Type | Method and Description |
|---|---|
Stream<UrlResourcePath> |
getBasePaths()
Returns the base paths found in the model.
|
void |
visit(ServletUrlResourcePaths.UrlResourcePathVisitor visitor)
Starts enumerating all cds servlet paths recursively (depth-first order).
|
public ServletUrlResourcePaths(com.sap.cds.reflect.CdsModel cdsModel)
CdsModel.cdsModel - the CdsModel.public Stream<UrlResourcePath> getBasePaths()
Stream of UrlResourcePath defining the base endpoints.public void visit(ServletUrlResourcePaths.UrlResourcePathVisitor visitor)
visitor - a visitor being notified during iterationCopyright © 2020. All rights reserved.