Allow processing of transactions without a servlet in context
@@ -667,12 +667,16 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao {
}
protected void markRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) {
+ if (theRequestDetails != null) {
theRequestDetails.getUserData().put(PROCESSING_SUB_REQUEST, Boolean.TRUE);
}
+ }
protected void clearRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) {
+ if (theRequestDetails != null) {
theRequestDetails.getUserData().remove(PROCESSING_SUB_REQUEST);
}
+ }
public String parseContentTextIntoWords(IBaseResource theResource) {
StringBuilder retVal = new StringBuilder();
