@Configurable public class IfMethod extends java.lang.Object implements RequestPredicate, CacheablePredicate
<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 and Description |
---|
IfMethod() |
Modifier and Type | Method and Description |
---|---|
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() |
@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 CacheablePredicate
isMatch
in interface RequestPredicate
request
- the servlet request to testpublic java.lang.String toString()
toString
in class java.lang.Object