public final class ContextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.restlet.Context |
getCurrentApplicationContext() |
static org.restlet.data.Parameter |
getParameter(org.restlet.Context context,
String name) |
static boolean |
getParameterAsBoolean(org.restlet.Context context,
String name,
boolean fallback) |
static boolean |
getParameterAsBoolean(org.restlet.data.Parameter parameter,
boolean fallback) |
static boolean |
getParameterAsBoolean(String name,
boolean fallback) |
static int |
getParameterAsInteger(org.restlet.Context context,
String name,
int fallback) |
static int |
getParameterAsInteger(org.restlet.data.Parameter parameter,
int fallback) |
static int |
getParameterAsInteger(String name,
int fallback) |
static org.restlet.util.Series<org.restlet.data.Parameter> |
getParameters(org.restlet.Context context) |
static boolean |
hasParameter(String name) |
public static org.restlet.Context getCurrentApplicationContext()
public static org.restlet.util.Series<org.restlet.data.Parameter> getParameters(org.restlet.Context context)
public static org.restlet.data.Parameter getParameter(org.restlet.Context context, String name)
public static boolean hasParameter(String name)
public static boolean getParameterAsBoolean(String name, boolean fallback)
public static boolean getParameterAsBoolean(org.restlet.Context context, String name, boolean fallback)
public static boolean getParameterAsBoolean(org.restlet.data.Parameter parameter, boolean fallback)
public static int getParameterAsInteger(String name, int fallback)
public static int getParameterAsInteger(org.restlet.Context context, String name, int fallback)
public static int getParameterAsInteger(org.restlet.data.Parameter parameter, int fallback)