Package ca.cdr.api.fhirgw.svc
Interface IFhirEndpointGatewayTarget
public interface IFhirEndpointGatewayTarget
-
Method Summary
Modifier and TypeMethodDescriptionReturn the base URL for the serverGet headers to be copied from the incoming client request and added to requests to the target servergetId()
Fetch the ID for this targetProvides a prefix to prepend to resource IDsIf the downstream target uses a fixed endpoint URL which does not match the defined {@link this#getBaseUrl()}, set this value to the target's Fixed URL in order to have gateway trust bundle links which originate from this URL.invokeCreate
(CreateRequest theRequest, ServletRequestDetails theRequestDetails) Invoked to perform a fhir CREATE operationinvokeDelete
(DeleteRequest theRequest, ServletRequestDetails theRequestDetails) Invoked to perform a fhir delete operationinvokeGraphQLOperation
(OperationRequest theRequest, String theGraphQLQuery) Invoked to perform a GraphQL operationinvokeOperation
(OperationRequest theRequest) Invoked to perform a fhir operationinvokePageRequest
(SearchPageRequest theRequest) Invoked to fetch a page of resultsinvokeRead
(ReadRequest theRequest) Invoked to perform a read or vread operationinvokeTransaction
(TransactionRequest theRequest, ServletRequestDetails theRequestDetails) Invoked to perform a FHIR TRANSACTION operationinvokeTypeSearch
(SearchRequest theRequest) Invoked to perform a type level searchinvokeUpdate
(UpdateRequest theRequest, ServletRequestDetails theRequestDetails) Invoked to perform a fhir update operationboolean
Should FHIR Gateway permit this target to fail on search routes? Does not apply to read routes.boolean
Should FHIR Gateway validate the target server's CapabilityStatement with a request to /metadataboolean
Should this target use HTTP POST for all search operationsvoid
setAllowedToFail
(boolean theAllowedToFail) Should FHIR Gateway permit this target to fail on search routes? Does not apply to read routes.void
setBaseUrl
(String theBaseUrl) This method will be called prior tostart()
void
setConnectTimeout
(int theConnectTimeoutSeconds) This method will be called prior tostart()
void
setHeadersToForward
(List<String> theHeadersToForward) Return headers to be copied from the incoming client request and added to requests to the target servervoid
setHttpBasicCredentials
(String theUsername, String thePassword) This method will only be called if HTTP Basic credentials are configured for this endpointvoid
setResourceIdPrefix
(String theResourceIdPrefix) Provides a prefix to prepend to resource IDsvoid
setServerCapabilityStatementValidationEnabled
(boolean theServerCapabilityStatementValidationEnabled) Should FHIR Gateway validate the target server's CapabilityStatement with a request to /metadatavoid
setSocketTimeout
(int theSocketTimeoutSeconds) This method will be called prior tostart()
void
setTargetFixedUrl
(String theTargetFixedUrl) If the downstream target uses a fixed endpoint URL which does not match the defined {@link this#getBaseUrl()}, set this value to the target's Fixed URL in order to have gateway trust bundle links which originate from this URL.void
setUseHttpPostForAllSearches
(boolean theUseHttpPostForAllSearches) Should this target use HTTP POST for all search operationsvoid
start()
This method will be automatically called once before any invoke methodsvoid
stop()
This method will be automatically called when the gateway is shutting down
-
Method Details
-
getId
Fetch the ID for this target -
setConnectTimeout
This method will be called prior tostart()
-
setSocketTimeout
This method will be called prior tostart()
-
setHttpBasicCredentials
This method will only be called if HTTP Basic credentials are configured for this endpointThis method will be called prior to
start()
-
setResourceIdPrefix
Provides a prefix to prepend to resource IDsThis method will be called prior to
start()
-
getResourceIdPrefix
Provides a prefix to prepend to resource IDs -
start
void start()This method will be automatically called once before any invoke methods -
stop
void stop()This method will be automatically called when the gateway is shutting down -
invokeTypeSearch
Invoked to perform a type level search- Parameters:
theRequest
- The details of the search request
-
invokePageRequest
Invoked to fetch a page of results -
invokeRead
Invoked to perform a read or vread operation -
invokeOperation
Invoked to perform a fhir operation -
invokeGraphQLOperation
String invokeGraphQLOperation(OperationRequest theRequest, String theGraphQLQuery) throws IOException, URISyntaxException, org.apache.http.auth.AuthenticationException Invoked to perform a GraphQL operation- Throws:
IOException
URISyntaxException
org.apache.http.auth.AuthenticationException
-
invokeUpdate
Invoked to perform a fhir update operation -
invokeDelete
Invoked to perform a fhir delete operation -
invokeCreate
Invoked to perform a fhir CREATE operation -
invokeTransaction
MethodOutcome invokeTransaction(TransactionRequest theRequest, ServletRequestDetails theRequestDetails) Invoked to perform a FHIR TRANSACTION operation -
getBaseUrl
Return the base URL for the server -
setBaseUrl
This method will be called prior tostart()
-
getHeadersToForward
Get headers to be copied from the incoming client request and added to requests to the target server -
setHeadersToForward
Return headers to be copied from the incoming client request and added to requests to the target server -
isUseHttpPostForAllSearches
boolean isUseHttpPostForAllSearches()Should this target use HTTP POST for all search operationsDefault is
false
-
setUseHttpPostForAllSearches
Should this target use HTTP POST for all search operationsDefault is
false
-
setTargetFixedUrl
If the downstream target uses a fixed endpoint URL which does not match the defined {@link this#getBaseUrl()}, set this value to the target's Fixed URL in order to have gateway trust bundle links which originate from this URL.- Parameters:
theTargetFixedUrl
- The fixed URL of the downstream target.
-
getTargetFixedUrl
If the downstream target uses a fixed endpoint URL which does not match the defined {@link this#getBaseUrl()}, set this value to the target's Fixed URL in order to have gateway trust bundle links which originate from this URL.- Returns:
- the fixed URL of the downstream target.
-
setServerCapabilityStatementValidationEnabled
void setServerCapabilityStatementValidationEnabled(boolean theServerCapabilityStatementValidationEnabled) Should FHIR Gateway validate the target server's CapabilityStatement with a request to /metadataDefault is
true
-
isServerCapabilityStatementValidationEnabled
Should FHIR Gateway validate the target server's CapabilityStatement with a request to /metadataDefault is
true
-
setAllowedToFail
Should FHIR Gateway permit this target to fail on search routes? Does not apply to read routes.Default is
false
-
isAllowedToFail
boolean isAllowedToFail()Should FHIR Gateway permit this target to fail on search routes? Does not apply to read routes.Default is
false
-