Interface RestPathContext

All Known Implementing Classes:
RestPathContextImpl

public interface RestPathContext
Context for the REST path.
  • Method Details

    • getPath

      String getPath()
      Obtains the path.
      Returns:
      Path.
    • getParentPath

      RestPathContext getParentPath()
      Obtains the parent RestPathContext.
      Returns:
      Parent RestPathContext or null if root path.
    • getConfiguration

      <T> T getConfiguration(String itemName, Class<T> type)

      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.