Package ca.uhn.fhir.rest.server.method
Class OperationParameter
- java.lang.Object
-
- ca.uhn.fhir.rest.server.method.OperationParameter
-
- All Implemented Interfaces:
IParameter
public class OperationParameter extends Object implements IParameter
-
-
Constructor Summary
Constructors Constructor Description OperationParameter(ca.uhn.fhir.context.FhirContext theCtx, String theOperationName, ca.uhn.fhir.rest.annotation.OperationParam theOperationParam)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ca.uhn.fhir.context.FhirContextgetContext()intgetMax()intgetMin()StringgetName()StringgetParamType()StringgetSearchParamType()voidinitializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)OperationParametersetConverter(ca.uhn.fhir.rest.server.method.OperationParameter.IOperationParamConverter theConverter)static voidthrowInvalidMode(String paramValues)ObjecttranslateQueryParametersIntoServerArgument(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.
-
-
-
Constructor Detail
-
OperationParameter
public OperationParameter(ca.uhn.fhir.context.FhirContext theCtx, String theOperationName, ca.uhn.fhir.rest.annotation.OperationParam theOperationParam)
-
-
Method Detail
-
getContext
protected ca.uhn.fhir.context.FhirContext getContext()
-
getMax
public int getMax()
-
getMin
public int getMin()
-
getParamType
public String getParamType()
-
getSearchParamType
public String getSearchParamType()
-
initializeTypes
public void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
- Specified by:
initializeTypesin interfaceIParameter
-
setConverter
public OperationParameter setConverter(ca.uhn.fhir.rest.server.method.OperationParameter.IOperationParamConverter theConverter)
-
translateQueryParametersIntoServerArgument
public Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException, ca.uhn.fhir.rest.server.exceptions.InvalidRequestException
Description copied from interface:IParameterThis 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. Note that all received data is passed to this method, but the expectation is that not necessarily that all data is used by every parameter.- Specified by:
translateQueryParametersIntoServerArgumentin interfaceIParameter- Parameters:
theRequest- The incoming request objecttheMethodBinding- TODO- Returns:
- Returns the argument object as it will be passed to the IResourceProvider method.
- Throws:
ca.uhn.fhir.rest.server.exceptions.InternalErrorExceptionca.uhn.fhir.rest.server.exceptions.InvalidRequestException
-
throwInvalidMode
public static void throwInvalidMode(String paramValues)
-
-