public abstract class BaseQueryParameter extends Object implements IParameter
| Constructor and Description |
|---|
BaseQueryParameter() |
| Modifier and Type | Method and Description |
|---|---|
abstract List<ca.uhn.fhir.rest.api.QualifiedParamList> |
encode(ca.uhn.fhir.context.FhirContext theContext,
Object theObject) |
abstract String |
getName() |
abstract ca.uhn.fhir.rest.api.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(ca.uhn.fhir.context.FhirContext theContext,
List<ca.uhn.fhir.rest.api.QualifiedParamList> theString) |
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<ca.uhn.fhir.rest.api.QualifiedParamList> encode(ca.uhn.fhir.context.FhirContext theContext, Object theObject) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException
ca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionpublic abstract ca.uhn.fhir.rest.api.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(ca.uhn.fhir.context.FhirContext theContext, List<ca.uhn.fhir.rest.api.QualifiedParamList> theString) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException, ca.uhn.fhir.rest.server.exceptions.InvalidRequestException
ca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionpublic Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException, ca.uhn.fhir.rest.server.exceptions.InvalidRequestException
IParametertranslateQueryParametersIntoServerArgument in interface IParametertheRequest - The incoming request objecttheMethodBinding - TODOca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionca.uhn.fhir.rest.server.exceptions.InvalidRequestExceptionCopyright © 2014–2019 University Health Network. All rights reserved.