/** * This setting may be used to advise the server that any references found in * resources that have any of the base URLs given here will be replaced with * simple local references. * <p> * For example, if the set contains the value <code>http://example.com/base/</code> * and a resource is submitted to the server that contains a reference to * <code>http://example.com/base/Patient/1</code>, the server will automatically * convert this reference to <code>Patient/1</code> * </p> * <p> * Note that this property has different behaviour from {@link DaoConfig#getTreatReferencesAsLogical()} * </p> * * @see #getTreatReferencesAsLogical() */ public Set<String> getTreatBaseUrlsAsLocal() { return myModelConfig.getTreatBaseUrlsAsLocal(); }
if (!myModelConfig.getTreatBaseUrlsAsLocal().contains(baseUrl) && !myModelConfig.isAllowExternalReferences()) { String msg = myContext.getLocalizer().getMessage(BaseSearchParamExtractor.class, "externalReferenceNotAllowed", nextId.getValue()); throw new InvalidRequestException(msg);
/** * This setting may be used to advise the server that any references found in * resources that have any of the base URLs given here will be replaced with * simple local references. * <p> * For example, if the set contains the value <code>http://example.com/base/</code> * and a resource is submitted to the server that contains a reference to * <code>http://example.com/base/Patient/1</code>, the server will automatically * convert this reference to <code>Patient/1</code> * </p> * <p> * Note that this property has different behaviour from {@link DaoConfig#getTreatReferencesAsLogical()} * </p> * * @see #getTreatReferencesAsLogical() */ public Set<String> getTreatBaseUrlsAsLocal() { return myModelConfig.getTreatBaseUrlsAsLocal(); }