fix return url
This commit is contained in:
parent
a262bf64d0
commit
367163c46a
|
@ -62,6 +62,10 @@ public abstract class RequestDetails {
|
|||
return myCompleteUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* The fhir server base url, independant of the query being executed
|
||||
* @return the fhir server base url
|
||||
*/
|
||||
public String getFhirServerBase() {
|
||||
return myFhirServerBase;
|
||||
}
|
||||
|
|
|
@ -657,7 +657,7 @@ public class RestfulServerUtils {
|
|||
|
||||
}
|
||||
|
||||
static Integer tryToExtractNamedParameter(RequestDetails theRequest, String name) {
|
||||
public static Integer tryToExtractNamedParameter(RequestDetails theRequest, String name) {
|
||||
String[] countString = theRequest.getParameters().get(name);
|
||||
Integer count = null;
|
||||
if (countString != null && countString.length > 0 && isNotBlank(countString[0])) {
|
||||
|
|
|
@ -382,6 +382,7 @@ public class Dstu2BundleFactory implements IVersionSpecificBundleFactory {
|
|||
addRootPropertiesToBundle(null, theServerBase, theCompleteUrl, theResult.size(), theBundleType, theResult.getPublished());
|
||||
|
||||
if (theServer.getPagingProvider() != null) {
|
||||
theServerBase = theCompleteUrl.contains("?") ? theCompleteUrl.substring(0, theCompleteUrl.indexOf("?")) : theCompleteUrl;
|
||||
int limit;
|
||||
limit = theLimit != null ? theLimit : theServer.getPagingProvider().getDefaultPageSize();
|
||||
limit = Math.min(limit, theServer.getPagingProvider().getMaximumPageSize());
|
||||
|
|
Loading…
Reference in New Issue