Package ca.uhn.fhir.rest.client.method
Class BaseResourceReturningMethodBinding
java.lang.Object
ca.uhn.fhir.rest.client.method.BaseMethodBinding<Object>
ca.uhn.fhir.rest.client.method.BaseResourceReturningMethodBinding
- All Implemented Interfaces:
IClientResponseHandler<Object>
- Direct Known Subclasses:
ConformanceMethodBinding
,HistoryMethodBinding
,OperationMethodBinding
,PageMethodBinding
,ReadMethodBinding
,SearchMethodBinding
,TransactionMethodBinding
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static enum
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseResourceReturningMethodBinding
(Class<?> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the resource this method handles, ornull
if this method is not resource specificprotected abstract 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)invokeClient
(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String, List<String>> theHeaders) protected boolean
Should the response include a Content-Location header.protected void
setResourceName
(String theResourceName) Methods inherited from class ca.uhn.fhir.rest.client.method.BaseMethodBinding
bindMethod, createAppropriateParserForParsingResponse, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRestOperationType, invokeClient, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotation
-
Field Details
-
ALLOWED_PARAMS
-
-
Constructor Details
-
BaseResourceReturningMethodBinding
public BaseResourceReturningMethodBinding(Class<?> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
-
-
Method Details
-
getMethodReturnType
-
getResourceName
Description copied from class:BaseMethodBinding
Returns the name of the resource this method handles, ornull
if this method is not resource specific- Specified by:
getResourceName
in classBaseMethodBinding<Object>
-
getResponseBundleType
If the response is a bundle, this type will be placed in the root of the bundle (can be null) -
getReturnType
-
invokeClient
public Object invokeClient(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String, List<String>> theHeaders) throws IOException- Throws:
IOException
-
isAddContentLocationHeader
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 -
setResourceName
-