public abstract class BaseResourceReturningMethodBinding extends BaseMethodBinding<Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseResourceReturningMethodBinding.MethodReturnTypeEnum |
static class |
BaseResourceReturningMethodBinding.ResourceOrDstu1Bundle |
static class |
BaseResourceReturningMethodBinding.ReturnTypeEnum |
| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
ALLOWED_PARAMS |
| Constructor and Description |
|---|
BaseResourceReturningMethodBinding(Class<?> theReturnResourceType,
Method theMethod,
ca.uhn.fhir.context.FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
BaseResourceReturningMethodBinding.MethodReturnTypeEnum |
getMethodReturnType() |
String |
getResourceName()
Returns the name of the resource this method handles, or
null if this method is not resource specific |
protected abstract ca.uhn.fhir.model.valueset.BundleTypeEnum |
getResponseBundleType()
If the response is a bundle, this type will be placed in the root of the bundle (can be null)
|
abstract BaseResourceReturningMethodBinding.ReturnTypeEnum |
getReturnType() |
Object |
invokeClient(String theResponseMimeType,
InputStream theResponseInputStream,
int theResponseStatusCode,
Map<String,List<String>> theHeaders) |
protected boolean |
isAddContentLocationHeader()
Should the response include a Content-Location header.
|
protected void |
setResourceName(String theResourceName) |
bindMethod, createAppropriateParserForParsingResponse, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRestOperationType, invokeClient, isResourceInterface, isSupportsConditional, isSupportsConditionalMultiple, processNon2xxResponseAndReturnExceptionToThrow, setParameters, verifyMethodHasZeroOrOneOperationAnnotationprotected static final Set<String> ALLOWED_PARAMS
public BaseResourceReturningMethodBinding(Class<?> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
public BaseResourceReturningMethodBinding.MethodReturnTypeEnum getMethodReturnType()
public String getResourceName()
BaseMethodBindingnull if this method is not resource specificgetResourceName in class BaseMethodBinding<Object>protected abstract ca.uhn.fhir.model.valueset.BundleTypeEnum getResponseBundleType()
public abstract BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
public Object invokeClient(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, Map<String,List<String>> theHeaders) throws IOException
IOExceptionprotected boolean isAddContentLocationHeader()
protected void setResourceName(String theResourceName)
Copyright © 2014–2019 University Health Network. All rights reserved.