public abstract class BaseMethodBinding<T> extends Object implements IClientResponseHandler<T>
| Constructor and Description |
|---|
BaseMethodBinding(Method theMethod,
ca.uhn.fhir.context.FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
static BaseMethodBinding<?> |
bindMethod(Method theMethod,
ca.uhn.fhir.context.FhirContext theContext,
Object theProvider) |
protected ca.uhn.fhir.parser.IParser |
createAppropriateParserForParsingResponse(String theResponseMimeType,
InputStream theResponseInputStream,
int theResponseStatusCode,
List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferTypes) |
List<Class<?>> |
getAllowableParamAnnotations() |
ca.uhn.fhir.context.FhirContext |
getContext() |
Set<String> |
getIncludes() |
Method |
getMethod() |
List<IParameter> |
getParameters() |
Object |
getProvider() |
abstract String |
getResourceName()
Returns the name of the resource this method handles, or
null if this method is not resource specific |
abstract ca.uhn.fhir.rest.api.RestOperationTypeEnum |
getRestOperationType() |
abstract BaseHttpClientInvocation |
invokeClient(Object[] theArgs) |
static boolean |
isResourceInterface(Class<?> theReturnTypeFromMethod) |
boolean |
isSupportsConditional()
Does this method have a parameter annotated with
ConditionalParamBinder. |
boolean |
isSupportsConditionalMultiple()
Does this method support conditional operations over multiple objects (basically for conditional delete)
|
protected ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException |
processNon2xxResponseAndReturnExceptionToThrow(int theStatusCode,
String theResponseMimeType,
InputStream theResponseInputStream) |
void |
setParameters(List<IParameter> theParameters)
For unit tests only
|
static boolean |
verifyMethodHasZeroOrOneOperationAnnotation(Method theNextMethod,
Object... theAnnotations) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvokeClientpublic BaseMethodBinding(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
protected ca.uhn.fhir.parser.IParser createAppropriateParserForParsingResponse(String theResponseMimeType, InputStream theResponseInputStream, int theResponseStatusCode, List<Class<? extends org.hl7.fhir.instance.model.api.IBaseResource>> thePreferTypes)
public List<Class<?>> getAllowableParamAnnotations()
public ca.uhn.fhir.context.FhirContext getContext()
public Set<String> getIncludes()
public List<IParameter> getParameters()
public Object getProvider()
public abstract String getResourceName()
null if this method is not resource specificpublic abstract ca.uhn.fhir.rest.api.RestOperationTypeEnum getRestOperationType()
public abstract BaseHttpClientInvocation invokeClient(Object[] theArgs) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException
ca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionpublic boolean isSupportsConditional()
ConditionalParamBinder. Note that many operations don't actually support this paramter, so this will only return true occasionally.public boolean isSupportsConditionalMultiple()
protected ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException processNon2xxResponseAndReturnExceptionToThrow(int theStatusCode, String theResponseMimeType, InputStream theResponseInputStream)
public void setParameters(List<IParameter> theParameters)
public static BaseMethodBinding<?> bindMethod(Method theMethod, ca.uhn.fhir.context.FhirContext theContext, Object theProvider)
public static boolean isResourceInterface(Class<?> theReturnTypeFromMethod)
public static boolean verifyMethodHasZeroOrOneOperationAnnotation(Method theNextMethod, Object... theAnnotations)
Copyright © 2014–2019 University Health Network. All rights reserved.