Class BaseController

java.lang.Object
org.ehrbase.rest.ehrscape.controller.BaseController
Direct Known Subclasses:
CompositionController, TemplateController

public abstract class BaseController extends Object
This base controller implements the basic functionality for all specific controllers. This includes error handling and utils.
  • Field Details

  • Constructor Details

    • BaseController

      public BaseController()
  • Method Details

    • getContextPath

      protected String getContextPath()
    • createLocationUri

      protected String createLocationUri(String... pathSegments)
      Returns a URI for list of segments. The segments are appended to the base path and encoded to ensure safe usage in a URI.
      Parameters:
      pathSegments - List of segments to append to the base URL
      Returns:
      URI for the given base URL and segments
    • deprecationHeaders

      protected org.springframework.http.HttpHeaders deprecationHeaders(String deprecatedPath, String successorVersion)