Cleanup
This commit is contained in:
parent
209752cd63
commit
52388c11c1
|
@ -1681,6 +1681,7 @@ public class GenericClient extends BaseClient implements IGenericClient {
|
|||
|
||||
@Override
|
||||
public OUTPUT execute() {
|
||||
Validate.notNull(myReturnBundleType, "Return bundle type mustbe specified");
|
||||
|
||||
Map<String, List<String>> params = getParamMap();
|
||||
|
||||
|
@ -1755,11 +1756,6 @@ public class GenericClient extends BaseClient implements IGenericClient {
|
|||
}
|
||||
}
|
||||
|
||||
if (myReturnBundleType == null && myContext.getVersion().getVersion().isRi()) {
|
||||
throw new IllegalArgumentException("When using the client with HL7.org structures, you must specify "
|
||||
+ "the bundle return type for the client by adding \".returnBundle(org.hl7.fhir.instance.model.Bundle.class)\" to your search method call before the \".execute()\" method");
|
||||
}
|
||||
|
||||
IClientResponseHandler<? extends IBase> binding;
|
||||
binding = new ResourceResponseHandler(myReturnBundleType, getPreferResponseTypes(myResourceType));
|
||||
|
||||
|
|
Loading…
Reference in New Issue