
Package ca.uhn.fhir.rest.param
Class ParameterUtil
java.lang.Object
ca.uhn.fhir.rest.param.ParameterUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareAllParametersEmpty(List<? extends IQueryParameterType> theList) Given a list of query parameters, returns true if all parameters in the list return true fromIQueryParameterType.isEmpty(), or if the list does not contain any elements.static <T extends IIdType>
TconvertIdToType(IIdType value, Class<T> theIdParamType) static StringEscapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Sectionstatic StringescapeAndJoinOrList(Collection<String> theValues) static StringescapeAndUrlEncode(String theInput) AppliesescapeWithDefault(Object)followed byUrlUtil.escapeUrlParam(String)static StringescapeWithDefault(Object theValue) Escapes a string according to the rules for parameter escaping specified in the FHIR Specification Escaping Sectionstatic IntegerfindIdParameterIndex(Method theMethod, FhirContext theContext) static IntegerfindParamAnnotationIndex(Method theMethod, Class<?> toFind) static ObjectfromInteger(Class<?> theType, IntegerDt theArgument) static booleanisBindableIntegerType(Class<?> theClass) static booleanisIncludeIterate(String theQualifier) Returns true if the value is :iterate or :recurse (the former name of :iterate) for an _include parameterstatic intnonEscapedIndexOf(String theString, char theCharacter) static StringparseETagValue(String value) static IQueryParameterOr<?> singleton(IQueryParameterType theParam, String theParamName) static StringstripModifierPart(String theParam) Removes :modifiers and .chains from URL parameter namesstatic IntegerDtstatic StringUnescapes 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 -
areAllParametersEmpty
Given a list of query parameters, returns true if all parameters in the list return true fromIQueryParameterType.isEmpty(), or if the list does not contain any elements.- Since:
- 8.4.0
-