Class ServerPort
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.ServerPort
- All Implemented Interfaces:
Condition,ConditionBuilder
A
Condition responsible for asserting on the ServletRequest.getServerPort()- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) static ServerPortis(int... ports) Create aConditionto assert that the currentAddress.getPort()matches any of the given ports.Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluateMethods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
is
Create aConditionto assert that the currentAddress.getPort()matches any of the given ports. -
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-