|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.j2ep.rules.BaseRule
net.sf.j2ep.rules.TimeRule
public class TimeRule
A simple rule that checks the hour. If the hour is in the specified range we will allow the request.
| Constructor Summary | |
|---|---|
TimeRule()
|
|
| Method Summary | |
|---|---|
boolean |
matches(HttpServletRequest request)
Making check to see that the time lies between the start and end time. |
void |
setEndTime(java.lang.String time)
Sets the end hour that request will be allowed. |
void |
setStartTime(java.lang.String time)
Sets the start hour that requests will be allowed. |
| Methods inherited from class net.sf.j2ep.rules.BaseRule |
|---|
process, revert, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeRule()
| Method Detail |
|---|
public boolean matches(HttpServletRequest request)
request - The request
net.sf.j2ep.model.Rule#matches(javax.servlet.http.HttpServletRequest)public void setStartTime(java.lang.String time)
time - The hourpublic void setEndTime(java.lang.String time)
time - The hour
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||