Package ca.cdr.api.fhirgw.model
Class BaseRequest<T extends IBaseRequest>
java.lang.Object
ca.cdr.api.fhirgw.model.BaseRequest<T>
- All Implemented Interfaces:
IBaseRequest
- Direct Known Subclasses:
CreateRequest
,DeleteRequest
,OperationRequest
,ReadRequest
,SearchPageRequest
,SearchRequest
,TransactionRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalHeader
(String theName, String theValue) Adds an HTTP header that will be added to the request sent to the targetboolean
jakarta.servlet.http.HttpServletRequest
boolean
isSkip()
Should the request be skipped? If this flag is set in an interceptor prior to calling a target server, that server will be skipped.void
setClientInterceptor
(IClientInterceptor theClientInterceptor) setResourceType
(String theResourceType) void
setServerCapabilityStatementValidationEnabled
(boolean theServerCapabilityStatementValidationEnabled) setServletRequest
(jakarta.servlet.http.HttpServletRequest theServletRequest) void
setSkip
(boolean theSkip) Should the request be skipped? If this flag is set in an interceptor prior to calling a target server, that server will be skipped.
-
Constructor Details
-
BaseRequest
public BaseRequest()Constructor -
BaseRequest
Copy constructor
-
-
Method Details
-
isSkip
Should the request be skipped? If this flag is set in an interceptor prior to calling a target server, that server will be skipped.- Specified by:
isSkip
in interfaceIBaseRequest
-
setSkip
Should the request be skipped? If this flag is set in an interceptor prior to calling a target server, that server will be skipped. -
getServerCapabilityStatementValidationEnabled
- Specified by:
getServerCapabilityStatementValidationEnabled
in interfaceIBaseRequest
-
setServerCapabilityStatementValidationEnabled
public void setServerCapabilityStatementValidationEnabled(boolean theServerCapabilityStatementValidationEnabled) -
getAdditionalHeaders
- Specified by:
getAdditionalHeaders
in interfaceIBaseRequest
-
addAdditionalHeader
Adds an HTTP header that will be added to the request sent to the target- Parameters:
theName
- The header name (must not benull
or empty)theValue
- The header value (must not benull
)
-
getServletRequest
- Specified by:
getServletRequest
in interfaceIBaseRequest
-
setServletRequest
- Specified by:
setServletRequest
in interfaceIBaseRequest
-
getResourceType
- Specified by:
getResourceType
in interfaceIBaseRequest
-
setResourceType
- Specified by:
setResourceType
in interfaceIBaseRequest
-
getClientInterceptor
- Specified by:
getClientInterceptor
in interfaceIBaseRequest
-
setClientInterceptor
-