public class ResourceParameter extends Object implements IParameter
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceParameter.Mode |
| Constructor and Description |
|---|
ResourceParameter(Class<? extends IResource> theParameterType,
Object theProvider,
ResourceParameter.Mode theMode) |
| Modifier and Type | Method and Description |
|---|---|
static Reader |
createRequestReader(RequestDetails theRequest) |
static Reader |
createRequestReader(RequestDetails theRequest,
Charset charset) |
static Charset |
determineRequestCharset(RequestDetails theRequest) |
ResourceParameter.Mode |
getMode() |
Class<? extends IBaseResource> |
getResourceType() |
void |
initializeTypes(Method theMethod,
Class<? extends Collection<?>> theOuterCollectionType,
Class<? extends Collection<?>> theInnerCollectionType,
Class<?> theParameterType) |
static <T extends IBaseResource> |
loadResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<T> theResourceType) |
static IBaseResource |
parseResourceFromRequest(RequestDetails theRequest,
BaseMethodBinding<?> theMethodBinding,
Class<? extends IBaseResource> theResourceType) |
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 ResourceParameter(Class<? extends IResource> theParameterType, Object theProvider, ResourceParameter.Mode theMode)
public ResourceParameter.Mode getMode()
public Class<? extends IBaseResource> getResourceType()
public void initializeTypes(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
initializeTypes in interface IParameterpublic 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.InternalErrorExceptionInvalidRequestExceptionpublic static Reader createRequestReader(RequestDetails theRequest, Charset charset)
public static Reader createRequestReader(RequestDetails theRequest)
public static Charset determineRequestCharset(RequestDetails theRequest)
public static <T extends IBaseResource> T loadResourceFromRequest(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding, Class<T> theResourceType)
public static IBaseResource parseResourceFromRequest(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding, Class<? extends IBaseResource> theResourceType)
Copyright © 2014–2016 University Health Network. All rights reserved.