Class BaseController
java.lang.Object
org.ehrbase.rest.ehrscape.controller.BaseController
- Direct Known Subclasses:
CompositionController,TemplateController
This base controller implements the basic functionality for all specific controllers. This
includes error handling and utils.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateLocationUri(String... pathSegments) Returns a URI for list of segments.protected org.springframework.http.HttpHeadersdeprecationHeaders(String deprecatedPath, String successorVersion) protected String
-
Field Details
-
TEMPLATE
- See Also:
-
API_ECIS_CONTEXT_PATH_WITH_VERSION
- See Also:
-
COMPOSITION
- See Also:
-
-
Constructor Details
-
BaseController
public BaseController()
-
-
Method Details
-
getContextPath
-
createLocationUri
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
-