@Configurable public class IfLocale extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*">
xmlns:resin="urn:java:com.caucho.resin">
<resin:IfLocale value="fr"/>
</resin:Allow>
RequestPredicates may be used for security and rewrite actions.
| Constructor and Description |
|---|
IfLocale() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
void |
setValue(java.util.regex.Pattern regexp)
The locale value to test against
|
@Configurable public void setValue(java.util.regex.Pattern regexp)
@PostConstruct public void init()
public boolean isMatch(HttpServletRequest request)
isMatch in interface RequestPredicaterequest - the servlet request to test