public abstract class BaseMethodBinding<T> extends Object implements IClientResponseHandler<T>
| Constructor and Description |
|---|
BaseMethodBinding(Method theMethod,
FhirContext theContext,
Object theProvider) |
| Modifier and Type | Method and Description |
|---|---|
static BaseMethodBinding<?> |
bindMethod(Method theMethod,
FhirContext theContext,
Object theProvider) |
protected IParser |
createAppropriateParserForParsingResponse(String theResponseMimeType,
Reader theResponseReader,
int theResponseStatusCode,
List<Class<? extends IBaseResource>> thePreferTypes) |
List<Class<?>> |
getAllowableParamAnnotations() |
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 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 BaseServerResponseException |
processNon2xxResponseAndReturnExceptionToThrow(int theStatusCode,
String theResponseMimeType,
Reader theResponseReader) |
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, FhirContext theContext, Object theProvider)
protected IParser createAppropriateParserForParsingResponse(String theResponseMimeType, Reader theResponseReader, int theResponseStatusCode, List<Class<? extends IBaseResource>> thePreferTypes)
public List<Class<?>> getAllowableParamAnnotations()
public 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 RestOperationTypeEnum getRestOperationType()
public abstract BaseHttpClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException
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 BaseServerResponseException processNon2xxResponseAndReturnExceptionToThrow(int theStatusCode, String theResponseMimeType, Reader theResponseReader)
public void setParameters(List<IParameter> theParameters)
public static BaseMethodBinding<?> bindMethod(Method theMethod, FhirContext theContext, Object theProvider)
public static boolean isResourceInterface(Class<?> theReturnTypeFromMethod)
public static boolean verifyMethodHasZeroOrOneOperationAnnotation(Method theNextMethod, Object... theAnnotations)
Copyright © 2014–2018 University Health Network. All rights reserved.