public abstract class BaseResourceReturningMethodBinding extends BaseMethodBinding<Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseResourceReturningMethodBinding.MethodReturnTypeEnum |
static class |
BaseResourceReturningMethodBinding.ReturnTypeEnum |
| Constructor and Description |
|---|
BaseResourceReturningMethodBinding(Class<?> theReturnResourceType,
Method theMethod,
ca.uhn.fhir.context.FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
org.hl7.fhir.instance.model.api.IBaseResource |
doInvokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
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 |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest) |
abstract Object |
invokeServer(IRestfulServer<?> theServer,
RequestDetails theRequest,
Object[] theMethodParams) |
protected boolean |
isAddContentLocationHeader()
Should the response include a Content-Location header.
|
protected void |
setResourceName(String theResourceName) |
bindMethod, createAppropriateParserForParsingResponse, createAppropriateParserForParsingServerRequest, createMethodParams, createParametersForServerRequest, getAllowableParamAnnotations, getContext, getIncludes, getMethod, getParameters, getProvider, getRequestIncludesFromParams, getRestOperationType, getRestOperationType, incomingServerRequestMatchesMethod, invokeServerMethod, isGlobalMethod, isSupportsConditional, isSupportsConditionalMultiple, populateActionRequestDetailsForInterceptor, processNon2xxResponseAndReturnExceptionToThrow, setParameters, toResourceList, verifyMethodHasZeroOrOneOperationAnnotationpublic BaseResourceReturningMethodBinding(Class<?> theReturnResourceType, Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
public org.hl7.fhir.instance.model.api.IBaseResource doInvokeServer(IRestfulServer<?> theServer, RequestDetails theRequest)
public BaseResourceReturningMethodBinding.MethodReturnTypeEnum getMethodReturnType()
public String getResourceName()
BaseMethodBindingnull if this method is not resource specificgetResourceName in class BaseMethodBinding<Object>protected void setResourceName(String theResourceName)
protected abstract ca.uhn.fhir.model.valueset.BundleTypeEnum getResponseBundleType()
public abstract BaseResourceReturningMethodBinding.ReturnTypeEnum getReturnType()
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException, IOException
invokeServer in class BaseMethodBinding<Object>ca.uhn.fhir.rest.server.exceptions.BaseServerResponseExceptionIOExceptionpublic abstract Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest, Object[] theMethodParams) throws ca.uhn.fhir.rest.server.exceptions.InvalidRequestException, ca.uhn.fhir.rest.server.exceptions.InternalErrorException
ca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionprotected boolean isAddContentLocationHeader()
Copyright © 2014–2019 University Health Network. All rights reserved.