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 Stringescape(String theValue)Escapes 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 intnonEscapedIndexOf(String theString, char theCharacter)static StringparseETagValue(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 IntegerDttoInteger(Object theArgument)static Stringunescape(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.
-
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
-
-