|
|||||||||
| 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.IPRule
public class IPRule
This rule will check the IP for the remote user allowing the user if his IP is in the specified range.
| Constructor Summary | |
|---|---|
IPRule()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getEndRange()
Returns the ending range that a connection has to be made from to be triggered by this rule. |
protected java.lang.String |
getStartRange()
Returns the beginning range that a connection has to be made from to be triggered by this rule. |
boolean |
matches(HttpServletRequest request)
Checks the IP for the remote user, if it's in the specified range it's a match. |
void |
setEndRange(java.lang.String endRange)
Sets the ending range that a connection has to be made from to be triggered by this rule. |
void |
setStartRange(java.lang.String startRange)
Sets the beginning range that a connection has to be made from to be triggered by this rule. |
| 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 IPRule()
| Method Detail |
|---|
public boolean matches(HttpServletRequest request)
request - The request
net.sf.j2ep.model.Rule#matches(javax.servlet.http.HttpServletRequest)public void setStartRange(java.lang.String startRange)
startRange - The start of the IP rangeprotected java.lang.String getStartRange()
public void setEndRange(java.lang.String endRange)
endRange - The end of the IP rangeprotected java.lang.String getEndRange()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||