|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.rewrite.IfMBeanEnabled
@Configurable public class IfMBeanEnabled
Matches if the MBean is enabled and does not match if it's not enabled. The MBean is registered as resin:name=<name>,type=IfMBean
<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 Summary | |
---|---|
IfMBeanEnabled()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IfMBeanEnabled()
Method Detail |
---|
@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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |