Package net.ontopia.topicmaps.rest.utils
Class ContextUtils
java.lang.Object
net.ontopia.topicmaps.rest.utils.ContextUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.restlet.Contextstatic org.restlet.data.ParametergetParameter(org.restlet.Context context, String name) static booleangetParameterAsBoolean(String name, boolean fallback) static booleangetParameterAsBoolean(org.restlet.Context context, String name, boolean fallback) static booleangetParameterAsBoolean(org.restlet.data.Parameter parameter, boolean fallback) static intgetParameterAsInteger(String name, int fallback) static intgetParameterAsInteger(org.restlet.Context context, String name, int fallback) static intgetParameterAsInteger(org.restlet.data.Parameter parameter, int fallback) static org.restlet.util.Series<org.restlet.data.Parameter>getParameters(org.restlet.Context context) static booleanhasParameter(String name)
-
Method Details
-
getCurrentApplicationContext
public static org.restlet.Context getCurrentApplicationContext() -
getParameters
public static org.restlet.util.Series<org.restlet.data.Parameter> getParameters(org.restlet.Context context) -
getParameter
-
hasParameter
-
getParameterAsBoolean
-
getParameterAsBoolean
public static boolean getParameterAsBoolean(org.restlet.Context context, String name, boolean fallback) -
getParameterAsBoolean
public static boolean getParameterAsBoolean(org.restlet.data.Parameter parameter, boolean fallback) -
getParameterAsInteger
-
getParameterAsInteger
-
getParameterAsInteger
public static int getParameterAsInteger(org.restlet.data.Parameter parameter, int fallback)
-