Package ca.uhn.fhir.rest.server.method
Interface IParameter
-
- All Known Implementing Classes:
BaseQueryParameter,CountParameter,ElementsParameter,GraphQLQueryParameter,OperationParameter,RawParamsParmeter,RequestDetailsParameter,ResourceParameter,SearchParameter,SortParameter,SummaryEnumParameter,TransactionParameter
public interface IParameter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)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.
-
-
-
Method Detail
-
translateQueryParametersIntoServerArgument
Object translateQueryParametersIntoServerArgument(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws ca.uhn.fhir.rest.server.exceptions.InternalErrorException, ca.uhn.fhir.rest.server.exceptions.InvalidRequestException
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. 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.- Parameters:
theRequest- The incoming request objecttheRequestContents- The parsed contents of the incoming request. E.g. if the request was an HTTP POST with a resource in the body, this argument would contain the parsedIResourceinstance.theMethodBinding- 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
-
initializeTypes
void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
-
-