public abstract class ServerPort extends HttpCondition
Condition responsible for asserting on the ServletRequest.getServerPort()DefaultConditionBuilder.DefaultConditionBuilderInternal| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
static ServerPort |
is(int... ports)
Create a
Condition to assert that the current Address.getPort() matches any of the given ports. |
evaluateand, andNot, or, orNotpublic static ServerPort is(int... ports)
Condition to assert that the current Address.getPort() matches any of the given ports.public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionCopyright © 2014 OCPsoft. All Rights Reserved.