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