Package de.gematik.bbriccs.rest.fd
Class FdBaseRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource>
java.lang.Object
de.gematik.bbriccs.rest.fd.FdBaseRequest<T,R>
- Type Parameters:
R- the type of the expected Response Body
- All Implemented Interfaces:
FdRequest<T,R>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFdBaseRequest(Class<R> expect, HttpRequestMethod method, String fhirResource) protectedFdBaseRequest(Class<R> expect, HttpRequestMethod method, String fhirResource, String resourceId) -
Method Summary
Modifier and TypeMethodDescriptionWhat type of Response-Body does this command expect?final StringThis 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.final HttpRequestMethodDefines which HTTP-Method (for the inner-HTTP Request) shall be used.protected StringThis method returns the last (tailing) part of the URL of the inner-HTTP Request e.g.protected final StringThis method provides the full Path to a Resource for a Request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gematik.bbriccs.rest.fd.FdRequest
getHeaders, getRequestBody
-
Field Details
-
queryParameters
-
headerParameters
-
-
Constructor Details
-
FdBaseRequest
-
FdBaseRequest
protected FdBaseRequest(Class<R> expect, HttpRequestMethod method, String fhirResource, String resourceId)
-
-
Method Details
-
getFhirResource
This is required (mostly for VAU) to define on which resource the request shall be executed.- Specified by:
getFhirResourcein interfaceFdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource> - Returns:
- the FHIR Resource
-
getResourcePath
This method provides the full Path to a Resource for a Request. Example: /Task if Task was provided without an ID and /Task/[id] if an ID was provided- Returns:
- the Path
-
getRequestLocator
This method returns the last (tailing) part of the URL of the inner-HTTP Request e.g. /Task/[id] or /Communication?[queryParameter]- Specified by:
getRequestLocatorin interfaceFdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource> - Returns:
- the tailing part of the URL which combines to full URL like [baseUrl][tailing Part]
-
getMethod
Defines which HTTP-Method (for the inner-HTTP Request) shall be used. -
getHeaderParameters
Get a Map of required Header-Parameters for this specific command. By Default, an empty map is returned, which indicates no Header-Parameters- Specified by:
getHeaderParametersin interfaceFdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource> - Returns:
- map of Header-Parameters
-
expectedResponseType
What type of Response-Body does this command expect? This methode is required for the FHIR-Codec to decode the Response-Body to a concrete FHIR-Resource- Specified by:
expectedResponseTypein interfaceFdRequest<T extends org.hl7.fhir.r4.model.Resource,R extends org.hl7.fhir.r4.model.Resource> - Returns:
- the Type of the expected Response-Body
-
getQueryPart
-