Class ContextUtils

java.lang.Object
net.ontopia.topicmaps.rest.utils.ContextUtils

public final class ContextUtils extends Object
  • 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

      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)