@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
/** * Detects if the current device is an Android OS-based device and the browser is based on WebKit. * * @return detection of an Android WebKit browser */ public boolean detectAndroidWebKit() { if (detectAndroid() && detectWebkit()) { return true; } return false; }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is PUT */ public static Method isPut() { return new Method(HttpMethod.PUT) {}; }
/** * Detects if the current browser is a BlackBerry device AND uses a WebKit-based browser. These are signatures for * the new BlackBerry OS 6. Examples: Torch. Includes the Playbook. * * @return detection of a Blackberry device with WebKit browser */ public boolean detectBlackBerryWebKit() { if (detectBlackBerry() && detectWebkit()) return true; return false; }
/** * Create an {@link Operation} that halts further {@link Rewrite} processing and completes the current * {@link HttpServletResponse}. */ public static OperationBuilder complete() { return Lifecycle.abort(); }
/** * Create a {@link DispatchType} condition that ensures the current {@link HttpServletRewrite} is a * {@link DispatcherType#INCLUDE} */ public static DispatchType isInclude() { return new DispatchType(DispatcherType.INCLUDE); }
/** * Create a new {@link EncodeQuery} operation for the given query-parameter names. Only encode those given * parameters. If no parameter names are supplied, this will encode all query-parameters found in the {@link Address} * . */ public static EncodeQuery params(final String... params) { return new EncodeQuery(params); }
@Override public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context) { super.evaluateHttp(event, context); return true; }
/** * Create a new {@link JAASRoles} condition specifying the roles of which the current user must be a member for * evaluation to return <code>true</code>. */ public static JAASRoles required(String... roles) { return new JAASRoles(roles); }
@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is GET */ public static Method isGet() { return new Method(HttpMethod.GET) {}; }
/** * Create a {@link DispatchType} condition that ensures the current {@link HttpServletRewrite} is a * {@link DispatcherType#ERROR} */ public static DispatchType isError() { return new DispatchType(DispatcherType.ERROR); }
@Override public void setParameterStore(ParameterStore store) { resource.setParameterStore(store); location.setParameterStore(store); }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is POST */ public static Method isPost() { return new Method(HttpMethod.POST) {}; }
/** * Create a {@link DispatchType} condition that ensures the current {@link HttpServletRewrite} is a * {@link DispatcherType#REQUEST} */ public static DispatchType isRequest() { return new DispatchType(DispatcherType.REQUEST); }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is HEAD */ public static Method isHead() { return new Method(HttpMethod.HEAD) {}; }
/** * Create a {@link DispatchType} condition that ensures the current {@link HttpServletRewrite} is a * {@link DispatcherType#ASYNC} */ public static DispatchType isAsync() { return new DispatchType(DispatcherType.ASYNC); }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is HEAD */ public static Method isHead() { return new Method(HttpMethod.HEAD) {}; }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is DELETE */ public static Method isDelete() { return new Method(HttpMethod.DELETE) {}; }
/** * Create a {@link Method} condition that ensures the current {@link HttpServletRequest#getMethod()} is TRACE */ public static Method isTrace() { return new Method(HttpMethod.TRACE) {}; }