Package ca.uhn.fhir.rest.client.method
Class SearchMethodBinding
java.lang.Object
ca.uhn.fhir.rest.client.method.BaseMethodBinding<Object>
ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
ca.uhn.fhir.rest.client.method.SearchMethodBinding
- All Implemented Interfaces:
IClientResponseHandler<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
BaseResourceReturningMethodBinding.MethodReturnTypeEnum, BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle, BaseResourceReturningMethodBinding.ReturnTypeEnum
-
Field Summary
Fields inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
ALLOWED_PARAMS
-
Constructor Summary
ConstructorDescriptionSearchMethodBinding
(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseHttpClientInvocation
createSearchInvocation
(ca.uhn.fhir.context.FhirContext theContext, String theSearchUrl, ca.uhn.fhir.rest.client.api.UrlSourceEnum theUrlSource, Map<String, List<String>> theParams) static BaseHttpClientInvocation
createSearchInvocation
(ca.uhn.fhir.context.FhirContext theContext, String theResourceName, Map<String, List<String>> theParameters, org.hl7.fhir.instance.model.api.IIdType theId, String theCompartmentName, ca.uhn.fhir.rest.api.SearchStyleEnum theSearchStyle) protected ca.uhn.fhir.model.valueset.BundleTypeEnum
If the response is a bundle, this type will be placed in the root of the bundle (can be null)ca.uhn.fhir.rest.api.RestOperationTypeEnum
invokeClient
(Object[] theArgs) protected boolean
Should the response include a Content-Location header.toString()
Methods inherited from class ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
getMethodReturnType, getResourceName, invokeClient, setResourceName
Methods inherited from class ca.uhn.fhir.rest.client.method.BaseMethodBinding
bindMethod, createAppropriateParserForParsingResponse, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotation
-
Constructor Details
-
SearchMethodBinding
public SearchMethodBinding(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
getDescription
-
getResponseBundleType
Description copied from class:BaseResourceReturningMethodBinding
If the response is a bundle, this type will be placed in the root of the bundle (can be null)- Specified by:
getResponseBundleType
in classBaseResourceReturningMethodBinding
-
getRestOperationType
- Specified by:
getRestOperationType
in classBaseMethodBinding<Object>
-
getReturnType
- Specified by:
getReturnType
in classBaseResourceReturningMethodBinding
-
invokeClient
public BaseHttpClientInvocation invokeClient(Object[] theArgs) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException - Specified by:
invokeClient
in classBaseMethodBinding<Object>
- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorException
-
isAddContentLocationHeader
Description copied from class:BaseResourceReturningMethodBinding
Should the response include a Content-Location header. Search method bunding (and any others?) may override this to disable the content-location, since it doesn't make sense- Overrides:
isAddContentLocationHeader
in classBaseResourceReturningMethodBinding
-
toString
-
createSearchInvocation
public static BaseHttpClientInvocation createSearchInvocation(ca.uhn.fhir.context.FhirContext theContext, String theSearchUrl, ca.uhn.fhir.rest.client.api.UrlSourceEnum theUrlSource, Map<String, List<String>> theParams) -
createSearchInvocation
public static BaseHttpClientInvocation createSearchInvocation(ca.uhn.fhir.context.FhirContext theContext, String theResourceName, Map<String, List<String>> theParameters, org.hl7.fhir.instance.model.api.IIdType theId, String theCompartmentName, ca.uhn.fhir.rest.api.SearchStyleEnum theSearchStyle)
-