|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.rewrite.IfMethod
@Configurable public class IfMethod
Match if the HTTP method matches the value.
<resin:Forbidden
xmlns:resin="urn:java:com.caucho.resin">
<resin:Method method="POST"/>
</resin:Forbidden>
RequestPredicates may be used for security and rewrite actions.
| Constructor Summary | |
|---|---|
IfMethod()
|
|
| Method Summary | |
|---|---|
void |
init()
|
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches. |
void |
setMethod(java.lang.String value)
Sets the HTTP method value to test: GET, POST, etc.. |
void |
setValue(java.lang.String value)
Sets the HTTP method value to test. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IfMethod()
| Method Detail |
|---|
@Configurable public void setMethod(java.lang.String value)
@Configurable public void setValue(java.lang.String value)
@PostConstruct public void init()
public boolean isMatch(HttpServletRequest request)
isMatch in interface CacheablePredicateisMatch in interface RequestPredicaterequest - the servlet request to testpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||