|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.rewrite.IfCron
@Configurable public class IfCron
Match if the request occurs during enabled times.
<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 Summary | |
---|---|
IfCron()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IfCron()
Method Detail |
---|
@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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |