
Package ca.uhn.fhir.rest.param
Class ParameterUtil
- java.lang.Object
-
- ca.uhn.fhir.rest.param.ParameterUtil
-
public class ParameterUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ParameterUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends IIdType>
TconvertIdToType(IIdType value, Class<T> theIdParamType)
static String
escape(String theValue)
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Sectionstatic String
escapeAndJoinOrList(Collection<String> theValues)
static String
escapeAndUrlEncode(String theInput)
AppliesescapeWithDefault(Object)
followed byUrlUtil.escapeUrlParam(String)
static String
escapeWithDefault(Object theValue)
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Sectionstatic Integer
findIdParameterIndex(Method theMethod, FhirContext theContext)
static Integer
findParamAnnotationIndex(Method theMethod, Class<?> toFind)
static Object
fromInteger(Class<?> theType, IntegerDt theArgument)
static boolean
isBindableIntegerType(Class<?> theClass)
static boolean
isIncludeIterate(String theQualifier)
Returns true if the value is :iterate or :recurse (the former name of :iterate) for an _include parameterstatic int
nonEscapedIndexOf(String theString, char theCharacter)
static String
parseETagValue(String value)
static IQueryParameterAnd<?>
parseQueryParams(FhirContext theContext, RuntimeSearchParam theParamDef, String theUnqualifiedParamName, List<QualifiedParamList> theParameters)
This is a utility method intended provided to help the JPA module.static IQueryParameterAnd<?>
parseQueryParams(FhirContext theContext, RestSearchParameterTypeEnum paramType, String theUnqualifiedParamName, List<QualifiedParamList> theParameters)
This is a utility method intended provided to help the JPA module.static IQueryParameterOr<?>
singleton(IQueryParameterType theParam, String theParamName)
static String
stripModifierPart(String theParam)
Removes :modifiers and .chains from URL parameter namesstatic IntegerDt
toInteger(Object theArgument)
static String
unescape(String theValue)
Unescapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section
-
-
-
Constructor Detail
-
ParameterUtil
public ParameterUtil()
-
-
Method Detail
-
convertIdToType
public static <T extends IIdType> T convertIdToType(IIdType value, Class<T> theIdParamType)
-
parseQueryParams
public static IQueryParameterAnd<?> parseQueryParams(FhirContext theContext, RestSearchParameterTypeEnum paramType, String theUnqualifiedParamName, List<QualifiedParamList> theParameters)
This is a utility method intended provided to help the JPA module.
-
parseQueryParams
public static IQueryParameterAnd<?> parseQueryParams(FhirContext theContext, RuntimeSearchParam theParamDef, String theUnqualifiedParamName, List<QualifiedParamList> theParameters)
This is a utility method intended provided to help the JPA module.
-
stripModifierPart
public static String stripModifierPart(String theParam)
Removes :modifiers and .chains from URL parameter names
-
escape
public static String escape(String theValue)
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section
-
escapeWithDefault
public static String escapeWithDefault(Object theValue)
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section
-
escapeAndUrlEncode
public static String escapeAndUrlEncode(String theInput)
AppliesescapeWithDefault(Object)
followed byUrlUtil.escapeUrlParam(String)
-
findIdParameterIndex
public static Integer findIdParameterIndex(Method theMethod, FhirContext theContext)
-
findParamAnnotationIndex
public static Integer findParamAnnotationIndex(Method theMethod, Class<?> toFind)
-
fromInteger
public static Object fromInteger(Class<?> theType, IntegerDt theArgument)
-
isBindableIntegerType
public static boolean isBindableIntegerType(Class<?> theClass)
-
escapeAndJoinOrList
public static String escapeAndJoinOrList(Collection<String> theValues)
-
nonEscapedIndexOf
public static int nonEscapedIndexOf(String theString, char theCharacter)
-
parseETagValue
public static String parseETagValue(String value)
-
singleton
public static IQueryParameterOr<?> singleton(IQueryParameterType theParam, String theParamName)
-
unescape
public static String unescape(String theValue)
Unescapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section
-
isIncludeIterate
public static boolean isIncludeIterate(String theQualifier)
Returns true if the value is :iterate or :recurse (the former name of :iterate) for an _include parameter
-
-