@Configurable public class IfCron extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*"> xmlns:resin="urn:java:com.caucho.resin"> <resin:IfCron> <enable-at>* 8 * * * <disable-at>* 16 * * * </resin:IfCron> </resin:Allow>
RequestPredicates may be used for security and rewrite actions.
Constructor and Description |
---|
IfCron() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
void |
setDisableAt(CronType disableAt)
Sets the cron disable times.
|
void |
setEnableAt(CronType enableAt)
Sets the cron enable times.
|
@Configurable public void setEnableAt(CronType enableAt)
@Configurable public void setDisableAt(CronType disableAt)
@PostConstruct public void init()
public boolean isMatch(HttpServletRequest request)
isMatch
in interface RequestPredicate
request
- the servlet request to test