public abstract class BaseQueryParameter extends Object implements IParameter
| Constructor and Description |
|---|
BaseQueryParameter() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<QualifiedParamList> |
encode(FhirContext theContext,
Object theObject) |
abstract String |
getName() |
abstract RestSearchParameterTypeEnum |
getParamType() |
Set<String> |
getQualifierBlacklist()
Returns null if blacklist is "none"
|
Set<String> |
getQualifierWhitelist()
Returns null if whitelist is "all"
|
abstract boolean |
handlesMissing()
Parameter should return true if
parse(FhirContext, List) should be called even if the query string
contained no values for the given parameter |
void |
initializeTypes(Method theMethod,
Class<? extends Collection<?>> theOuterCollectionType,
Class<? extends Collection<?>> theInnerCollectionType,
Class<?> theParameterType) |
abstract boolean |
isRequired() |
abstract Object |
parse(FhirContext theContext,
List<QualifiedParamList> theString) |
void |
translateClientArgumentIntoQueryArgument(FhirContext theContext,
Object theSourceClientArgument,
Map<String,List<String>> theTargetQueryArguments,
IBaseResource theTargetResource) |
Object |
translateQueryParametersIntoServerArgument(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding)
This server method method takes the data received by the server in an incoming request, and translates that data into a single argument for a server method invocation.
|
public BaseQueryParameter()
public abstract List<QualifiedParamList> encode(FhirContext theContext, Object theObject) throws InternalErrorException
InternalErrorExceptionpublic abstract RestSearchParameterTypeEnum getParamType()
public Set<String> getQualifierBlacklist()
public Set<String> getQualifierWhitelist()
public abstract boolean handlesMissing()
parse(FhirContext, List) should be called even if the query string
contained no values for the given parameterpublic void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
initializeTypes in interface IParameterpublic abstract boolean isRequired()
public abstract Object parse(FhirContext theContext, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException
public void translateClientArgumentIntoQueryArgument(FhirContext theContext, Object theSourceClientArgument, Map<String,List<String>> theTargetQueryArguments, IBaseResource theTargetResource) throws InternalErrorException
translateClientArgumentIntoQueryArgument in interface IParameterInternalErrorExceptionpublic Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws InternalErrorException, InvalidRequestException
IParametertranslateQueryParametersIntoServerArgument in interface IParametertheRequest - The incoming request objecttheMethodBinding - TODOIResourceProvider method.InternalErrorExceptionInvalidRequestExceptionCopyright © 2014–2016 University Health Network. All rights reserved.