Package ca.uhn.fhir.rest.server.method
Class SortParameter
java.lang.Object
ca.uhn.fhir.rest.server.method.SortParameter
- All Implemented Interfaces:
IParameter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
createSortStringDstu3
(ca.uhn.fhir.rest.api.SortSpec ss) void
initializeTypes
(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType) 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.
-
Constructor Details
-
SortParameter
-
-
Method Details
-
initializeTypes
public void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType) - Specified by:
initializeTypes
in interfaceIParameter
-
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:IParameter
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.- Specified by:
translateQueryParametersIntoServerArgument
in 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.InternalErrorException
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException
-
createSortStringDstu3
-