Package ca.uhn.fhir.rest.param
Class ParameterUtil
java.lang.Object
ca.uhn.fhir.rest.param.ParameterUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IIdType>
TconvertIdToType
(IIdType value, Class<T> theIdParamType) static String
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 IQueryParameterOr
<?> singleton
(IQueryParameterType theParam, String theParamName) static String
stripModifierPart
(String theParam) Removes :modifiers and .chains from URL parameter namesstatic IntegerDt
static String
Unescapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section
-
Constructor Details
-
ParameterUtil
public ParameterUtil()
-
-
Method Details
-
convertIdToType
-
stripModifierPart
Removes :modifiers and .chains from URL parameter names -
escape
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section -
escapeWithDefault
Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section -
escapeAndUrlEncode
AppliesescapeWithDefault(Object)
followed byUrlUtil.escapeUrlParam(String)
-
findIdParameterIndex
-
findParamAnnotationIndex
-
fromInteger
-
isBindableIntegerType
-
escapeAndJoinOrList
-
nonEscapedIndexOf
-
parseETagValue
-
singleton
-
toInteger
-
unescape
Unescapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Section -
isIncludeIterate
Returns true if the value is :iterate or :recurse (the former name of :iterate) for an _include parameter
-