@Configurable public class IfMBeanEnabled extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*"> xmlns:resin="urn:java:com.caucho.resin"> <resin:IfMBeanEnabled name="admin"/> </resin:Allow>
RequestPredicates may be used for security and rewrite actions.
Constructor and Description |
---|
IfMBeanEnabled() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
void |
setEnabled(boolean isEnabled)
Sets true if the default is to enable.
|
void |
setName(java.lang.String name)
Sets the MBean name.
|
@Configurable public void setName(java.lang.String name)
@Configurable public void setEnabled(boolean isEnabled)
public boolean isMatch(HttpServletRequest request)
isMatch
in interface RequestPredicate
request
- the servlet request to test