Package net.officefloor.web.rest.build
Interface RestPathContext
- All Known Implementing Classes:
RestPathContextImpl
public interface RestPathContext
Context for the REST path.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetConfiguration(String itemName, Class<T> type) Obtains additional configuration for the REST path.Obtains the parentRestPathContext.getPath()Obtains the path.
-
Method Details
-
getPath
String getPath()Obtains the path.- Returns:
- Path.
-
getParentPath
RestPathContext getParentPath()Obtains the parentRestPathContext.- Returns:
- Parent
RestPathContextornullif root path.
-
getConfiguration
Obtains additional configuration for the REST path.
This for example is CORS specific configuration for the REST path.
- Type Parameters:
T- Type of configuration.- Parameters:
itemName- Name of configuration item.type- Type of configuration.- Returns:
- Configuration item.
-