public class OperationParameter extends Object implements IParameter
| Modifier and Type | Class and Description |
|---|---|
static interface |
OperationParameter.IConverter |
| Constructor and Description |
|---|
OperationParameter(FhirContext theCtx,
String theOperationName,
OperationParam theOperationParam) |
| Modifier and Type | Method and Description |
|---|---|
protected FhirContext |
getContext() |
int |
getMax() |
int |
getMin() |
String |
getName() |
String |
getParamType() |
void |
initializeTypes(Method theMethod,
Class<? extends Collection<?>> theOuterCollectionType,
Class<? extends Collection<?>> theInnerCollectionType,
Class<?> theParameterType) |
OperationParameter |
setConverter(OperationParameter.IConverter theConverter) |
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 OperationParameter(FhirContext theCtx, String theOperationName, OperationParam theOperationParam)
protected FhirContext getContext()
public int getMax()
public int getMin()
public String getParamType()
public void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
initializeTypes in interface IParameterpublic OperationParameter setConverter(OperationParameter.IConverter theConverter)
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.