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.ContextgetCurrentApplicationContext()static 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 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)
-
-