Allow processing of transactions without a servlet in context

This commit is contained in:
James Agnew 2017-01-18 22:18:03 -05:00
parent b80897d16c
commit 495e57b4ec
1 changed files with 6 additions and 2 deletions

View File

@ -667,11 +667,15 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao {
}
protected void markRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) {
theRequestDetails.getUserData().put(PROCESSING_SUB_REQUEST, Boolean.TRUE);
if (theRequestDetails != null) {
theRequestDetails.getUserData().put(PROCESSING_SUB_REQUEST, Boolean.TRUE);
}
}
protected void clearRequestAsProcessingSubRequest(ServletRequestDetails theRequestDetails) {
theRequestDetails.getUserData().remove(PROCESSING_SUB_REQUEST);
if (theRequestDetails != null) {
theRequestDetails.getUserData().remove(PROCESSING_SUB_REQUEST);
}
}
public String parseContentTextIntoWords(IBaseResource theResource) {