Package de.gematik.bbriccs.rest.fd
Interface FdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource>
- All Known Implementing Classes:
FdBaseRequest
public interface FdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource>
-
Method Summary
Modifier and TypeMethodDescriptionThis is required (mostly for VAU) to define on which resource the request shall be executed.Get a Map of required Header-Parameters for this specific command.default List<HttpHeader>Defines which HTTP-Method (for the underlying HTTP Request) shall be used.Get the FHIR-Resource for the Request-Body (of the inner-HTTP)This method returns the last (tailing) part of the URL of the inner-HTTP Request e.g.
-
Method Details
-
getFhirResource
String getFhirResource()This is required (mostly for VAU) to define on which resource the request shall be executed. E.g. [baseUrl]/[resourcePath]- Returns:
- the FHIR Resource
-
getRequestLocator
String getRequestLocator()This method returns the last (tailing) part of the URL of the inner-HTTP Request e.g. /Task/[id] or /Communication?[queryParameter]- Returns:
- the tailing part of the URL which combines to full URL like [baseUrl][tailing Part]
-
getMethod
HttpRequestMethod getMethod()Defines which HTTP-Method (for the underlying HTTP Request) shall be used.- Returns:
- the HTTP-Method of the Command
-
getHeaderParameters
Get a Map of required Header-Parameters for this specific command. By Default, an empty map is returned, which indicates no Header-Parameters- Returns:
- map of Header-Parameters
-
getHeaders
-
getRequestBody
T getRequestBody()Get the FHIR-Resource for the Request-Body (of the inner-HTTP)- Returns:
- aa FHIR-Resource for the Request-Body. If no request body should be provided, an
EmptyResourcemust be provided
-
expectedResponseType
-