Package net.ontopia.topicmaps.rest.utils
Class ContextUtils
- java.lang.Object
-
- net.ontopia.topicmaps.rest.utils.ContextUtils
-
public final class ContextUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.restlet.Context
getCurrentApplicationContext()
static org.restlet.data.Parameter
getParameter(org.restlet.Context context, String name)
static boolean
getParameterAsBoolean(String name, boolean fallback)
static boolean
getParameterAsBoolean(org.restlet.Context context, String name, boolean fallback)
static boolean
getParameterAsBoolean(org.restlet.data.Parameter parameter, boolean fallback)
static int
getParameterAsInteger(String name, int fallback)
static int
getParameterAsInteger(org.restlet.Context context, String name, int fallback)
static int
getParameterAsInteger(org.restlet.data.Parameter parameter, int fallback)
static org.restlet.util.Series<org.restlet.data.Parameter>
getParameters(org.restlet.Context context)
static boolean
hasParameter(String name)
-
-
-
Method Detail
-
getCurrentApplicationContext
public static org.restlet.Context getCurrentApplicationContext()
-
getParameters
public static org.restlet.util.Series<org.restlet.data.Parameter> getParameters(org.restlet.Context context)
-
getParameter
public static org.restlet.data.Parameter getParameter(org.restlet.Context context, String name)
-
hasParameter
public static boolean hasParameter(String name)
-
getParameterAsBoolean
public static boolean getParameterAsBoolean(String name, boolean fallback)
-
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
public static int getParameterAsInteger(String name, int fallback)
-
getParameterAsInteger
public static int getParameterAsInteger(org.restlet.Context context, String name, int fallback)
-
getParameterAsInteger
public static int getParameterAsInteger(org.restlet.data.Parameter parameter, int fallback)
-
-